Template:5X5 categories: Difference between revisions
Jump to navigation
Jump to search
(created to simplify adding and ordering categories to 5X5 pages, uses sort key "# ~" plus episode number) |
m (added category) |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{Alternative Medicine|}}} | {{ | {{#if: {{{Alternative Medicine|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Alternative Medicine | |||
}} }} | |||
{{#if: {{{Astronomy & Space Science|}}} | {{ | {{#if: {{{Astronomy & Space Science|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Astronomy & Space Science | |||
}} }} | |||
{{#if: {{{Cons, Scams & Hoaxes|}}} | {{ | {{#if: {{{Cons, Scams & Hoaxes|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Cons, Scams & Hoaxes | |||
}} }} | |||
{{#if: {{{Conspiracy Theories|}}} | {{ | {{#if: {{{Conspiracy Theories|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Conspiracy Theories | |||
}} }} | |||
{{#if: {{{Creationism & ID|}}} | {{ | {{#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: {{{ | {{#if: {{{Neuroscience & Psychology|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Neuroscience & Psychology | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{New Age|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = New Age | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Paranormal|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Paranormal | |||
}} }} | |||
{{#if: {{{ | {{#if: {{{Physics & Mechanics|}}} | {{Numerical titles | ||
|page = {{PAGENAME}} | |||
|category = Physics & Mechanics | |||
}} }} | |||
</includeonly> | {{#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 | |||
|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. | To assign categories to 5X5 episode pages, copy the following code and delete unwanted category lines. | ||
<pre> | <pre> | ||
Line 54: | Line 182: | ||
|Conspiracy Theories = y | |Conspiracy Theories = y | ||
|Creationism & ID = y | |Creationism & ID = y | ||
|Cryptozoology = y | |||
|Energy Healing = y | |||
|Entertainment = y | |Entertainment = y | ||
|ESP = y | |||
|General Science = y | |General Science = y | ||
|Ghosts & Demons = y | |||
|History = y | |||
|Homeopathy = y | |||
|Humor = y | |Humor = y | ||
|Legal Issues & Regulations = y | |Legal Issues & Regulations = y | ||
Line 62: | Line 196: | ||
|Nature & Evolution = y | |Nature & Evolution = y | ||
|Neuroscience & Psychology = y | |Neuroscience & Psychology = y | ||
|New Age = y | |||
|Paranormal = y | |Paranormal = y | ||
|Physics & Mechanics = y | |Physics & Mechanics = y | ||
|Politics = y | |||
|Prophecy = y | |Prophecy = y | ||
|Pseudoscience = y | |Pseudoscience = y | ||
Line 70: | Line 206: | ||
|Science & Medicine = y | |Science & Medicine = y | ||
|Science & the Media = y | |Science & the Media = y | ||
|SGU = y | |||
|Technology = y | |Technology = y | ||
|UFOs & Aliens = y | |||
|Other = y | |||
}} | }} | ||
</pre> | </pre> | ||
Line 77: | Line 216: | ||
{{#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}}]]}} }} | {{#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> | </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 }}