Template:Page categories: Difference between revisions
Jump to navigation
Jump to search
m edited description |
m amended error |
||
| Line 90: | Line 90: | ||
{{#if: {{{Ghosts & Demons|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Ghosts & Demons|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Ghosts & Demons|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Ghosts & Demons|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | {{#if: {{{Ghosts & Demons|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Ghosts & Demons|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Ghosts & Demons|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Ghosts & Demons|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | ||
{{#if: {{{History|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:History|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:History|# 0{{#sub:{{PAGENAME}}|12|0}}]] | {{#if: {{{History|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:History|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:History|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:History|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | ||
{{#if: {{{Homeopathy|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Homeopathy|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Homeopathy|# 0{{#sub:{{PAGENAME}}|12|0}}]] | {{#if: {{{Homeopathy|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Homeopathy|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Homeopathy|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Homeopathy|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | ||
{{#if: {{{Humor|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Humor|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Humor|# 0{{#sub:{{PAGENAME}}|12|0}}]] | {{#if: {{{Humor|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Humor|# | ||
00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Humor|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Humor|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | |||
{{#if: {{{Legal Issues & Regulations|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Legal Issues & Regulations|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Legal Issues & Regulations|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Legal Issues & Regulations|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | {{#if: {{{Legal Issues & Regulations|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Legal Issues & Regulations|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Legal Issues & Regulations|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Legal Issues & Regulations|# {{#sub:{{PAGENAME}}|12|0}}]]}} }} | ||
Revision as of 20:31, 22 July 2012
Description
This template adds categories to full episode pages in a uniform order, starting with episode-wide categories, and then the topic categories in alphabetical order. It uses the page name to determine the sortkey so that episodes are grouped under # on category pages, and listed numerically.
This template should be used for adding categories to full episode pages only. For 5X5 episodes, use Template:5X5 categories. Redirects to segments within episodes should be categorized normally (e.g [[Category:Topic]]).
Usage
To assign categories, copy the following code and delete unwanted category lines.
{{Page categories
|Guest Rogues = y
|Live Recording = y
|Interview = y
|Randi Speaks = y
|Amendments = y
|Alternative Medicine = y
|Astronomy & Space Science = y
|Cons, Scams & Hoaxes = y
|Conspiracy Theories = y
|Creationism & ID = y
|Cryptozoology = y
|Energy Healing = y
|Entertainment = y
|ESP = y
|General Science = y
|Ghosts & Demons = y
|History = y
|Homeopathy = y
|Humor = y
|Legal Issues & Regulations = y
|Logic & Philosophy = y
|Myths & Misconceptions = y
|Nature & Evolution = y
|Neuroscience & Psychology = y
|New Age = y
|Paranormal = y
|Physics & Mechanics = y
|Politics = y
|Prophecy = y
|Pseudoscience = y
|Religion & Faith = y
|Science & Education = y
|Science & Medicine = y
|Science & the Media = y
|SGU = y
|Technology = y
|UFOs & Aliens = y
|Other = y
}}