Template:5X5 categories: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
(added history and SGU)
m (edited explanation)
Line 1: Line 1:
<includeonly>
<noinclude>
=== 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.
 
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 <code><nowiki>[[Category:Topic]]</nowiki></code>).
=== Usage ===
To assign categories to 5X5 episode pages, copy the following code and delete unwanted category lines.
<pre>
{{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
}}
</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}}]]}} }}
-->
 
</noinclude><includeonly>
{{#if: {{{Alternative Medicine|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Alternative Medicine|# ~00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Alternative Medicine|# ~0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Alternative Medicine|# ~{{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Alternative Medicine|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Alternative Medicine|# ~00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Alternative Medicine|# ~0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Alternative Medicine|# ~{{#sub:{{PAGENAME}}|12|0}}]]}} }}


Line 68: Line 117:


</includeonly>
</includeonly>
<noinclude>
To assign categories to 5X5 episode pages, copy the following code and delete unwanted category lines.
<pre>
{{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
}}
</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}}]]}} }}
-->
</noinclude>

Revision as of 20:36, 8 July 2012

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.

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

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
}}