Template:Trn: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Protected "Template:Trn": high traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(converting to use module)
 
Line 1: Line 1:
[[Tournament:{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}}|{{{1}}}]]<noinclude>
<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}}.


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}}.


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>

Latest revision as of 19:02, February 3, 2024

Type {{Trn|Name}} to link to a page in the Tournament namespace. For example, {{Trn|Apex 2015}} results in Apex 2015.

A second parameter can be given for (parentheses disambiguation). For example, {{Trn|Revival of Melee|series}} results in Revival of Melee.

To get formatting based on whether a tournament is a "major" or similar, add |g=SSBM or similar. For example, {{Trn|Apex 2013|g=SSBB}} results in Apex 2013.

The actual code is at Module:Trn. If you're looking to change which tournaments are majors and whatnot, see Module:Trn/data.