Template:Page categories: Difference between revisions
Jump to navigation
Jump to search
(fix) |
m (Protected "Template:Page categories": High traffic page: v important page! ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(35 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{ | {{#if: {{{Interview|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Interview | |||
}} }} | |||
{{#if: {{{Guest Rogues|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Guest Rogues | |||
}} }} | |||
{{#if: {{{ | {{#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 | |||
}} }} | |||
{{#if: {{{Logic & Philosophy|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Logic & Philosophy | |||
}} }} | |||
{{#if: {{{Myths & Misconceptions|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Myths & Misconceptions | |||
}} }} | |||
{{#if: {{{Nature & Evolution|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Nature & Evolution | |||
}} }} | |||
{{#if: {{{Neuroscience & Psychology|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Neuroscience & Psychology | |||
}} }} | |||
{{#if: {{{New Age|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = New Age | |||
}} }} | |||
{{#if: {{{Paranormal|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Paranormal | |||
}} }} | |||
{{#if: {{{Physics & Mechanics|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Physics & Mechanics | |||
}} }} | |||
{{#if: {{{Politics|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Politics | |||
}} }} | |||
{{#if: {{{Prophecy|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Prophecy | |||
}} }} | |||
{{#if: {{{Pseudoscience|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Pseudoscience | |||
}} }} | |||
{{#if: {{{Religion & Faith|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Religion & Faith | |||
}} }} | |||
{{#if: {{{Science & Education|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Science & Education | |||
}} }} | |||
{{#if: {{{Science & Medicine|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Science & Medicine | |||
}} }} | |||
{{#if: {{{Science & the Media|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Science & the Media | |||
}} }} | |||
{{#if: {{{SGU|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = SGU | |||
}} }} | |||
{{#if: {{{Technology|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Technology | |||
}} }} | |||
{{#if: {{{UFOs & Aliens|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = UFOs & Aliens | |||
}} }} | |||
{{#if: {{{Other|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Other | |||
}} }} | |||
{{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. | |||
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>). | |||
=== Usage === | |||
To assign categories, copy the following code and delete unwanted category lines. | |||
<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. | |||
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 = | |||
}} | |||
</pre> | |||
<!-- template for category inclusion, replace '???' with category name | |||
{{#if: {{{???|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = ??? | |||
}} }}--> | |||
[[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 = }}