Template:Page categories: Difference between revisions
Jump to navigation
Jump to search
(removed annoying invisible thingies that screw things up) |
m (added category) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{ | {{#if: {{{Guest Rogues|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Guest Rogues | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Live Recording|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Live Recording | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Interview|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Interview | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Randi Speaks|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Randi Speaks | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Skeptical Puzzle|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Skeptical Puzzle | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Amendments|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Amendments | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Alternative Medicine|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Alternative Medicine | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Astronomy & Space Science|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Astronomy & Space Science | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Cons, Scams & Hoaxes|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Cons, Scams & Hoaxes | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Conspiracy Theories|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Conspiracy Theories | |||
}} }} | |||
{{#if: {{{Creationism & ID|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = Creationism & ID | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Cryptozoology|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Cryptozoology | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Energy Healing|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Energy Healing | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Entertainment|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Entertainment | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{ESP|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = ESP | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{General Science|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = General Science | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Ghosts & Demons|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Ghosts & Demons | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{History|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = History | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Homeopathy|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Homeopathy | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Humor|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Humor | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Legal Issues & Regulations|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Legal Issues & Regulations | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Logic & Philosophy|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Logic & Philosophy | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Myths & Misconceptions|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Myths & Misconceptions | |||
}} }} | |||
{{#if: {{{ | {{#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}} | |||
{{#if: {{{ | |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 | |||
|Guest Rogues = y | |||
|Live Recording = y | |||
|Interview = y | |||
|Randi Speaks = y | |||
|Skeptical Puzzle = 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: {{{???|}}} | {{Numerical titles | |||
|page = {{PAGENAME}} | |||
|category = ??? | |||
}} }}--> | |||
[[Category:Utility templates]] | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Revision as of 13:19, 13 September 2016
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 |Guest Rogues = y |Live Recording = y |Interview = y |Randi Speaks = y |Skeptical Puzzle = 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 }}