GameCategory/SortKey – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add category details) |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}") |
||
Line 18: | Line 18: | ||
== Usage == | == Usage == | ||
{{<nowiki/>GameCategory/SortKey|'''''categoryName'''''|'''''pageName'''''}} | {{<nowiki/>GameCategory/SortKey|'''''categoryName'''''|'''''pageName'''''}} | ||
* categoryName: the game's ''category'' name (see {{Template|Name}} - e.g | * categoryName: the game's ''category'' name (see {{Template|Name}} - e.g {{hl|Arma 2}}, '''not''' {{hl|arma2}}) | ||
* pageName: the page name from which the key is taken | * pageName: the page name from which the key is taken | ||
Latest revision as of 10:33, 16 November 2021
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
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 |