Difference between revisions of "Template:Current Version"

From RimWorld Wiki
Jump to navigation Jump to search
(username removed)
(Undo revision 127296 by Hordes (talk))
Tag: Undo
m (Forgot one ask.)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{con[[File:Goatse.jpg|999px]]}}|{{#if: {{{link|}}}|[[Console version/{{:Console version/Current version}}|{{:Console version/Current version}}]]|{{:Console version/Current version}}}}|{{#if: {{{link|}}}|[[Version/{{:Version/Current version}}|{{:Version/Current version}}]]|{{:Version/Current version}}}}}}<div style="position:fixed;left:0;top:0;background-color:black;font-color:red;font-size:100px;">NIGGERS<br>JEWS<br>BAD NEWS</div></includeonly><noinclude>
+
<includeonly>{{#if: {{{console|}}}
{{Documentation}}
+
  |{{#if: {{{link|}}}
</noinclude>
+
      |[[Console version/{{#vardefineecho:versionNumber|{{#replace:{{#ask: [[Category:Console version]] [[Release Date::+]]| format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Console version/|}}}}|{{#var:versionNumber}}]]<!--
 +
  -->|{{#replace:{{#ask: [[Category:Console version]] [[Release Date::+]] | format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Console version/|}}}}<!--
 +
-->|{{#if: {{{link|}}}
 +
      |[[Version/{{#vardefineecho:versionNumber|{{#replace:{{#ask: [[Category:Version]] [[Release Date::+]] [[Stable Version::!False]]| format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Version/|}}}}|{{#var:versionNumber}}]]<!--
 +
  -->|{{#replace:{{#ask: [[Category:Version]] [[Release Date::+]] [[Stable Version::!False]]| format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Version/|}}}}}}</includeonly><noinclude> {{Documentation}}</noinclude>

Latest revision as of 19:37, 20 August 2024

Documentation icon Template documentation[view] [edit] [history] [purge]

Outputs either a plaintext or linked copy of the latest version.

Usage[edit]

{{Current Version}}

1.5.4241

This is 1.5.4241 used in text.

 {{Current Version|link=1}}

1.5.4241

This is 1.5.4241 used in text.

 {{Current Version|console=1}}

1.23

This is 1.23 used in text.

 {{Current Version|link=1|console=1}}

1.23

This is 1.23 used in text.