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.
 
(62 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{ #if: {{{getfranchise|}}}
<noinclude>{{doc}}[[Category:Meta templates]]</noinclude><!--
| {{ #switch: {{lc:{{{getfranchise}}}}}
 
| g1toon=1984 Cartoon
EXPLICIT SERIES NAMES (only used internally)
| sunbow=1984 Cartoon
CARTOONS (This will, at some point, be expanded beyond cartoons.)
| cartoon=1984 Cartoon
G1 Cartoon - 1984toon
| {{{getfranchise}}}
Headmasters Cartoon - HMtoon
Masterforce Cartoon - MFtoon
Victory Cartoon - Victoon
Zone Cartoon - Zonetoon
G2 Cartoon - G2toon
Beast Wars - BWtoon
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
 
-->{{ #if: {{{getcolloquial|}}}
| {{ #switch: {{{getcolloquial}}}
| 1984toon=Generation 1
| SRLFtoon=Fight! Super Robot Lifeform Transformers
| 2010=Transformers 2010
| HMtoon=The Headmasters
| MFtoon=Super-God Masterforce
| Victoon=Victory
| Zonetoon=Zone
| G2toon=Generation 2
| BWtoon=Beast Wars
| BW2toon=Beast Wars II
| BWNeotoon=Beast Wars Neo
| BMtoon=Beast Machines
| RiDtoon=Robots in Disguise
| Armtoon=Armada
| Energontoon=Energon
| SLtoon = Superlink
| Cybtoon=Cybertron
| Anitoon=Animated
| gobotsToon=Go-Bots
| {{{getcolloquial}}}
}}
}}
|}}<!--
## Get the series link associated with the series' explicit name
-->{{ #if: {{{getserieslink|}}}
| {{ #switch: {{{getserieslink}}}
| 1984toon=Generation 1 (cartoon)#Episodes
| SRLFtoon=Generation 1 (cartoon)#Japanese release
| 2010= Generation 1 (cartoon)#Japanese release
| HMtoon=The Headmasters (cartoon)#Episodes
| MFtoon=Super-God Masterforce (cartoon)#Episodes
| Victoon=Victory (cartoon)#Episodes
| Zonetoon=Zone
| G2toon=Generation 2 (cartoon)
| BWtoon=Beast Wars (cartoon)#Episodes
| BW2toon=Beast Wars II (cartoon)#Episodes
| BWNeotoon=Beast Wars Neo (cartoon)#Episodes
| BMtoon=Beast Machines (cartoon)#Episodes
| RiDtoon=Robots in Disguise (cartoon)#Episodes
| 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}}}
}}
|}}<!--
## Get the season link associated with the series' explicit name
-->{{ #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}}}}}
| g1toon=1984toon
| 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 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
| gobots=gobotsToon
| animated=Anitoon
| ani=Anitoon
| {{{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;
|}}
|}}

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