Template:Version: Difference between revisions
Jump to navigation
Jump to search
TriforceTony (talk | contribs) No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|{{#iferror:{{#invoke:Franchise|Article|{{{1|}}}}}| | <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:Formatting 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)