Template:Page categories: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (edited description)
m (Protected "Template:Page categories": High traffic page: v important page! ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>
=== Description ===
{{#if: {{{Interview|}}} | {{Numerical titles
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.
|page      = {{PAGENAME}}
|category  = Interview
}} }}
 
{{#if: {{{Guest Rogues|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Guest Rogues
}} }}
 
{{#if: {{{SoF with a Theme|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = SoF with a Theme
}} }}
 
{{#if: {{{Live Recording|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Live Recording
}} }}
 
{{#if: {{{Amendments|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Amendments
}} }}
 
{{#if: {{{What's the Word?|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = What's the Word?
}} }}
 
{{#if: {{{Name That Logical Fallacy|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Name That Logical Fallacy
}} }}
 
{{#if: {{{Skeptical Puzzle|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Skeptical Puzzle
}} }}
 
{{#if: {{{Randi Speaks|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Randi Speaks
}} }}
 
{{#if: {{{Year in Review|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Year in Review
}} }}
 
{{#if: {{{Women in History|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Women in History
}} }}
 
{{#if: {{{This Day in Skepticism|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = This Day in Skepticism
}} }}
 
{{#if: {{{Forgotten Superheroes of Science|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Forgotten Superheroes of Science
}} }}
 
{{#if: {{{Alternative Medicine|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Alternative Medicine
}} }}
 
{{#if: {{{Astronomy & Space Science|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Astronomy & Space Science
}} }}
 
{{#if: {{{Cons, Scams & Hoaxes|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Cons, Scams & Hoaxes
}} }}
 
{{#if: {{{Conspiracy Theories|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Conspiracy Theories
}} }}
 
{{#if: {{{Creationism & ID|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Creationism & ID
}} }}
 
{{#if: {{{Cryptozoology|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Cryptozoology
}} }}
 
{{#if: {{{Energy Healing|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Energy Healing
}} }}
 
{{#if: {{{Entertainment|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Entertainment
}} }}
 
{{#if: {{{ESP|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = ESP
}} }}
 
{{#if: {{{General Science|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = General Science
}} }}
 
{{#if: {{{Ghosts & Demons|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Ghosts & Demons
}} }}
 
{{#if: {{{History|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = History
}} }}
 
{{#if: {{{Homeopathy|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Homeopathy
}} }}
 
{{#if: {{{Humor|}}} | {{Numerical titles
|page     = {{PAGENAME}}
|category  = Humor
}} }}
 
{{#if: {{{Legal Issues & Regulations|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category = Legal Issues & Regulations
}} }}


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 <code><nowiki>[[Category:Topic]]</nowiki></code>).
{{#if: {{{Logic & Philosophy|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Logic & Philosophy
}} }}


=== Usage ===
{{#if: {{{Myths & Misconceptions|}}} | {{Numerical titles
To assign categories, copy the following code and delete unwanted category lines.
|page      = {{PAGENAME}}
|category  = Myths & Misconceptions
}} }}


<pre>
{{#if: {{{Nature & Evolution|}}} | {{Numerical titles
{{Page categories
|page      = {{PAGENAME}}
|Guest Rogues              = y
|category = Nature & Evolution
|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
}}
</pre>


<!--  template for category inclusion, replace '???' with category name
{{#if: {{{Neuroscience & Psychology|}}} | {{Numerical titles
{{#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}}]]}} }}
|page      = {{PAGENAME}}
-->
|category  = Neuroscience & Psychology
}} }}


</noinclude><includeonly>
{{#if: {{{New Age|}}} | {{Numerical titles
{{#if: {{{Guest Rogues|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Guest Rogues|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Guest Rogues|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Guest Rogues|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|page      = {{PAGENAME}}
|category  = New Age
}} }}


{{#if: {{{Live Recording|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Live Recording|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Live Recording|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Live Recording|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Paranormal|}}} | {{Numerical titles
<!--
|page      = {{PAGENAME}}
{{#if: {{{Year Review|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Year Review|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Year Review|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Year Review|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|category  = Paranormal
-->
}} }}
{{#if: {{{Interview|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Interview|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Interview|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Interview|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}


{{#if: {{{Randi Speaks|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Randi Speaks|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Randi Speaks|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Randi Speaks|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Physics & Mechanics|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Physics & Mechanics
}} }}


{{#if: {{{Amendments|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Amendments|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Amendments|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Amendments|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Politics|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Politics
}} }}


{{#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: {{{Prophecy|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Prophecy
}} }}


{{#if: {{{Astronomy & Space Science|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Astronomy & Space Science|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Astronomy & Space Science|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Astronomy & Space Science|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Pseudoscience|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Pseudoscience
}} }}


{{#if: {{{Cons, Scams & Hoaxes|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Cons, Scams & Hoaxes|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Cons, Scams & Hoaxes|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Cons, Scams & Hoaxes|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Religion & Faith|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Religion & Faith
}} }}


