GameCategory/SortKey – Template
| Lou Montana (talk | contribs) m (Fix the fix) | Lou Montana (talk | contribs)  m (Add example) | ||
| Line 31: | Line 31: | ||
| | <nowiki>{{GameCategory/SortKey|Arma 2}}</nowiki> | | <nowiki>{{GameCategory/SortKey|Arma 2}}</nowiki> | ||
| | {{GameCategory/SortKey|Arma 2}} | | {{GameCategory/SortKey|Arma 2}} | ||
| |- | |||
| | <nowiki>{{GameCategory/SortKey|Arma 2}}</nowiki> | |||
| | {{GameCategory/SortKey|Arma 2|Arma 2}} | |||
| |- | |- | ||
| | <nowiki>{{GameCategory/SortKey|Arma 2|Arma 2: Editing}}</nowiki> | | <nowiki>{{GameCategory/SortKey|Arma 2|Arma 2: Editing}}</nowiki> | ||
Revision as of 10:25, 27 July 2020
Returns a category sort key for the provided page.
Usage
{{GameCategory/SortKey|categoryName|pageName}}
- categoryName: the game's full name (e.g Arma 2, not arma2)
- pageName: the page name from which to get the key, will be uppercased
| Code | Result | 
|---|---|
| {{GameCategory/SortKey}} | |
| {{GameCategory/SortKey|Arma 2}} | |
| {{GameCategory/SortKey|Arma 2}} | ARMA 2 | 
| {{GameCategory/SortKey|Arma 2|Arma 2: Editing}} | EDITING | 
| {{GameCategory/SortKey|Arma 3|Arma 3 Editing}} | EDITING | 
