Difference between revisions of "Template:Character"

From The Kingkiller Chronicle Wiki
Jump to navigation Jump to search
(Automagically categorize pages)
(Allow the character type to be added automatically)
Line 28: Line 28:
 
|-
 
|-
 
|}
 
|}
 +
 +
[[Category:Characters]]
  
 
{{#switch: {{lc:{{{gender}}}}}
 
{{#switch: {{lc:{{{gender}}}}}
Line 34: Line 36:
 
| unknown = [[Category:Gender:_Unknown]]
 
| unknown = [[Category:Gender:_Unknown]]
 
| #default = [[Category:Characters with an undefined gender]]
 
| #default = [[Category:Characters with an undefined gender]]
 +
}}
 +
 +
{{#switch: {{lc:{{{type}}}}}
 +
| major = [[Category:Major Characters]]
 +
| #default = [[Category:Minor Characters]]
 
}}
 
}}
  
Line 42: Line 49:
 
| #default = [[Category:Characters with an undefined status]]
 
| #default = [[Category:Characters with an undefined status]]
 
}}
 
}}
 
[[Category:Characters]]
 
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
{{/doc}}
 
{{/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 19:21, 15 December 2018