{{#if: {{{Conspiracy Theories|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Conspiracy Theories|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Conspiracy Theories|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Conspiracy Theories|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Science & Education|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Science & Education
}} }}


{{#if: {{{Creationism & ID|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Creationism & ID|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Creationism & ID|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Creationism & ID|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Science & Medicine|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Science & Medicine
}} }}


{{#if: {{{Cryptozoology|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Cryptozoology|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Cryptozoology|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Cryptozoology|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Science & the Media|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Science & the Media
}} }}


{{#if: {{{Energy Healing|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Energy Healing|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Energy Healing|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Energy Healing|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{SGU|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = SGU
}} }}


{{#if: {{{Entertainment|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Entertainment|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Entertainment|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Entertainment|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Technology|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Technology
}} }}


{{#if: {{{ESP|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:ESP|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:ESP|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:ESP|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{UFOs & Aliens|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = UFOs & Aliens
}} }}


{{#if: {{{General Science|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:General Science|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:General Science|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:General Science|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{#if: {{{Other|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = Other
}} }}


{{#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}}]] 2|3 = [[Category:History|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
{{Numerical titles          <!-- adds page to hidden category, Categorized -->
|page      = {{PAGENAME}}
|category  = Categorized
|}}
</includeonly><noinclude>
=== 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. It also adds the page to [[:Category: Categorized]] for admin purposes.


{{#if: {{{Homeopathy|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Homeopathy|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Homeopathy|# 0{{#sub:{{PAGENAME}}|12|0}}]] 2|3 = [[Category:Homeopathy|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
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 <code><nowiki>[[Category:Topic]]</nowiki></code>).


{{#if: {{{Humor|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Humor|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Humor|# 0{{#sub:{{PAGENAME}}|12|0}}]] 2|3 = [[Category:Humor|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
=== Usage ===
To assign categories, copy the following code and delete unwanted category lines.


{{#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}}]]}} }}
<pre>
{{Page categories <!-- it helps to write a short description with the (episode number) which can then be used to search for the [Short description (nnnn)]s to create pages for redirects. Also, once redirects have been created, please hide the non-blank text used to place the whole episode within the same category as the redirect in the markup.


{{#if: {{{Logic & Philosophy|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Logic & Philosophy|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Logic & Philosophy|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Logic & Philosophy|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
We suggest typing "redirect(s) created for" in front of the text you hide in the markup. -->


{{#if: {{{Myths & Misconceptions|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Myths & Misconceptions|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Myths & Misconceptions|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Myths & Misconceptions|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|Guest Rogues = <!-- search for NAME (nnnn) to create a redirect page -->


{{#if: {{{Nature & Evolution|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Nature & Evolution|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Nature & Evolution|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Nature & Evolution|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
<!-- also note, not all guests are guest rogues; interviewees who don't feature beyond the interview are just guests -->


{{#if: {{{Neuroscience & Psychology|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Neuroscience & Psychology|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Neuroscience & Psychology|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Neuroscience & Psychology|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|Live Recording = <!-- search for TITLE (nnnn) to create a redirect page,
then edit that page with:  


{{#if: {{{New Age|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:New Age|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:New Age|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:New Age|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
#REDIRECT
[[SGU_Episode_nnnn]]  
[[Category:Live Recording]] -->


{{#if: {{{Paranormal|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Paranormal|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Paranormal|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Paranormal|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|Interview = <!--


{{#if: {{{Physics & Mechanics|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Physics & Mechanics|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Physics & Mechanics|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Physics & Mechanics|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
search for NAME interview: TOPIC (nnnn) to create a redirect page then edit that page with:  


{{#if: {{{Politics|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Politics|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Politics|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Politics|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
#REDIRECT
[[SGU_Episode_NNNN#insert_specific_interview_section_address_here]]  
[[Category:Interview]] -->


{{#if: {{{Prophecy|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Prophecy|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Prophecy|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Prophecy|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|Alternative Medicine =
|Astronomy & Space Science =
|Cons, Scams & Hoaxes =
|Conspiracy Theories =
|Creationism & ID =
|Cryptozoology =
|Energy Healing =
|Entertainment =
|ESP =
|General Science =
|Ghosts & Demons =
|History =
|Homeopathy =
|Humor =
|Legal Issues & Regulations =
|Logic & Philosophy =
|Myths & Misconceptions =
|Nature & Evolution =
|Neuroscience & Psychology =  
|New Age =
|Paranormal =
|Physics & Mechanics =
|Politics =  
|Prophecy =
|Pseudoscience =
|Religion & Faith =
|Science & Education =
|Science & Medicine =
|Science & the Media =  
|SGU =
|Technology =
|UFOs & Aliens =


{{#if: {{{Pseudoscience|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Pseudoscience|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Pseudoscience|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Pseudoscience|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|SoF with a Theme = <!--


{{#if: {{{Religion & Faith|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Religion & Faith|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Religion & Faith|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Religion & Faith|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
search for "THEME - SoF Theme (nnnn)" to create a redirect page, then edit that page with:  


{{#if: {{{Science & Education|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Science & Education|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Science & Education|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Science & Education|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
#REDIRECT
[[SGU_Episode_NNNN#theme]]  
[[Category:SoF with a Theme]] -->


{{#if: {{{Science & Medicine|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Science & Medicine|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Science & Medicine|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Science & Medicine|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|What's the Word? = <!--


{{#if: {{{Science & the Media|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Science & the Media|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Science & the Media|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Science & the Media|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
search for "WORD (nnnn WTW)" to create a redirect page, then edit that page with:  


{{#if: {{{SGU|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:SGU|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:SGU|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:SGU|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
#REDIRECT
[[SGU_Episode_NNNN#wtw]]  
[[Category:What's the Word?]] -->


{{#if: {{{Technology|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Technology|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Technology|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Technology|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|Amendments =
|Forgotten Superheroes of Science =
|Name That Logical Fallacy =
|This Day in Skepticism =
|Women in History =
|Year in Review =


{{#if: {{{UFOs & Aliens|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:UFOs & Aliens|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:UFOs & Aliens|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:UFOs & Aliens|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
|Other =  
|Randi Speaks =  
|Skeptical Puzzle =
}}
</pre>


{{#if: {{{Other|}}} | {{#switch: {{#len:{{#sub:{{PAGENAME}}|12|0}}}} |1 = [[Category:Other|# 00{{#sub:{{PAGENAME}}|12|0}}]]|2 = [[Category:Other|# 0{{#sub:{{PAGENAME}}|12|0}}]]|3 = [[Category:Other|# {{#sub:{{PAGENAME}}|12|0}}]]}} }}
<!--  template for category inclusion, replace '???' with category name
{{#if: {{{???|}}} | {{Numerical titles
|page      = {{PAGENAME}}
|category  = ???
}} }}-->


</includeonly>
[[Category:Utility templates]]
[[Category:Templates]]
</noinclude>

Latest revision as of 16:35, 28 May 2024

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. It also adds the page to Category: Categorized for admin purposes.

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 		<!-- it helps to write a short description with the (episode number) which can then be used to search for the [Short description (nnnn)]s to create pages for redirects. Also, once redirects have been created, please hide the non-blank text used to place the whole episode within the same category as the redirect in the markup. 

We suggest typing "redirect(s) created for" in front of the text you hide in the markup. -->

|Guest Rogues			= <!-- search for NAME (nnnn) to create a redirect page -->

<!-- also note, not all guests are guest rogues; interviewees who don't feature beyond the interview are just guests --> 

|Live Recording			= <!-- search for TITLE (nnnn) to create a redirect page, 
then edit that page with: 

#REDIRECT 
[[SGU_Episode_nnnn]] 
[[Category:Live Recording]] -->

|Interview			= <!-- 

search for NAME interview: TOPIC (nnnn) to create a redirect page then edit that page with: 

#REDIRECT 
[[SGU_Episode_NNNN#insert_specific_interview_section_address_here]] 
[[Category:Interview]] -->

|Alternative Medicine		= 
|Astronomy & Space Science	= 
|Cons, Scams & Hoaxes		= 
|Conspiracy Theories		= 
|Creationism & ID		= 
|Cryptozoology			= 
|Energy Healing			= 
|Entertainment			= 
|ESP				= 
|General Science		= 
|Ghosts & Demons		= 
|History			= 
|Homeopathy			= 
|Humor				= 
|Legal Issues & Regulations	= 
|Logic & Philosophy		= 
|Myths & Misconceptions		= 
|Nature & Evolution		= 
|Neuroscience & Psychology	= 
|New Age			= 
|Paranormal			= 
|Physics & Mechanics		= 
|Politics			= 
|Prophecy			= 
|Pseudoscience			= 
|Religion & Faith		= 
|Science & Education		= 
|Science & Medicine		= 
|Science & the Media		= 
|SGU				= 
|Technology			= 
|UFOs & Aliens			= 

|SoF with a Theme		= <!-- 

search for "THEME - SoF Theme (nnnn)" to create a redirect page, then edit that page with: 

#REDIRECT 
[[SGU_Episode_NNNN#theme]] 
[[Category:SoF with a Theme]] -->

|What's the Word?		= <!-- 

search for "WORD (nnnn WTW)" to create a redirect page, then edit that page with: 

#REDIRECT 
[[SGU_Episode_NNNN#wtw]] 
[[Category:What's the Word?]] --> 

|Amendments			= 
|Forgotten Superheroes of Science =
|Name That Logical Fallacy	=
|This Day in Skepticism		=
|Women in History		=
|Year in Review			=

|Other				= 
|Randi Speaks			= 
|Skeptical Puzzle		=
}}