Difference between revisions of "Template:Check version/ver"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#if: {{{1|}}}|{{Check version/Cur}}|{{#switch: {{{1}} |38=0.20.2 |39=0.21 |40=0.21.1 |41=0.22 |42=0.23 |43=0.23.5 |44=0.24 |45=0.24.1 |46=0.24.2 |47=0.25 |48=0....")
 
(!invert if condition;)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|{{Check version/Cur}}|{{#switch: {{{1}}
+
<includeonly>{{#if: {{{1|}}}|{{#switch: {{{1}}
 
|38=0.20.2
 
|38=0.20.2
 
|39=0.21
 
|39=0.21
Line 12: Line 12:
 
|48=0.90.0
 
|48=0.90.0
 
|49=1.0
 
|49=1.0
|#default={{{2|0}}}}}}}</includeonly><noinclude>This template converts a revision number into version number. Is only internally required. After each update the next version should be added to be in sync with {{Tl|Check version/Rev}}. It should return the version number used by Squad and <tt><nowiki>{{Check version/Rev|{{Check version/ver|X}}}} == X</nowiki></tt>.
+
|#default={{{2|0}}}}}|{{Check version/Cur}}}}</includeonly><noinclude>This template converts a revision number into version number. Is only internally required. After each update the next version should be added to be in sync with {{Tl|Check version/Rev}}. It should return the version number used by Squad and <tt><nowiki>{{Check version/Rev|{{Check version/ver|X}}}} == X</nowiki></tt>.
  
 
[[Category:Metatemplates]]</noinclude>
 
[[Category:Metatemplates]]</noinclude>

Revision as of 12:34, 12 March 2015

This template converts a revision number into version number. Is only internally required. After each update the next version should be added to be in sync with {{Check version/Rev}}. It should return the version number used by Squad and {{Check version/Rev|{{Check version/ver|X}}}} == X.