GameCategory – Template

From Bohemia Interactive Community
Revision as of 21:35, 27 December 2020 by Lou Montana (talk | contribs) (Add Name template cat argument)
Jump to navigation Jump to search

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).
Uses {{Name}} and {{GameCategory/SortKey}}.

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|arma1}} [[Category: {{Name|arma1|cat}}|SORTKEY]]
End result: [[Category: ArmA: Armed Assault|SORTKEY]]
{{GameCategory|arma3|Editing}} [[Category: {{Name|arma3|cat}}: Editing|SORTKEY]]
End result: [[Category: Arma 3: Editing|SORTKEY]]