Difference between revisions of "Template:Version"
From Kerbal Space Program Wiki
m (*change links to lowercased; +links to German, Polish and Chinese page;) |
m (+German and Polish version text;) |
||
Line 1: | Line 1: | ||
− | [[{{ lang | en = Version history |de=Version history/de|pl=Version history/pl| ru = Version history/ru|zh-cn=Version history/zh-cn}}#{{#ifeq: {{padleft:|1|{{{1}}}}}|v||v}}{{{1}}}|{{#if: {{{2}}}|{{#if: {{{2|}}}|{{{2}}}|{{lang | en = version | ru = версия}}}} |}}{{{1}}}]]<noinclude> | + | [[{{ lang | en = Version history |de=Version history/de|pl=Version history/pl| ru = Version history/ru|zh-cn=Version history/zh-cn | force = {{{lang|}}}}}#{{#ifeq: {{padleft:|1|{{{1}}}}}|v||v}}{{{1}}}|{{#if: {{{2}}}|{{#if: {{{2|}}}|{{{2}}}|{{lang | en = version | de = Version | pl = wersji | ru = версия | force = {{{lang|}}}}}}} |}}{{{1}}}]]<noinclude> |
<pre> | <pre> | ||
Line 10: | Line 10: | ||
"{{{1}}}" | "{{{1}}}" | ||
</pre> | </pre> | ||
+ | |||
+ | {{Parameter Table|parameters= | ||
+ | {{Parameter Row|1|Version number; may begin with a “v”}} | ||
+ | {{Parameter Row|2|Text shown and linked in front of the version number.|<tt>version</tt> (or the localisation)}} | ||
+ | {{Parameter Row|lang|Force a specific language if set.|Not set}} | ||
+ | }} | ||
The version number can be preceded by a 'v'. It links to the localized pages for the following languages: | The version number can be preceded by a 'v'. It links to the localized pages for the following languages: | ||
Line 17: | Line 23: | ||
* Chinese (zh-cn) | * Chinese (zh-cn) | ||
− | + | The “version” default text is translated into the following languages: | |
+ | * German | ||
+ | * Polish | ||
+ | * Russian | ||
− | == | + | == Examples == |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- |
Revision as of 22:54, 14 December 2013
[[Version history#v{{{1}}}|version {{{1}}}]]
if {{{2|}}} // prefix text is undefined OR defined as a non-empty string if {{{2}}} // prefix text is defined as a non-empty string "{{{2}}} {{{1}}}" else // prefix text is undefined "version {{{1}}}" else // prefix text is defined as an empty string "{{{1}}}"
The version number can be preceded by a 'v'. It links to the localized pages for the following languages:
- German
- Polish
- Russian
- Chinese (zh-cn)
The “version” default text is translated into the following languages:
- German
- Polish
- Russian
Examples
Usage | Produces |
---|---|
{{version|0.17}} |
version 0.17 |
{{version|0.17|}} |
0.17 |
{{version|0.17|prefix text here}} |
prefix text here 0.17 |