Difference between revisions of "Template:Current Version"

From RimWorld Wiki
Jump to navigation Jump to search
(Will no automatically update the current version to the latest page.)
(I think this excludes experimental versions now.)
Line 4: Line 4:
 
   -->|{{#replace:{{#ask: [[Category:Console version]] [[Release Date::+]] | format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Console version/|}}}}<!--
 
   -->|{{#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|}}}
 
-->|{{#if: {{{link|}}}
       |[[Version/{{#vardefineecho:versionNumber|{{#replace:{{#ask: [[Category:Version]] [[Release Date::+]] | format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Version/|}}}}|{{#var:versionNumber}}]]<!--
+
       |[[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::+]] | format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Version/|}}}}}}</includeonly><noinclude> {{Documentation}}</noinclude>
 
   -->|{{#replace:{{#ask: [[Category:Version]] [[Release Date::+]] | format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}}|Version/|}}}}}}</includeonly><noinclude> {{Documentation}}</noinclude>

Revision as of 19:36, 20 August 2024

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

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

Usage

{{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.