Template:Version: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(We should not be abbreviating this.)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|{{#iferror:{{#invoke:Franchise|Article|{{{1|}}}}}|Version {{{2}}}[[Category:{{Invalid Arguments}}]]|{{#ifeq:{{{3|}}}|link|[[{{#invoke:Franchise|Article|{{{1|}}}}}/Version History#Version {{{2}}}|Ver. {{{2}}}]]|Ver. {{{2}}}}}}}|{{#invoke:Error|Error|Missing Version Number|Category:{{Invalid Arguments}}}}}}</includeonly><noinclude>
<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

#InputOutputCategories 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

#InputOutput
8{{Ver|HWAoC|1.3.0|link}} Ver. 1.3.0
The above documentation is transcluded from Template:Version/Documentation. (edit | history)