Difference between revisions of "Template:GameCategory"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Fix template)
m (Fix examples)
Line 19: Line 19:
 
| {{n/a}}
 
| {{n/a}}
 
|-
 
|-
| <nowiki>{{GameCategory|arma2}}</nowiki>
+
| <nowiki>{{GameCategory|arma}}</nowiki>
| <tt><nowiki>[[Category:{{Name|arma2}}]]</nowiki></tt><br>End result: <tt><nowiki>[[Category:Arma 2]]</nowiki></tt>
+
| <tt><nowiki>[[Category: {{Name|arma}}]]</nowiki></tt><br>End result: <tt>[[<nowiki/>Category: {{Name|arma}}]]</tt>
 
|-
 
|-
 
| <nowiki>{{GameCategory|arma3|Editing}}</nowiki>
 
| <nowiki>{{GameCategory|arma3|Editing}}</nowiki>
| <tt><nowiki>[[Category:{{Name|arma3}}: Editing]]</nowiki></tt><br>End result: <tt><nowiki>[[Category:Arma 3: Editing]]</nowiki></tt>
+
| <tt><nowiki>[[Category: {{Name|arma3}}: Editing]]</nowiki></tt><br>End result: <tt>[[<nowiki/>Category: {{Name|arma3}}: Editing]]</tt>
 
|}
 
|}
  
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
 
</noinclude>
 
</noinclude>

Revision as of 14:41, 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|arma}} [[Category: {{Name|arma}}]]
End result: [[Category: Arma]]
{{GameCategory|arma3|Editing}} [[Category: {{Name|arma3}}: Editing]]
End result: [[Category: Arma 3: Editing]]