Difference between revisions of "Template:WA VersionHistory"

From Worms Knowledge Base

Jump to: navigation, search
m
(add description)
Line 1: Line 1:
 
{{#switch:{{{1|}}}|
 
{{#switch:{{{1|}}}|
 
|en={{WA VersionHistory/core|W:A Version History|Worms Armageddon ReadMe (English)|| Beta Update|v3.5 | Update}}
 
|en={{WA VersionHistory/core|W:A Version History|Worms Armageddon ReadMe (English)|| Beta Update|v3.5 | Update}}
|es={{WA VersionHistory/core|W:A Historial de Versiones|Worms Armageddon ReadMe (Spanish)|Actualizaciones del Beta ||Actualizaciones del | v3.0.5.0}}
+
|es={{WA VersionHistory/core|W:A Historial de Versiones|Worms Armageddon ReadMe (Spanish)|Actualizaciones del Beta ||Actualizaciones del | v3.0.5.0}}<!--
}}<noinclude>
+
(add new languages above this comment)
 +
-->}}<noinclude>
 
----
 
----
 
This navbox should help people navigate inside the version history pages.
 
This navbox should help people navigate inside the version history pages.
 +
__NOTOC__
 +
==Usage==
 +
<nowiki>{{WA VersionHistory|language code}}</nowiki>
 +
The language will default to Engilsh (en) if the parameter is empty.
 +
 +
===Language codes===
 +
*en : English
 +
*es : Spanish
 +
 +
==Adding a new language==
 +
 +
To add a new language, you have to translate the following texts:
 +
 +
{|
 +
|-
 +
! Description
 +
! Text &amp; Parameters (used later)
 +
! English version
 +
|-
 +
| Navbox title
 +
| <tt><span style="color: green;">{{{1}}}</span></tt>
 +
| <span style="color: green;">W:A Version History</span>
 +
|-
 +
| Link to the readme page
 +
| <tt><span style="color: green;">{{{2}}}</span></tt>
 +
| [[Worms Armageddon ReadMe (English)]]
 +
|-
 +
| Link to the v3.6.x.x Beta update subpages
 +
| <tt><span style="color: green;"><nowiki>{{{3|}}}</nowiki></span>v3.6.x.x<span style="color: green;"><nowiki>{{{4|}}}</nowiki></span></tt>
 +
| v3.6.x.x<span style="color: green;">_Beta_Update</span>
 +
|-
 +
| Link to the v3.5 Beta update subpages
 +
| <tt><span style="color: green;"><nowiki>{{{5|}}}</nowiki></span>Beta N<span style="color: green;"><nowiki>{{{6|}}}</nowiki></span></tt>
 +
| <span style="color: green;">v3.5_</span>Beta N<span style="color: green;">_Update</span>
 +
|-
 +
|colspan="3" style="text-align: center;"| ''Note: the spaces inside the links are converted to underscores (_) for visibility.''
 +
|}
 +
 +
Once the field are filled with translated texts, 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>
 +
 +
for example, in English:
 +
 +
|en=<nowiki>{{</nowiki>WA VersionHistory/core|W:A Version History|Worms Armageddon ReadMe (English)|| Beta Update|v3.5 | Update<nowiki>}}</nowiki>
 +
 
</noinclude>
 
</noinclude>

Revision as of 15:11, 17 January 2010

{{WA_VersionHistory/{{{lang}}}|string=title}}
v3.5 [[{{WA_VersionHistory/{{{lang}}}|string=v35LinkName|ver=1}}|Beta 1]] • [[{{WA_VersionHistory/{{{lang}}}|string=v35LinkName|ver=2}}|Beta 2]]
v3.6.x.x [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.7}}|19.7]] ([[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.11}}|.11]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.12}}|.12]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.14}}|.14]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.15}}|.15]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.17}}|.17]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.17a}}|.17a]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.18}}|.18]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.19.19}}|.19]]) • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.20.1}}|20.1]] ([[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.20.2}}|.2]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.20.3}}|.3]]) • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.21.1}}|21.1]] ([[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.21.2}}|.2]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.21.3}}|.3]]) • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.22.1}}|22.1]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.23.0}}|23.0]] ([[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.23.1}}|.1]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.23.2}}|.2]]) • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.24.1}}|24.1]] ([[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.24.2}}|.2]]) • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.25.1a}}|25.1a]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.26.4}}|26.4]] ([[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.26.5}}|.5]]) • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.28.0}}|28.0]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.29.0}}|29.0]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.30.0}}|30.0]] • [[{{WA_VersionHistory/{{{lang}}}|string=betaLinkName|ver=3.6.31.0}}|31.0]] • [[{{WA_VersionHistory/{{{lang}}}|string=alphaLinkName|ver=3.6.31.2b}}|31.2b]]
v3.7.x.x [[{{WA_VersionHistory/{{{lang}}}|string=releaseLinkName|ver=3.7.0.0}}|0.0]] • [[{{WA_VersionHistory/{{{lang}}}|string=releaseLinkName|ver=3.7.2.1}}|2.1]]
v3.8.x [[{{WA_VersionHistory/{{{lang}}}|string=releaseLinkName|ver=3.8}}|0]] • [[{{WA_VersionHistory/{{{lang}}}|string=releaseLinkName|ver=3.8.1}}|1]]

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

  • en : English
  • es : Spanish

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)
Link to the v3.6.x.x Beta update subpages {{{3|}}}v3.6.x.x{{{4|}}} v3.6.x.x_Beta_Update
Link 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 field are filled with translated texts, 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}}


Personal tools