GameCategory – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Template creation) |
Lou Montana (talk | contribs) (Fix template) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|[[Category:{{Name|{{{1}}}}} | <includeonly>{{#if:{{{1|}}} | ||
|{{#if:{{{2|}}} | |||
|[[Category: {{Name|{{{1}}}|short}}: {{{2}}}]] | |||
|[[Category: {{Name|{{{1}}}|short}}]]]]}} | |||
}}</includeonly><noinclude> | |||
Adds a game (sub-)category to the proper format. | Adds a game (sub-)category to the proper format. | ||
Line 6: | Line 10: | ||
* game: game id, see {{Template|Name}} | * game: game id, see {{Template|Name}} | ||
* subCategory: (Optional, default empty) sub-category (e.g Editing) | * subCategory: (Optional, default empty) sub-category (e.g Editing) | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 14:20, 26 July 2020
Adds a game (sub-)category to the proper format.
Usage
{{GameCategory|game|subCategory}}
- game: game id, see {{Name}}
- subCategory: (Optional, default empty) sub-category (e.g Editing)
Code | Result |
---|---|
{{GameCategory}} | N/A |
{{GameCategory|arma2}} | [[Category:{{Name|arma2}}]] End result: [[Category:Arma 2]] |
{{GameCategory|arma3|Editing}} | [[Category:{{Name|arma3}}: Editing]] End result: [[Category:Arma 3: Editing]] |