25,138
edits
(New Page: [[Tournament:{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}}|{{{1}}}]]<noinclude> Type <code><nowiki>{{Trn|Name}}</nowiki></code> to link to a page in the Tournament namespace. For example,...) |
(converting to use module) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Trn|formatTournamentLink|{{{1}}}|{{{2|}}}|{{{3|{{{g|}}}}}}}}</includeonly><noinclude>Type <code><nowiki>{{Trn|Name}}</nowiki></code> to link to a page in the Tournament namespace. For example, <code><nowiki>{{Trn|Apex 2015}}</nowiki></code> results in {{Trn|Apex 2015}}. | |||
A second parameter can be given for (parentheses disambiguation). For example, <code><nowiki>{{Trn|Revival of Melee|series}}</nowiki></code> results in {{Trn|Revival of Melee|series}}. | |||
To get formatting based on whether a tournament is a "major" or similar, add <code><nowiki>|g=SSBM</nowiki></code> or similar. For example, <code><nowiki>{{Trn|Apex 2013|g=SSBB}}</nowiki></code> results in {{Trn|Apex 2013|g=SSBB}}. | |||
The actual code is at [[Module:Trn]]. If you're looking to change which tournaments are majors and whatnot, see [[Module:Trn/data]]. | |||
[[Category:Shortcut templates]]</noinclude> | [[Category:Shortcut templates]]</noinclude> |