Template:Version: Difference between revisions
Appearance
imported>Pathoschild temporarily track unrecognized versions |
imported>Pathoschild remove legacy alias versions and temporary tracking |
||
| Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:versionNumber|{{#switch:{{#if:{{{1|}}}|{{{1}}}|stable}} | <includeonly>{{#arraydefine:versionNumber|{{#switch:{{#if:{{{1|}}}|{{{1}}}|stable}} | ||
|stable = 1.5.4 | |stable = 1.5.4 | ||
|beta = 1.5.5 | |beta = 1.5.5 | ||
| Line 11: | Line 9: | ||
|0 = {{#if:{{{2|}}}|{{{2}}}|{{#arrayindex:versionNumber|0}}}} | |0 = {{#if:{{{2|}}}|{{{2}}}|{{#arrayindex:versionNumber|0}}}} | ||
|#default = [[Version History#{{#arrayindex:versionNumber|0}}|{{#if:{{{2|}}}|{{{2}}}|{{#arrayindex:versionNumber|0}}}}]] | |#default = [[Version History#{{#arrayindex:versionNumber|0}}|{{#if:{{{2|}}}|{{{2}}}|{{#arrayindex:versionNumber|0}}}}]] | ||
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |||
Revision as of 03:08, 22 August 2021
Description
This template creates a link to a Stardew Valley version in the Version History.
Use
The template supports a few formats:
| use case | code | output |
|---|---|---|
| latest stable version | {{version}}
|
1.5.4 |
| latest beta version (if any) | {{version|beta}}
|
1.5.5 |
| specific version | {{version|1.3.28}}
|
1.3.28 |
| specific version with link text | {{version|1.3.28|1.3}}
|
1.3 |
You can disable the link like {{version|link=0}}: 1.5.4.