Difference between revisions of "Template:Version"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Undo revision 11870 by Piotrulos (talk))
Line 6: Line 6:
 
       "{{{2}}} {{{1}}}"
 
       "{{{2}}} {{{1}}}"
 
   else // prefix text is undefined
 
   else // prefix text is undefined
       "{{lang|en=version|pl=wersja}} {{{1}}}"
+
       "version {{{1}}}"
 
else // prefix text is defined as an empty string
 
else // prefix text is defined as an empty string
 
   "{{{1}}}"
 
   "{{{1}}}"

Revision as of 13:33, 6 March 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'.

See http://www.mediawiki.org/wiki/Help:Templates#Default_values for more information.

Template

Usage Produces
{{version|0.17}}
 version 0.17
{{version|0.17|}}
 0.17
{{version|0.17|prefix text here}}
 prefix text here 0.17