Template:5X5 categories: Difference between revisions
Jump to navigation
Jump to search
m (added category) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{Alternative Medicine|}}} | {{Numerical titles | <includeonly> | ||
{{#if: {{{Alternative Medicine|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |page = {{PAGENAME}} | ||
|category = Alternative Medicine | |category = Alternative Medicine | ||
Line 167: | Line 168: | ||
|page = {{PAGENAME}} | |page = {{PAGENAME}} | ||
|category = Categorized | |category = Categorized | ||
}}</includeonly><noinclude> | }} </includeonly><noinclude> | ||
=== Description === | === Description === | ||
This template adds categories to full episode pages in alphabetical order. It uses the page name to determine the sortkey so that 5X5 episodes are grouped under # on category pages, following full episode links and listed numerically. It also adds the page to the list of [[:Category:Categorized|Categorized]] episodes. | This template adds categories to full episode pages in alphabetical order. It uses the page name to determine the sortkey so that 5X5 episodes are grouped under # on category pages, following full episode links and listed numerically. It also adds the page to the list of [[:Category:Categorized|Categorized]] episodes. | ||
Line 211: | Line 212: | ||
}} | }} | ||
</pre> | </pre> | ||
<!-- template for category inclusion, replace '???' with category name | |||
{{#if: {{{???|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:???|# ~00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:???|# ~0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:???|# ~{{#sub:{{PAGENAME}}|12|0}}]]}} }} | |||
--> | |||
[[Category:Utility templates]] | [[Category:Utility templates]] | ||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 14:17, 13 September 2016
Description[edit]
This template adds categories to full episode pages in alphabetical order. It uses the page name to determine the sortkey so that 5X5 episodes are grouped under # on category pages, following full episode links and listed numerically. It also adds the page to the list of Categorized episodes.
This template should be used for adding categories to 5X5 episode pages only. For full episodes, use Template:Page categories. Redirects to segments within episodes should be categorized normally (e.g [[Category:Topic]]
).
Usage[edit]
To assign categories to 5X5 episode pages, copy the following code and delete unwanted category lines.
{{5X5 categories |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 }}