Difference between pages "Template:Vg" and "Template:Vg/sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
(track unrecognized input so it can be fixed)
 
(fix "|=foo" bug)
 
Line 1: Line 1:
{{ #vardefine: $template:vg-ygo | {{ #if: {{{full|}}} | Yu-Gi-Oh! }}
+
<includeonly>{{ safesubst:<noinclude/>#invoke: Data/Templates | vg }}<!--
}}{{ #vardefine: $template:vg | {{ #replace: {{ lc: {{Normalized pagename|{{{1|}}}}} }} }}<!-- lowercase input, rm spaces -->
+
#Track stuff:
}}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | : }} | - }} | ! }} | ' }} | / }}<!-- rm common(ish) punctuation -->
+
-->{{ #ifeq: {{{series|¬}}} | ¬ || [[Category:((Vg)) transclusions using (((series)))]] }}<!--
}}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | yugioh }} | arcv }} | 5ds }} | zexal }} | rushduel }}<!--  rm "Yu-Gi-Oh!"/"ARC-V"/"5D's"/"ZEXAL"/"Rush Duel" -->
+
--></includeonly><noinclude>{{Documentation}}</noinclude>
}}{{ #vardefine: $template:vg | {{ #replace: {{ #var: $template:vg }} | (videogame) }}<!-- rm "(video game)" -->
 
}}{{ #vardefine: $template:vg | {{ #replace: {{ #var: $template:vg }} | {{ #ifexpr: {{ #len: {{ #var: $template:vg }} }} > 4 | gx }} }}<!-- rm "GX", except for stuff like "GX1" -->
 
}}{{ #vardefine: $template:vg | {{ #replace: {{ #var: $template:vg }} | {{ #ifexpr: {{ #len: {{ #var: $template:vg }} }} > 15 | duelmonsters }} }}<!-- rm "Duel Monsters", unless that's all that's left and except for stuff like "Duel Monsters III" -->
 
}}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #var: $template:vg }} | the }} | gameboy }}<!-- rm "the"/"gameboy" -->
 
}}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | viii | 8 }} | vii | 7 }} | vi | 6 }} | iv | 4 }} | v | 5 }} | iii | 3 }} | ii | 2 }}<!-- roman numerals -->
 
}}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #var: $template:vg }} | expert | ex }} | worldchampionshiptournament | worldchampionship }}<!-- everything else -->
 
}}{{ #vardefine: $template:vg | {{ #replace: {{ #var: $template:vg }} | {{ #ifexpr: {{ #len: {{ #var: $template:vg }} }} > 21 | worldchampionship }} }}<!-- rm "World Championship", except for stuff like "World Championship 2004" -->
 
}}{{ #vardefine: $template:vg | {{ #switch: {{ #var: $template:vg }}
 
  | bam  = BAM
 
  | cmc  | capsulemonstercoliseum | capsulemonstercolosseum = {{ #if: {{{full|}}} | Capsule Monster Coliseum | CMC }}
 
  | crdu | crossduel = {{ #if: {{{full|}}} | Cross Duel | CRDU }}
 
  | da  | dar | duelarena = {{ #if: {{{full|}}} | Duel Arena | DAR }}
 
  | dbt  | destinyboardtra5eler | sugorokunosugoroku = {{ #if: {{{full|}}} | Destiny Board Traveler | DBT }}
 
  | ddm  | dungeondicemonsters = {{ #if: {{{full|}}} | Dungeon Dice Monsters {{ #if: {{{link|}}} | (video game) }} | DDM }}
 
  | dds  | darkduelstories = {{ #if: {{{full|}}} | Dark Duel Stories | DDS }}
 
  | dg  | mddg | duelgeneration = {{ #if: {{{full|}}} | Duel Generation | DG }}
 
  | dl  | duli | duellinks = {{ #if: {{{full|}}} | Duel Links | DULI }}
 
  | di2  | international2 | worldwide2 | worldwideedition2 = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | 7 Trials to Glory: World Championship Tournament 2005 | Duel Monsters International 2 }} | DI2 }}
 
  | dod  | dawnofdestiny = {{ #if: {{{full|}}} | The Dawn of Destiny | DOD }}
 
  | dor  | duelistsofroses | duelistofroses = {{ #if: {{{full|}}} | The Duelists of the Roses | DOR }}
 
  | decadeduels = 5D's Decade Duels
 
  | decadeduelsplus = 5D's Decade Duels Plus
 
  | eds  | eternalduelistsoul | eternalduelistssoul = {{ #if: {{{full|}}} | The Eternal Duelist Soul | EDS }}
 
  | e06  | ex2006 = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | Ultimate Masters: World Championship Tournament 2006 | Duel Monsters EX 2006 }} | E06 }}
 
  | ex3  = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | World Championship Tournament 2004 | Duel Monsters EX 3 }} | EX3 }}
 
  | fmr  | fm  | forbiddenmemories = {{ #if: {{{full|}}} | Forbidden Memories | FMR }}
 
  | g    | g1  | gb1 | dm | dm1 | duelmonsters | duelmonsters1 = {{ #if: {{{full|}}} | Duel Monsters {{ #if: {{{link|}}} | (video game) | {{ #if: {{{series|}}} | (video game series) }} }} | DM1 }}
 
  | g2  | gb2  | dm2 | duelmonsters2 | 2darkduelstories = {{ #if: {{{full|}}} | Duel Monsters II: Dark duel Stories | DM2 }}
 
  | g3  | gb3  | dm3 | duelmonsters3 | 3triholygodad5ent | triholygodad5ent = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | Dark Duel Stories | Duel Monsters III: Tri-Holy God Advent }} | DM3 }}
 
  | g4  | gb4  | dm4 | duelmonsters4 | 4battleofgreatduelist | battleofgreatduelist = {{ #if: {{{full|}}} | Duel Monsters 4: Battle of Great Duelist | DM4 }}
 
  | ex  = Duel Monsters Expert
 
  | g5  | gb5  | dm5 | ex1 | duelmonsters5 | 5 | 5ex | 5ex1 | 5exi | exi = {{ #if: {{{full|}}} | Duel Monsters 5: Expert 1 | DM5 }}
 
  | g6  | gb6  | dm6 | ex2 | duelmonsters6 | 6ex | 6ex2 = {{ #if: {{{full|}}} | Duel Monsters 6: Expert 2 | DM6 }}
 
  | g7  | gb7  | dm7 | duelmonsters7 | 7duelcitylegend | duelcitylegend = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | The Sacred Cards | Duel Monsters 7: The Duelcity Legend }} | DM7 }}
 
  | g8  | gb8  | dm8 | duelmonsters8 | 8reshefofdestruction = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} || Duel Monsters 8: }} Reshef of Destruction | DM8 }}
 
  | gbi  | dmi  | di | di1 | international | international1 | worldwide | worldwideedition = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | The Sacred Cards | Duel Monsters International {{ #if: {{{series|}}} | (series) }} }} | DMI }}
 
  | gx1  | gx01 | duelacademy | mezaseduelking | awakenduelking = {{ #if: {{{full|}}} | GX Duel Academy | GX1 }}
 
  | gx2  | gx02 | tf | tf1 | tf01 | tagforce | tagforce1 = {{ #if: {{{full|}}} | {{ #if: {{{series|}}} || GX }} Tag Force | GX02 }}
 
  | gx3  | gx03 | spiritcaller | spiritsummoner = {{ #if: {{{full|}}} | GX Spirit Caller | GX03 }}
 
  | gx4  | gx04 | tf2 | tf02 | tagforce2 = {{ #if: {{{full|}}} | GX Tag Force 2 | GX04 }}
 
  | gx5  | gx05 | tfe | tagforcee5olution | beginningofdestiny = {{ #if: {{{full|}}} | GX Tag Force Evolution | GX05 }}
 
  | gx6  | gx06 | tf3 | tf03 | tagforce3 = {{ #if: {{{full|}}} | GX Tag Force 3 | GX06 }}
 
  | ld  | lod  | lotd | legacyofduelist = {{ #if: {{{full|}}} | Legacy of the Duelist | LD }}
 
  | ld2  | lod2 | ldle | linke5olution | legacyofduelistlinke5olution = {{ #if: {{{full|}}} | Legacy of the Duelist: Link Evolution | LOD2 }}
 
  | madu | masterduel = {{ #if: {{{full|}}} | Master Duel | MADU }}
 
  | mc  | mcbb | monstercapsule | monstercapsulebreedandbattle | monstercapsulebreed&battle = {{ #if: {{{full|}}} | Monster Capsule: Breed and Battle | MCBB }}
 
  | mcgb | gb  | monstercapsulegb = {{ #if: {{{full|}}} | Monster Capsule GB | MCGB }}
 
  | md  | millenniumduels = {{ #if: {{{full|}}} | Millennium Duels | MD<!-- is this what we want to use? --> }}
 
  | mm  | multimaster = {{ #if: {{{full|}}} | Multi-Master | MM<!-- is this what we want to use? --> }}
 
  | mnst | monsterstrike = {{ #if: {{{full|}}} | Monster Strike | MNST }}
 
  | nt  | ntr  | nightmaretroubadour = {{ #if: {{{full|}}} | Nightmare Troubadour | NTR }}
 
  | poc  | pc  | powerofchaos = {{ #if: {{{full|}}} | Power of Chaos | POC }}
 
  | pcj  | powerofchaosjoey  | powerofchaosjoeypassion  | joey  | joeypassion  = {{ #if: {{{full|}}} | Power of Chaos: Joey the Passion | PCJ }}
 
  | pck  | powerofchaoskaiba | powerofchaoskaibare5enge | kaiba | kaibare5enge = {{ #if: {{{full|}}} | Power of Chaos: Kaiba the Revenge | PCK }}
 
  | pcy  | powerofchaosyugi  | powerofchaosyugidestiny  | yugi  | yugidestiny  = {{ #if: {{{full|}}} | Power of Chaos: Yugi the Destiny | PCY }}
 
  | rod  | reshefofdestruction = {{ #if: {{{full|}}} | Reshef of Destruction | ROD }}
 
  | true = True Duel Monsters
 
  | s1  | true1 | truesealedmemories    | sealedmemories = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | Forbidden Memories | True Duel Monsters: Sealed Memories }} | S1 }}
 
  | s2  | true2 | truesucceededmemories | true2succeededmemories | succeededmemories = {{ #if: {{{full|}}} | {{ #if: {{{link|}}} | The Duelists of the Roses | True Duel Monsters 2: Succeeded Memories }} | S2 }}
 
  | sdd  | worldwideeditionstairwaytodestinedduel | stairwaytodestinedduel = {{ #if: {{{full|}}} | Worldwide Edition: Stairway to the Destined Duel | SDD }}
 
  | sbr  | dbr  | g001 | rdg001 | saikyobattleroyale | dawnofbattleroyale = {{ #if: {{{full|}}} | RUSH DUEL: Dawn of the Battle Royale!! | DBR }}
 
  | g002 | rdg002 | saikyobattleroyaleletsgogorush | letsgogorush = RUSH DUEL: Saikyo Battle Royale!! Let's Go! Go Rush!!
 
  | tf4  | tf04 | tagforce4 = {{ #if: {{{full|}}} | 5D's Tag Force 4 | TF04 }}
 
  | tf5  | tf05 | tagforce5 = {{ #if: {{{full|}}} | 5D's Tag Force 5 | TF05 }}
 
  | tf6  | tf06 | tagforce6 = {{ #if: {{{full|}}} | 5D's Tag Force 6 | TF06 }}
 
  | tfk  | fbk  | falseboundkingdom = {{ #if: {{{full|}}} | The Falsebound Kingdom | TFK }}
 
  | tfs  | tfsp | tagforcespecial = {{ #if: {{{full|}}} | ARC-V Tag Force Special | TFS }}
 
  | tsc  | sacredcards = {{ #if: {{{full|}}} | The Sacred Cards | TSC }}
 
  | wb01 | wheeliebreakers = {{ #if: {{{full|}}} | 5D's Wheelie Breakers | WB01 }}
 
  | wc  | worldchampionship = World Championship Tournament
 
  | wc4  | wc04 | dm2004 | worldchampionship2004 = {{ #if: {{{full|}}} | World Championship Tournament 2004 | WC4 }}
 
  | wc5  | wc05 | dm2005 | worldchampionship2005 | 7trialstoglory | 7trialstoglory2005 | 20057trialstoglory | dayofduelist | dayofduelist2005 | 2005dayofduelist = {{ #if: {{{full|}}} | 7 Trials to Glory: World Championship Tournament 2005 | WC5 }}
 
  | wc6  | wc06 | dm2006 | w6s | e06 | worldchampionship2006 | ultimatemasters | ultimatemasters2006 | 2006ultimatemasters = {{ #if: {{{full|}}} | Ultimate Masters: World Championship Tournament 2006 | WC6 }}
 
  | wc7  | wc07 | dm2007 | worldchampionship2007 = {{ #if: {{{full|}}} | World Championship 2007 | WC07 }}
 
  | wc8  | wc08 | dm2008 | worldchampionship2008 = {{ #if: {{{full|}}} | World Championship 2008 | WC08 }}
 
  | wc9  | wc09 | dm2009 | worldchampionship2009 | stardustaccelerator | stardustaccelerator2009 | 2009stardustaccelerator = {{ #if: {{{full|}}} | 5D's World Championship 2009: Stardust Accelerator | WC09 }}
 
  | wc10 | dm2010 | worldchampionship2010 | re5erseofarcadia | 2010re5erseofarcadia | re5erseofarcadia2010 = {{ #if: {{{full|}}} | 5D's World Championship 2010: Reverse of Arcadia | WC10 }}
 
  | wc11 | dm2011 | worldchampionship2011 | o5ernexus | 2011o5ernexus | o5ernexus2011 = {{ #if: {{{full|}}} | 5D's World Championship 2011: Over the Nexus | WC11 }}
 
  | ydb1 | cardalmanac = {{ #if: {{{full|}}} | GX Card Almanac | YDB1 }}
 
  | ydt1 | dueltranser | masterofcards = {{ #if: {{{full|}}} | 5D's Duel Transer | YDT1 }}
 
  | ygo  | ygoo | yol | online | onlineduele5olution | duele5olution | online3duelaccelerator | onlineduelaccelerator | duelaccelerator = {{ #if: {{{full|}}} | Online | YGOO }}
 
  | zdc1 | worldduelcarn4al | clashduelcarn4al | duelcarn4al = {{ #if: {{{full|}}} | ZEXAL World Duel Carnival | ZDC1 }}
 
  }}
 
}}{{ #if: {{ #var: $template:vg }}
 
  | {{ #var: $template:vg-ygo }} {{ #var: $template:vg }}<!-- return value -->
 
  | {{ #if: {{{1|}}} | [[Category:((vg)) transclusions with unrecognized input]]<!-- unknown input: track for fixing --> }}
 
}}<noinclude>{{documentation}}</noinclude>