Difference between revisions of "Template:Dictionary"

From Team Fortress Wiki
Jump to: navigation, search
(WIP)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
{{fmbox
 
{{fmbox
| style = padding: 0.25em;
+
| style = padding: 0.5em 0.25em;
| text = '''List of translatable strings''':
+
| text = <div style="font-size:1.25em; margin:0.5em 0em;">'''List of translatable strings'''</div>
* [[Template:Dictionary/items]] &ndash; contents:
+
* '''[[Template:Dictionary/items]]''' &ndash; contents:
 
** Names for all item types ([[weapons]], [[hats]], [[miscellaneous items]], [[tools]] (including [[Paint Cans]]), [[action items]])
 
** Names for all item types ([[weapons]], [[hats]], [[miscellaneous items]], [[tools]] (including [[Paint Cans]]), [[action items]])
 
** Slot names ('Primary', 'Secondary', 'Melee', etc; includes [[Crafting]] slot tokens)
 
** Slot names ('Primary', 'Secondary', 'Melee', etc; includes [[Crafting]] slot tokens)
 
** Descriptive strings (literal text for 'Weapons, 'Hats', etc)
 
** Descriptive strings (literal text for 'Weapons, 'Hats', etc)
* [[Template:Dictionary/classes]] &ndash; names of classes (i.e. Scout, Soldier, etc)
+
* '''[[Template:Dictionary/classes]]''' &ndash; names of classes (i.e. Scout, Soldier, etc)
* [[Template:Dictionary/common_strings]] &ndash; strings that are used in various places such as [[:Category:Navigational templates|nav templates]]
+
* '''[[Template:Dictionary/common_strings]]''' &ndash; strings that are used in various places such as [[:Category:Navigational templates|nav templates]]
* [[Template:Dictionary/miscellaneous]] &ndash; non-specific strings that don't fit anywhere else (e.g. 'Yes' and 'No' used in {{tl|Item infobox}})
 
 
}}
 
}}
 
{{doc begin}}
 
{{doc begin}}
Line 16: Line 15:
 
=== Where to edit? ===
 
=== Where to edit? ===
 
Please see the list above.
 
Please see the list above.
 +
 +
:{{c|info|Note}}: don't make edits to individual string pages (e.g. [[Template:Dictionary/items/soldier's_stash]]) as any changes will be overwritten the next time the bot runs.
  
 
=== System ===
 
=== System ===
The dictionary pages (listed above) are where strings are kept and maintained. As often as possible, this page is interpreted by a bot script which then pushes all changes to the individual string pages.
+
The dictionary pages (listed above) are where strings are kept and maintained. As often as possible, this page is interpreted by a bot script which then pushes all changes to the individual string pages. This system avoids the serious performance issues of the previous system but still keeps it easy for translators to add, update or otherwise alter language strings.
 
 
For example, the names for the [[Soldier's Stash]] in multiple languages are kept in [[Template:Dictionary/items]] under the section 'Hats'. This whole page is then fetched by the bot and all translations of 'Soldier's Stash' are then copied to [[Template:Dictionary/raw/items/soldier's_stash]]. Then, simply on any page or nav template, you can autotranslate this by using the code {{tl|item name|Soldier's Stash}}.
 
  
:'''TL;DR''' This system avoids the serious performance issues of the previous system but still keeps it easy for translators to add, update or otherwise alter language strings.
+
For example, the names for the [[Soldier's Stash]] in multiple languages are kept in [[Template:Dictionary/items]] under the section 'Hats'. This whole page is then fetched by the bot and all translations of 'Soldier's Stash' are then copied to [[Template:Dictionary/items/soldier's_stash]]. Then, simply on any page or nav template, you can autotranslate this by using the code {{tlx|item name|Soldier's Stash}}.
  
 
=== Help ===
 
=== Help ===
 +
Please post on the [[Template talk:Dictionary|'''talk page''']] if you need any help editing.
  
 +
[[Category:Template dictionary| ]]
 
</noinclude>
 
</noinclude>

Revision as of 05:06, 18 March 2011

Documentation for Dictionary

Several strings of text are stored in multiple languages in a dictionary-like method spread across multiple subpages. This page acts as the central coordination page for all of them.

Where to edit?

Please see the list above.

Pictogram info.png Note: don't make edits to individual string pages (e.g. Template:Dictionary/items/soldier's_stash) as any changes will be overwritten the next time the bot runs.

System

The dictionary pages (listed above) are where strings are kept and maintained. As often as possible, this page is interpreted by a bot script which then pushes all changes to the individual string pages. This system avoids the serious performance issues of the previous system but still keeps it easy for translators to add, update or otherwise alter language strings.

For example, the names for the Soldier's Stash in multiple languages are kept in Template:Dictionary/items under the section 'Hats'. This whole page is then fetched by the bot and all translations of 'Soldier's Stash' are then copied to Template:Dictionary/items/soldier's_stash. Then, simply on any page or nav template, you can autotranslate this by using the code {{item name|Soldier's Stash}}.

Help

Please post on the talk page if you need any help editing.