Template:Wheremi: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
JW (talk | contribs)
Recat'd as part of Category:Templates cleanup.
 
(56 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<!--TECHNICAL SERIES NAMES (used internally)
<noinclude>{{doc}}[[Category:Meta templates]]</noinclude><!--
 
EXPLICIT SERIES NAMES (only used internally)
CARTOONS (This will, at some point, be expanded beyond cartoons.)
CARTOONS (This will, at some point, be expanded beyond cartoons.)
G1 Cartoon - 1984toon
G1 Cartoon - 1984toon
Line 15: Line 17:
Armada Cartoon - Armtoon
Armada Cartoon - Armtoon
Energon Cartoon - Energontoon
Energon Cartoon - Energontoon
Superlink Cartoon - SLtoon
Cybertron Cartoon - Cybtoon
Cybertron Cartoon - Cybtoon
Heroes Cartoon - Hertoon
Animated Cartoon - Anitoon
-->
 
<!--Get the 'colloquial' series name of the series from the explicit name -->
-->{{ #if: {{{getcolloquial|}}}
{{ #if: {{{getcolloquial|}}}
| {{ #switch: {{{getcolloquial}}}
| {{ #switch: {{{getcolloquial}}}
| 1984toon=Generation 1
| 1984toon=Generation 1
| HMtoon=Headmasters
| SRLFtoon=Fight! Super Robot Lifeform Transformers
| MFtoon=Masterforce
| 2010=Transformers 2010
| HMtoon=The Headmasters
| MFtoon=Super-God Masterforce
| Victoon=Victory
| Victoon=Victory
| Zonetoon=Zone
| Zonetoon=Zone
Line 31: Line 35:
| BWNeotoon=Beast Wars Neo
| BWNeotoon=Beast Wars Neo
| BMtoon=Beast Machines
| BMtoon=Beast Machines
| RiDtoon=Robots in Disguise
| Armtoon=Armada
| Armtoon=Armada
| Energontoon=Energon
| Energontoon=Energon
| SLtoon = Superlink
| Cybtoon=Cybertron
| Cybtoon=Cybertron
| Herotoon=Heroes
| Anitoon=Animated
| gobotsToon=Go-Bots
| {{{getcolloquial}}}
| {{{getcolloquial}}}
}}
}}
|}}
|}}<!--
<!--
 
## Get the series link associated with the series' explicit name-->
## Get the series link associated with the series' explicit name
{{ #if: {{{getserieslink|}}}
-->{{ #if: {{{getserieslink|}}}
| {{ #switch: {{{getserieslink}}}
| {{ #switch: {{{getserieslink}}}
| 1984toon=Generation 1 (television series)
| 1984toon=Generation 1 (cartoon)#Episodes
| HMtoon=Headmasters (television series)
| SRLFtoon=Generation 1 (cartoon)#Japanese release
| MFtoon=Masterforce (television series)
| 2010= Generation 1 (cartoon)#Japanese release
| Victoon=Victory (television series)
| HMtoon=The Headmasters (cartoon)#Episodes
| Zonetoon=Zone (animation)
| MFtoon=Super-God Masterforce (cartoon)#Episodes
| G2toon=Generation 2 (television series)
| Victoon=Victory (cartoon)#Episodes
| BWtoon=Beast Wars (television series)
| Zonetoon=Zone
| BW2toon=Beast Wars II (television series)
| G2toon=Generation 2 (cartoon)
| BWNeotoon=Beast Wars Neo (television series)
| BWtoon=Beast Wars (cartoon)#Episodes
| BMtoon=Beast Machines (television series)
| BW2toon=Beast Wars II (cartoon)#Episodes
| Armtoon=Armada (television series)
| BWNeotoon=Beast Wars Neo (cartoon)#Episodes
| Energontoon=Energon (television series)
| BMtoon=Beast Machines (cartoon)#Episodes
| Cybtoon=Cybertron (television series)
| RiDtoon=Robots in Disguise (cartoon)#Episodes
| Herotoon=Heroes (television series)
| Armtoon=Armada (cartoon)#Episodes
| Energontoon=Energon (cartoon)#Episodes
| SLtoon=Energon (cartoon)
| Cybtoon=Cybertron (cartoon)#Episodes
| gobotsToon=Go-Bots (cartoon)
| Anitoon=Transformers Animated (cartoon)#Episodes
| {{{getserieslink}}}
| {{{getserieslink}}}
}}
}}
|}}
|}}<!--
<!--
 
## Get the 'explicit' internal name of the series being dealt with (matching string shifted to all-lowercase) -->
## Get the season link associated with the series' explicit name
{{ #if: {{{getexplicit|}}}
-->{{ #if: {{{getseasonlink|}}}
| {{ #switch: {{{getseasonlink}}}
| BWtoon={{ #switch: {{{1}}}
|1=List of Beast Wars episodes#Season_1:_1996.E2.80.931997
|2=List of Beast Wars episodes#Season_2:_1997.E2.80.931998
|3=List of Beast Wars episodes#Season_3:_1998.E2.80.931999
|List of Beast Wars episodes
}}
|{{{2}}}#Season {{{1}}}
}}
|}}<!--
 
## Get the 'explicit' internal name of the series being dealt with (matching string shifted to all-lowercase)
-->{{ #if: {{{getexplicit|}}}
| {{ #switch: {{lc:{{{getexplicit}}}}}
| {{ #switch: {{lc:{{{getexplicit}}}}}
| g1toon=1984toon
| g1toon=1984toon
Line 94: Line 119:
| beastmachines=BMtoon
| beastmachines=BMtoon
| bm=BMtoon
| bm=BMtoon
| robots in disguise=RiDtoon
| robotsindisguise=RiDtoon
| rid=RiDtoon
| armada=Armtoon
| armada=Armtoon
| arm=Armtoon
| arm=Armtoon
Line 99: Line 127:
| cybertron=Cybtoon
| cybertron=Cybtoon
| cyb=Cybtoon
| cyb=Cybtoon
| heroes=Herotoon
| gobots=gobotsToon
| animated=Anitoon
| ani=Anitoon
| {{{getexplicit}}}
| {{{getexplicit}}}
}}
}}
|}}<!--
Construct a series link 'Generation One > '
-->{{ #if: {{{serieslink|}}}
|[[{{Wheremi_recurse|getserieslink={{Wheremi_recurse|getexplicit={{{serieslink|}}}}} }}|{{Wheremi_recurse|getcolloquial={{Wheremi_recurse|getexplicit={{{serieslink|}}}}} }}]] >
|}}<!--
Construct a season link 'Season 2 > '
-->{{ #if: {{{seasonlink|}}}
|[[{{Wheremi_recurse|getseasonlink={{Wheremi_recurse|getexplicit={{{series}}}}} |{{{seasonlink}}} |{{Wheremi_recurse|getserieslink={{Wheremi_recurse|getexplicit={{{series}}}}}}}}}|Season {{{seasonlink}}}]] >&nbsp;
|}}
|}}
<!--Needs Continuity-Family true/false-->
<!--Needs Season true/false-->

Latest revision as of 17:24, 27 May 2011

(Transcluded documentation: view)

This template is used by some templates. It uses recursive matching to construct the (sometimes messy) series links. Exercise extreme caution when editing this template, if accidental whitespace slips in it will break. (You're probably safe if you just ape the existing structure though.)


Oh shit, I broke it: Revert to the most recent 'good' version.

June 2008
February 2008
December 2007