User:Zeal/Sandbox/Templates/cat/realm

Categorizer - Realm

 * Author
 * Zeal Vurte
 * Description:
 * Adds a realm article to, and correctly sorts in, the appropriate categories. This should be used in the footer of all realm related pages.


 * The following values and no value are accepted for &#34;region&#34;:
 * EU - European
 * US - Amerian
 * CN - Chinese
 * KR - Korean


 * The following values and no value are accepted for &#34;lang&#34; as languages for EU realms:
 * EN - English
 * FR - French
 * DE - German
 * ES - Spanish


 * The following values and no value are accepted for &#34;lang&#34; as timezones for US realms:
 * EST - Eastern
 * CST - Central
 * MST - Mountain
 * PST - Pacific
 * AEST - Ocianic


 * The following values and no value are accepted for &#34;type&#34;:
 * PvP
 * PvE
 * RP
 * RPPvP


 * The following values and no value are accepted for &#34;status&#34;:
 * Test
 * Beta
 * PTR
 * Syntax:
 * undefined
 * Parameters can be in any order and any or all parameters can be left out.
 * Example:
 * Result:
 * Template:
 * Template:
 * Template:

{{#if:{{{name|{{{1|}}}}}}|then= {{#switch:{{{region|{{{2}}}}}} }} {{#switch:{{{lang|{{{3}}}}}} {{#switch:{{{state|{{{6}}}}}} {{{migrate|{{{7|}}}}}} }}
 * EU=|US={{#if:{{{bgroup|{{{5|}}}}}}|}}
 * CN={{#if:{{{bgroup|{{{5|}}}}}}|}}
 * KR={{#if:{{{bgroup|{{{5|}}}}}}|[Category:Battlegroup:{{{bgroup|{{{5}}}}}} (KR)|{{{{name|{{{1|}}}}}}]]}}
 * EN={{#if:{{{bgroup|{{{5|}}}}}}|}}
 * FR={{#if:{{{bgroup|{{{5|}}}}}}|}}
 * DE={{#if:{{{bgroup|{{{5|}}}}}}|}}
 * ES={{#if:{{{bgroup|{{{5|}}}}}}|then=}}
 * EST=|CST=|MST=|PST=|AEST=}}
 * Beta=|Test=|PTR=}}