GameCategory – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Template creation)
 
(Fix template)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|[[Category:{{Name|{{{1}}}}}{{#if:{{{2|}}}|<nowiki/> {{{2}}}}}}}</includeonly><noinclude>
<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 15: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)
Examples
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]]