Difference between revisions of "Template:GameCategory"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix)
m (Add /SortKey link)
Line 5: Line 5:
 
}}
 
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
Adds a game (sub-)category to the proper format and finds the page Category Sort key (e.g <tt>Arma 2: Editing</tt> gets sorted as <tt>EDITING</tt>).
+
Adds a game (sub-)category to the proper format and finds the page Category Sort key (e.g <tt>Arma 2: Editing</tt> gets sorted as <tt>EDITING</tt>).<br>
 +
Uses {{Template|GameCategory/SortKey}}.
  
 
== Usage ==
 
== Usage ==

Revision as of 23:19, 26 July 2020

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 {{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|arma}} [[Category: {{Name|arma}}|SORTKEY]]
End result: [[Category: Arma|SORTKEY]]
{{GameCategory|arma3|Editing}} [[Category: {{Name|arma3}}: Editing|SORTKEY]]
End result: [[Category: Arma 3: Editing|SORTKEY]]