Difference between revisions of "Template:WA VersionHistory"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (description text update) |
Explorer09 (Talk | contribs) (→Adding a new language: description text update) |
||
Line 36: | Line 36: | ||
| Link to the readme page | | Link to the readme page | ||
| <tt><span style="color: green;">{{{2}}}</span></tt> | | <tt><span style="color: green;">{{{2}}}</span></tt> | ||
− | | [[Worms_Armageddon_ReadMe_(English)]] | + | | [[Worms Armageddon ReadMe (English)|<span style="color: green;">Worms_Armageddon_ReadMe_(English)</span>]] |
|- | |- | ||
| Links to the v3.6.x.x Beta update subpages | | Links to the v3.6.x.x Beta update subpages | ||
Line 49: | Line 49: | ||
|} | |} | ||
− | Once the | + | Once the translation is complete, add the following to the template code ''inside the #switch parameters'': |
|<span style="color: green;">language code</span>=<nowiki>{{</nowiki>WA VersionHistory/core|<span style="color: green;">{{{1}}}</span>|<span style="color: green;">{{{2}}}</span>|<span style="color: green;"><nowiki>{{{3|}}}</nowiki></span>|<span style="color: green;"><nowiki>{{{4|}}}</nowiki></span>|<span style="color: green;"><nowiki>{{{5|}}}</nowiki></span>|<span style="color: green;"><nowiki>{{{6|}}}</nowiki></span><nowiki>}}</nowiki> | |<span style="color: green;">language code</span>=<nowiki>{{</nowiki>WA VersionHistory/core|<span style="color: green;">{{{1}}}</span>|<span style="color: green;">{{{2}}}</span>|<span style="color: green;"><nowiki>{{{3|}}}</nowiki></span>|<span style="color: green;"><nowiki>{{{4|}}}</nowiki></span>|<span style="color: green;"><nowiki>{{{5|}}}</nowiki></span>|<span style="color: green;"><nowiki>{{{6|}}}</nowiki></span><nowiki>}}</nowiki> | ||
Line 56: | Line 56: | ||
|en=<nowiki>{{</nowiki>WA VersionHistory/core|W:A Version History|Worms Armageddon ReadMe (English)|| Beta Update|v3.5 | Update<nowiki>}}</nowiki> | |en=<nowiki>{{</nowiki>WA VersionHistory/core|W:A Version History|Worms Armageddon ReadMe (English)|| Beta Update|v3.5 | Update<nowiki>}}</nowiki> | ||
− | + | Please be careful when adding spaces; those in the start or end of parameters are transclued too. [http://en.wikipedia.org/wiki/Help:Newlines_and_spaces#Spaces_and.2For_newlines_as_value_of_an_unnamed_parameter] | |
</noinclude> | </noinclude> |
Revision as of 15:35, 19 January 2010
This navbox should help people navigate inside the version history pages.
Usage
{{WA VersionHistory|language code}}
The language will default to Engilsh (en) if the parameter is empty.
Language codes supported
- en : English
- es : Spanish
Example
{{WA VersionHistory|en}} {{WA VersionHistory|es}}
Adding a new language
To add a new language, you have to translate the following texts:
Description | Text & Parameters (used later) | English version |
---|---|---|
Navbox title | {{{1}}} | W:A Version History |
Link to the readme page | {{{2}}} | Worms_Armageddon_ReadMe_(English) |
Links to the v3.6.x.x Beta update subpages | {{{3|}}}v3.6.x.x{{{4|}}} | v3.6.x.x_Beta_Update |
Links to the v3.5 Beta update subpages | {{{5|}}}Beta N{{{6|}}} | v3.5_Beta N_Update |
Note: the spaces inside the links are converted to underscores (_) for visibility. |
Once the translation is complete, add the following to the template code inside the #switch parameters:
|language code={{WA VersionHistory/core|{{{1}}}|{{{2}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}}}
for example, in English:
|en={{WA VersionHistory/core|W:A Version History|Worms Armageddon ReadMe (English)|| Beta Update|v3.5 | Update}}
Please be careful when adding spaces; those in the start or end of parameters are transclued too. [1]