GameCategory/SortKey – Template

From Bohemia Interactive Community
< Template:GameCategory
Revision as of 11:33, 16 November 2021 by Lou Montana (talk | contribs) (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns an uppercase category sort key for the provided page.

Usage

{{GameCategory/SortKey|categoryName|pageName}}

  • categoryName: the game's category name (see {{Name}} - e.g Arma 2, not arma2)
  • pageName: the page name from which the key is taken
Examples
Code Result
{{GameCategory/SortKey}}
{{GameCategory/SortKey|Arma 2}}
{{GameCategory/SortKey|Arma 2|Arma 2}} ARMA 2
{{GameCategory/SortKey|Arma 2|Arma 2: Editing}} EDITING
{{GameCategory/SortKey|Arma 3|Arma 3 Editing}} EDITING