Template:5X5 categories: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (Reverted edits by Av8rmike (talk) to last revision by Teleuteskitty)
m (Categorize)
Line 1: Line 1:
<noinclude>
<includeonly>
=== 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 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|}}} | {{Numerical titles
{{#if: {{{Alternative Medicine|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|page      = {{PAGENAME}}
Line 217: Line 168:
|page      = {{PAGENAME}}
|page      = {{PAGENAME}}
|category  = Categorized
|category  = Categorized
}} </includeonly>
}} </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. It also adds the page to the list of [[:Category:Categorized|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 <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}}]]}} }}
-->
[[Category:Utility templates]]
</noinclude>

Revision as of 11:24, 28 July 2013

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

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