Template:Version: Difference between revisions

From The Last Starwiki
Jump to navigation Jump to search
(Create template)
 
No edit summary
Line 1: Line 1:
<includeonly>{{#arraydefine:versionNumber|{{#switch:{{#if:{{{1|}}}|{{{1}}}|stable}}
{{#switch:{{{link|}}}
|stable  = 1.5.6
  |0        = {{{2}}}
|beta    = 1.5.6
  |#default = [[Version History#{{{2|}}}]]
|#default = {{{1}}}
}}}}<!--
 
 
-->{{#switch:{{{link|}}}
  |0        = {{#if:{{{2|}}}|{{{2}}}|{{#arrayindex:versionNumber|0}}}}
  |#default = [[Version History#{{#arrayindex:versionNumber|0}}|{{#if:{{{2|}}}|{{{2}}}|{{#arrayindex:versionNumber|0}}}}]]
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 16:21, 24 July 2022

Version History#</includeonly>==Description== This template links to a version of The Last Starship in the Version History.

Usage

The template supports a few formats:

use case code output
specific version {{version|1.3.28}} Version History#
specific version with link text {{version|1.3.28|1.3}} Version History#1.3

You can disable the link like {{version|1.3.28|link=0}}: {{{2}}}.