Template:Utility/tvseries recurs: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
 
No edit summary
Line 1: Line 1:
#redirect[[Template:Utility/tvseries]]
<noinclude>
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.)<!--
 
EXPLICIT SERIES NAMES (only used internally)
CARTOONS (This will, at some point, be expanded beyond cartoons.)
G1 Cartoon - G1toon
Headmasters Cartoon - HMtoon
Masterforce Cartoon - MFtoon
Victory Cartoon - Victoon
Zone Cartoon - Zonetoon
G2 Cartoon - G2toon
Beast Wars - BWtoon
Beast Wars Japan - BWJtoon
Beast Wars II - BW2toon
Beast Wars Neo - BWNeotoon
  (Would we ever want a separate entry for Metals/BWR I wonder?)
Beast Machines - BMtoon
Robots in Disguise - RiDtoon
Armada Cartoon - Armtoon
Energon Cartoon - Energontoon
Superlink Cartoon - SLtoon
Cybertron Cartoon - Cybtoon
Animated Cartoon - Anitoon
Animated Japan - AniJapan
Universe Cartoon - Unitoon
 
--></noinclude>{{ #if: {{{getcolloquial|}}}
| {{ #switch: {{{getcolloquial}}}
| G1toon=The Transformers
| SRLFtoon=Fight! Super Robot Lifeform Transformers
| 2010=Transformers 2010
| HMtoon=Transformers: The Headmasters
| MFtoon=Transformers: Super-God Masterforce
| Victoon=Transformers: Victory
| Zonetoon=Fight! Super Robot Lifeform Transformers: Victory
| G2toon=Transformers: Generation 2
| BWtoon=Beast Wars: Transformers
| BWJtoon=Beast Wars: Super Lifeform Transformers
| BW2toon=Beast Wars II: Super Lifeform Transformers
| BWNeotoon=Super Lifeform Transformers: Beast Wars Neo
| Metals=Super Lifeform Transformers: Beast Wars Metals
| BMtoon=Beast Machines: Transformers
| RiDtoon=Transformers: Robots in Disguise
| Armtoon=Transformers: Armada
| Energontoon=Transformers: Energon
| SLtoon = Transformers: Super Link
| Cybtoon=Transformers: Cybertron
| Anitoon=Transformers Animated
| AniJapan=Transformers Animated (Japan)
| RMtoon=Robot Masters
| Unitoon=Transformers: Universe
| {{{getcolloquial}}}
}}
|}}<!--
 
## Get the series link associated with the series' explicit name
-->{{ #if: {{{getserieslink|}}}
| {{ #switch: {{{getserieslink}}}
| G1toon=The Transformers (cartoon)
| SRLFtoon=The Transformers (cartoon)#Japanese release
| 2010= The Transformers (cartoon)#Japanese release
| HMtoon=Transformers: The Headmasters (cartoon)
| MFtoon=Transformers: Super-God Masterforce (cartoon)
| Victoon=Fight! Super Robot Lifeform Transformers: Victory (cartoon)
| Zonetoon=Transformers: Zone
| G2toon=Transformers: Generation 2 (cartoon)
| BWtoon=Beast Wars: Transformers (cartoon)
| BWJtoon=Beast Wars: Transformers (cartoon)
| BW2toon=Beast Wars II: Super Lifeform Transformers (cartoon)
| BWNeotoon=Super Lifeform Transformers: Beast Wars Neo (cartoon)
| Metals=Beast Wars: Transformers (cartoon)
| BMtoon=Beast Machines: Transformers (cartoon)
| RiDtoon=Transformers: Robots in Disguise (cartoon)
| Armtoon=Transformers: Armada (cartoon)
| Energontoon=Transformers: Energon (cartoon)
| SLtoon=Transformers: Energon (cartoon)
| Cybtoon=Transformers: Cybertron (cartoon)
| Anitoon=Transformers Animated (cartoon)
| AniJapan=Transformers Animated (cartoon)#Japanese release
| RMtoon=Robot Masters (cartoon)
| Unitoon=Transformers: Universe (cartoon)
| {{{getserieslink}}}
}}
|}}<!--
 
 
## Get the 'explicit' internal name of the series being dealt with (matching string shifted to all-lowercase)
-->{{ #if: {{{getexplicit|}}}
| {{ #switch: {{lc:{{{getexplicit}}}}}
| 1984toon=G1toon
| sunbow=1984toon
| g1=1984toon
| headmasters=HMtoon
| head masters=HMtoon
| masterforce=MFtoon
| master force=MFtoon
| victory=Victoon
| zone=Zonetoon
| g2=G2toon
| beastwars=BWtoon
| beast wars=BWtoon
| bw=BWtoon
| beast wars japan=BWJtoon
| beastwarsjapan=BWJtoon
| bwj=BWJtoon
| beast wars ii=BW2toon
| beastwars ii=BW2toon
| beastwarsii=BW2toon
| beast wars 2=BW2toon
| beastwars 2=BW2toon
| beastwars2=BW2toon
| bwii=BW2toon
| bw2=BW2toon
| beast wars neo=BWNeotoon
| beastwars neo=BWNeotoon
| beast wars neo=BWNeotoon
| beastwarsneo=BWNeotoon
| bw neo=BWNeotoon
| bwneo=BWNeotoon
| bwn=BWNeotoon
| beast machines=BMtoon
| beastmachines=BMtoon
| bm=BMtoon
| robots in disguise=RiDtoon
| robotsindisguise=RiDtoon
| rid=RiDtoon
| armada=Armtoon
| arm=Armtoon
| energon=Energontoon
| cybertron=Cybtoon
| cyb=Cybtoon
| animated=Anitoon
| ani=Anitoon
| animated japan=AniJapan
| ani japan=AniJapan
| uni=Unitoon
| universe=Unitoon
| {{{getexplicit}}}
}}
|}}<!--
 
 
Construct a series link 'Generation One'
-->{{ #if: {{{serieslink|}}}
|[[{{Utility/tvseries_recurs|getserieslink={{Utility/tvseries_recurs|getexplicit={{{serieslink|}}}}} }}|{{Utility/tvseries_recurs|getcolloquial={{Utility/tvseries_recurs|getexplicit={{{serieslink|}}}}} }}]]
|}}<!--
 
 
-->

Revision as of 02:58, 15 January 2013

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.)