Difference between revisions of "Template:Version"
From Kerbal Space Program Wiki
(added lang hu) |
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';) |
||
Line 32: | Line 32: | ||
{{Parameter Table|parameters= | {{Parameter Table|parameters= | ||
− | {{Parameter | + | {{Parameter row|1|Version number; may begin with a “v”}} |
− | {{Parameter | + | {{Parameter row|2|Text shown and linked in front of the version number. When set to <tt>!</tt> it shows the default text.|<tt>version</tt> (or the localisation)}} |
− | {{Parameter | + | {{Parameter row|lang|Force a specific language if set.|Not set}} |
}} | }} | ||
Revision as of 21:02, 26 November 2014
This template links to a release in the version history.
Pseudo code
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}}}"
Parameters
Localization
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)
- Korean
- Hungarian
The “version” default text is translated into the following languages:
- German
- Polish
- Russian
- Korean
- Hungarian
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 |