Template:Version: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#if:{{{2|}}}|{{#if:{{{1}}}|[[{{#iferror:{{#invoke:Franchise|ShortName|{{{1}}}}}/Version History#{{{2}}}|[[Category:{{Invalid Arguments}}]] }}|Ver. {{{2|}}}]]|Ver. {{{2|}}}[[Category:{{Invalid Arguments}}]]}}|{{#invoke:Error|Error|Missing Version Numer|Category:{{Invalid Arguments}}}}}}</includeonly><noinclude> {{Documentation}} Category:Templates </noinclude>") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|{{#if:{{{1}}}| | <includeonly>{{#if:{{{2|}}}|{{#if:{{{1|}}}|{{#iferror:{{#invoke:Franchise|ShortName|{{{1}}}}}|Ver. {{{2|}}}[[Category:{{Invalid Arguments}}]]|[[{{#invoke:Franchise|ShortName|{{{1}}}}}/Version History#{{{2}}}|Ver. {{{2|}}}]]}}|Ver. {{{2|}}}}}|{{#invoke:Error|Error|Missing Version Number|Category:{{Invalid Arguments}}}}}}</includeonly> | ||
<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
[[Category:Templates]] | [[Category:Templates]] [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 10:33, 22 April 2024
Purpose
Standardize formatting for referring to version numbers in articles, links to that games version history page
Usage
{{Version|<gameCode> |<version number> |[link] }}
Examples
# | Input | Output | Categories added |
---|---|---|---|
1 | {{Version}} | ||
2 | {{Version|HWAoC}} | ||
3 | {{Version|fakeGame|fakeVersion}} |
Ver. fakeVersion | |
4 | {{Version|HWAoC|1.3.0}} | ||
5 | {{Version||1.3.0}} |
Ver. 1.3.0 | |
6 | {{Version|HWAoC|1.3.0|link}} | ||
7 | {{Version||1.3.0|link}} |
Ver. 1.3.0 |
Shorthand
# | Input | Output |
---|---|---|
8 | {{Ver|HWAoC|1.3.0|link}} | Ver. 1.3.0 |
The above documentation is transcluded from Template:Version/Documentation. (edit | history)