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 |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|{{# | <includeonly>{{#if:{{{2|}}}||{{#invoke:Error|Error|No Version Number Provided |Category:{{Invalid Arguments}}}}}}{{#iferror:{{#invoke:Franchise|Article|{{{1|}}}}}|{{#invoke:Franchise|Article|{{{1|}}}}}|{{#ifeq:{{{3}}}|link|[[{{#invoke:Franchise|Article|{{{1|}}}}}/Version History#Version {{{2}}}|Version {{{2}}}]]|Version {{{2}}}}}}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Templates]] | [[Category:Templates]] [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 09:25, 30 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}} | Error: No Version Number Provided Error: No game provided | |
2 | {{Version|HWAoC}} | Error: No Version Number Provided Version {{{2}}} | |
3 | {{Version|fakeGame|fakeVersion}} |
Error: Invalid entry fakeGame | |
4 | {{Version|HWAoC|1.3.0}} | Version 1.3.0 | |
5 | {{Version||1.3.0}} | Error: No game provided | |
6 | {{Version|HWAoC|1.3.0|link}} | Version 1.3.0 | |
7 | {{Version||1.3.0|link}} | Error: No game provided |
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)