Difference between revisions of "Template:Version"
(Created page with "<includeonly>{{#arraydefine:versionNumber|{{#switch:{{#if:{{{1|}}}|{{{1}}}|stable}} |stable = Stable |alpha = Alpha |beta = Beta |#default = {{{1}}} }}}}<!-- --...") |
|||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:versionNumber|{{#switch:{{#if:{{{1|}}}|{{{1}}}|stable}} | <includeonly>{{#arraydefine:versionNumber|{{#switch:{{#if:{{{1|}}}|{{{1}}}|stable}} | ||
− | |stable = Stable | + | |stable = Stable Version |
− | |alpha = Alpha | + | |alpha = Alpha Version |
− | |beta = Beta | + | |beta = Beta Version |
|#default = {{{1}}} | |#default = {{{1}}} | ||
}}}}<!-- | }}}}<!-- |
Latest revision as of 12:06, 15 January 2021
Description
This template creates a link to a Starmancer specific version in the Version History.
Usage
The template supports a few formats:
use case | code | output |
---|---|---|
latest stable version | {{version}}
|
Stable Version |
latest alpha version (if any) | {{version|alpha}}
|
Alpha Version |
latest beta version (if any) | {{version|beta}}
|
Beta Version |
It recognises a few version aliases for convenience:
alias | mapped to | current value |
---|---|---|
stable | latest stable version | Stable Version |
beta | latest beta version | Alpha Version |
beta | latest beta version | Beta Version |
Finally, you can disable the link like {{version|link=0}}
: Stable Version.