GameCategory – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add /SortKey usage) |
Lou Montana (talk | contribs) m (Fix) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}} | <includeonly>{{#if:{{{1|}}} | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
|[[Category: {{Name|{{{1}}}|short}}: {{{2}}}|{{GameCategory/SortKey|{{Name|{{{1}}}|short}}|{{PAGENAME}}]] | |[[Category: {{Name|{{{1}}}|short}}: {{{2}}}|{{GameCategory/SortKey|{{Name|{{{1}}}|short}}|{{PAGENAME}}}}]] | ||
|[[Category: {{Name|{{{1}}}|short}}|{{GameCategory/SortKey|{{Name|{{{1}}}|short}}|{{PAGENAME}}]] | |[[Category: {{Name|{{{1}}}|short}}|{{GameCategory/SortKey|{{Name|{{{1}}}|short}}|{{PAGENAME}}}}]] | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> |
Revision as of 18:40, 26 July 2020
Adds a game (sub-)category to the proper format and finds the page Category Sort key (e.g Arma 2: Editing gets sorted as EDITING).
Usage
{{GameCategory|game|subCategory}}
- game: game id, see {{Name}}
- subCategory: (Optional, default empty) sub-category (e.g Editing)
Code | Result |
---|---|
{{GameCategory}} | N/A |
{{GameCategory|arma}} | [[Category: {{Name|arma}}|SORTKEY]] End result: [[Category: Arma|SORTKEY]] |
{{GameCategory|arma3|Editing}} | [[Category: {{Name|arma3}}: Editing|SORTKEY]] End result: [[Category: Arma 3: Editing|SORTKEY]] |