Template:5X5 categories: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (integrated 'Numerical titles')
m (added category)
 
(11 intermediate revisions by 2 users not shown)
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.
 
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>
{{#if: {{{Alternative Medicine|}}} | {{Numerical titles
{{#if: {{{Alternative Medicine|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|page      = {{PAGENAME}}
Line 213: Line 164:
|category  = Other
|category  = Other
}} }}
}} }}
</includeonly>
 
{{Numerical titles
|page      = {{PAGENAME}}
|category  = Categorized
}} </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]]
[[Category:Templates]]
</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
}}