Difference between revisions of "Template:Version"
From Kerbal Space Program Wiki
m (change version history in Korean) |
(added lang hu) |
||
Line 7: | Line 7: | ||
| zh-cn=Version history/zh-cn | | zh-cn=Version history/zh-cn | ||
| ko=Version history/ko | | ko=Version history/ko | ||
+ | | hu=Version history/hu | ||
| force = {{{lang|}}}}}#{{#ifeq: {{padleft:|1|{{{1}}}}}|v||v}}{{{1}}}|{{#ifeq: {{{2|!}}}|!|{{lang | en = version | | force = {{{lang|}}}}}#{{#ifeq: {{padleft:|1|{{{1}}}}}|v||v}}{{{1}}}|{{#ifeq: {{{2|!}}}|!|{{lang | en = version | ||
| de = Version | | de = Version | ||
Line 13: | Line 14: | ||
| ru = версия | | ru = версия | ||
| ko = 버전 | | ko = 버전 | ||
+ | | hu = verzió | ||
| force = {{{lang|}}}}} |{{#if: {{{2|}}}|{{{2}}} }}}}{{{1}}}]]</includeonly><noinclude> | | force = {{{lang|}}}}} |{{#if: {{{2|}}}|{{{2}}} }}}}{{{1}}}]]</includeonly><noinclude> | ||
This template links to a release in the version history. | This template links to a release in the version history. | ||
Line 42: | Line 44: | ||
* Chinese (zh-cn) | * Chinese (zh-cn) | ||
* Korean | * Korean | ||
+ | * Hungarian | ||
The “version” default text is translated into the following languages: | The “version” default text is translated into the following languages: | ||
Line 48: | Line 51: | ||
* Russian | * Russian | ||
* Korean | * Korean | ||
+ | * Hungarian | ||
== Examples == | == Examples == |
Revision as of 23:32, 23 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 |