Difference between revisions of "Template:Vg"
Dinoguy1000 (talk | contribs) (rm "the" from matched text since it's stripped beforehand; minor amount of lining stuff up) |
Dinoguy1000 (talk | contribs) (rm spaces (since they're removed in some cases anyways and removing them lets me simplify a few things) and "World Championship" (if a subtitle is given too); replace "v" with "5", a few other tweaks maybe) |
||
Line 1: | Line 1: | ||
− | {{ #if: {{{full|}}} | Yu-Gi-Oh!  }}{{ #vardefine: $template:vg | {{ lc: {{{1}}} }}<!-- lowercase input --> | + | {{ #if: {{{full|}}} | Yu-Gi-Oh!  }}{{ #vardefine: $template:vg | {{ #replace: {{ lc: {{{1}}} }} }}<!-- lowercase input, rm spaces --> |
− | }}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | : }} | - }} | ! }} | ' }}<!-- | + | }}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | : }} | - }} | ! }} | ' }}<!-- rm common(ish) punctuation --> |
− | }}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | yugioh }} | 5ds }} | zexal }}<!-- | + | }}{{ #vardefine: $template:vg | {{ #replace: {{ #replace: {{ #replace: {{ #var: $template:vg }} | yugioh }} | 5ds }} | zexal }}<!-- rm "Yu-Gi-Oh!"/"5D's"/"ZEXAL" --> |
− | }}{{ #vardefine: $template:vg | {{ #replace: {{ #var: $template:vg }} | {{ #ifexpr: {{ #len: {{ #var: $template:vg }} }} > 4 | gx }} }}<!-- | + | }}{{ #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 | | + | }}{{ #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 | | + | }}{{ #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 }} | | + | }}{{ #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 }} | | + | }}{{ #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" --> | ||
}}{{ #switch: {{ #var: $template:vg }} | }}{{ #switch: {{ #var: $template:vg }} | ||
| bam = BAM | | bam = BAM | ||
− | | cmc | | + | | cmc | capsulemonstercoliseum | capsulemonstercolosseum = {{ #if: {{{full|}}} | Capsule Monster Coliseum | CMC }} |
− | | da | dar | | + | | da | dar | duelarena = {{ #if: {{{full|}}} | Duel Arena | DAR }} |
− | | dbt | | + | | dbt | destinyboardtra5eler | sugoroku no sugoroku = {{ #if: {{{full|}}} | Destiny Board Traveler | DBT }} |
− | | ddm | | + | | ddm | dungeondicemonsters = {{ #if: {{{full|}}} | Dungeon Dice Monsters {{ #if: {{{link|}}} | (video game) }} | DDM }} |
− | | dds | | + | | dds | darkduelstories = {{ #if: {{{full|}}} | Dark Duel Stories | DDS }} |
− | | di2 | | + | | di2 | international2 | worldwide2 | worldwideedition2 = {{ #if: {{{full|}}} | Duel Monsters International 2 | DI2 }} |
− | | dod | | + | | dod | dawnofdestiny = {{ #if: {{{full|}}} | The Dawn of Destiny | DOD }} |
− | | dor | | + | | dor | duelistsofroses | duelistofroses = {{ #if: {{{full|}}} | The Duelists of the Roses | DOR }} |
− | | | + | | decadeduels = 5D's Decade Duels |
− | | | + | | decadeduelsplus = 5D's Decade Duels Plus |
− | | eds | | + | | eds | eternalduelistsoul | eternalduelistssoul = {{ #if: {{{full|}}} | The Eternal Duelist Soul | EDS }} |
− | | e06 | | + | | e06 | ex2006 = {{ #if: {{{full|}}} | Duel Monsters EX 2006 | E06 }} |
− | | ex3 | + | | ex3 = {{ #if: {{{full|}}} | Duel Monsters EX 3 | EX3 }} |
− | | fmr | | + | | fmr | forbiddenmemories = {{ #if: {{{full|}}} | Forbidden Memories | FMR }} |
− | | g | g1 | gb1 | dm | dm1 | | + | | g | g1 | gb1 | dm | dm1 | duelmonsters = {{ #if: {{{full|}}} | Duel Monsters {{ #if: {{{link|}}} | (video game) | {{ #if: {{{series|}}} | (video game series) }} }} | G1 }} |
− | | g2 | gb2 | dm2 | | + | | g2 | gb2 | dm2 | duelmonsters2 | 2darkduelstories = {{ #if: {{{full|}}} | Duel Monsters II: Dark duel Stories | G2 }} |
− | | g3 | gb3 | dm3 | | + | | g3 | gb3 | dm3 | duelmonsters3 | 3triholygodad5ent | triholygodad5ent = {{ #if: {{{full|}}} | Duel Monsters III: Tri-Holy God Advent | G3 }} |
− | | g4 | gb4 | dm4 | | + | | g4 | gb4 | dm4 | duelmonsters4 | 4battleofgreatduelist | battleofgreatduelist = {{ #if: {{{full|}}} | Duel Monsters 4: Battle of Great Duelist | G4 }} |
| ex = Duel Monsters Expert<!-- or "EX"? --> | | ex = Duel Monsters Expert<!-- or "EX"? --> | ||
− | | g5 | gb5 | dm5 | ex1 | | + | | g5 | gb5 | dm5 | ex1 | duelmonsters5 | 5 | 5ex | 5ex1 | 5exi | exi = {{ #if: {{{full|}}} | Duel Monsters 5 EX 1 | G5 }} |
− | | g6 | gb6 | dm6 | ex2 | | + | | g6 | gb6 | dm6 | ex2 | duelmonsters6 | 6ex | 6ex2 = {{ #if: {{{full|}}} | Duel Monsters 6 EX 2 | G6 }} |
− | | g7 | gb7 | dm7 | | + | | g7 | gb7 | dm7 | duelmonsters7 | 7duelcitylegend | duelcitylegend = {{ #if: {{{full|}}} | Duel Monsters 7: The Duelcity Legend | GB7 }} |
− | | g8 | gb8 | dm8 | | + | | g8 | gb8 | dm8 | duelmonsters8 | 8reshefofdestruction = {{ #if: {{{full|}}} | Duel Monsters 8: Reshef of Destruction | GB8 }} |
− | | gbi | dmi | di | di1 | international | worldwide | | + | | gbi | dmi | di | di1 | international | worldwide | worldwideedition = {{ #if: {{{full|}}} | Duel Monsters International {{ #if: {{{series|}}} | (series) }} | GBI }} |
− | | gx1 | gx01 | | + | | gx1 | gx01 | duelacademy | mezaseduelking | awakenduelking = {{ #if: {{{full|}}} | GX Duel Academy | GX1 }} |
− | | gx2 | gx02 | tf | tf1 | tf01 | | + | | gx2 | gx02 | tf | tf1 | tf01 | tagforce = {{ #if: {{{full|}}} | {{ #if: {{{series|}}} || GX }} Tag Force | GX02 }} |
− | | gx3 | gx03 | | + | | gx3 | gx03 | spiritcaller | spiritsummoner = {{ #if: {{{full|}}} | GX Spirit Caller | GX03 }} |
− | | gx4 | gx04 | tf2 | tf02 | | + | | gx4 | gx04 | tf2 | tf02 | tagforce2 = {{ #if: {{{full|}}} | GX Tag Force 2 | GX04 }} |
− | | gx5 | gx05 | | + | | gx5 | gx05 | tagforcee5olution | beginningofdestiny = {{ #if: {{{full|}}} | GX Tag Force Evolution | GX05 }} |
− | | gx6 | gx06 | tf3 | tf03 | | + | | gx6 | gx06 | tf3 | tf03 | tagforce3 = {{ #if: {{{full|}}} | GX Tag Force 3 | GX06 }} |
− | | mc | mcbb | | + | | mc | mcbb | monstercapsule | monstercapsulebreedandbattle | monstercapsulebreed&battle = {{ #if: {{{full|}}} | Monster Capsule: Breed and Battle | MCBB }} |
− | | mcgb | gb | | + | | mcgb | gb | monstercapsulegb = {{ #if: {{{full|}}} | Monster Capsule GB | MCGB }} |
− | | md | | + | | 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? --> }} | | mm | multimaster = {{ #if: {{{full|}}} | Multi-Master | MM<!-- is this what we want to use? --> }} | ||
− | | ntr | | + | | ntr | nightmaretroubadour = {{ #if: {{{full|}}} | Nightmare Troubadour | NTR }} |
− | | pc | | + | | pc | powerofchaos = Power of Chaos |
− | | pcj | | + | | pcj | powerofchaosjoey | powerofchaosjoeypassion | joey | joeypassion = {{ #if: {{{full|}}} | Power of Chaos: Joey the Passion | PCJ }} |
− | | pck | | + | | pck | powerofchaoskaiba | powerofchaoskaibare5enge | kaiba | kaibare5enge = {{ #if: {{{full|}}} | Power of Chaos: Kaiba the Revenge | PCK }} |
− | | pcy | | + | | pcy | powerofchaosyugi | powerofchaosyugidestiny | yugi | yugidestiny = {{ #if: {{{full|}}} | Power of Chaos: Yugi the Destiny | PCY }} |
− | | rod | | + | | rod | reshefofdestruction = {{ #if: {{{full|}}} | Reshef of Destruction | ROD }} |
| true = True Duel Monsters | | true = True Duel Monsters | ||
− | | s1 | | + | | s1 | true1 | truesealedmemories | sealedmemories = {{ #if: {{{full|}}} | True Duel Monsters: Sealed Memories | S1 }} |
− | | s2 | | + | | s2 | true2 | truesucceededmemories | true2succeededmemories | succeededmemories = {{ #if: {{{full|}}} | True Duel Monsters 2: Succeeded Memories | S2 }} |
− | | sdd | | + | | sdd | worldwideeditionstairwaytodestinedduel | stairwaytodestinedduel = {{ #if: {{{full|}}} | Worldwide Edition: Stairway to the Destined Duel | SDD }} |
− | | tf4 | tf04 | | + | | tf4 | tf04 | tagforce4 = {{ #if: {{{full|}}} | 5D's Tag Force 4 | TF04 }} |
− | | tf5 | tf05 | | + | | tf5 | tf05 | tagforce5 = {{ #if: {{{full|}}} | 5D's Tag Force 5 | TF05 }} |
− | | tf6 | tf06 | | + | | tf6 | tf06 | tagforce6 = {{ #if: {{{full|}}} | 5D's Tag Force 6 | TF06 }} |
− | | tfk | | + | | tfk | falseboundkingdom = {{ #if: {{{full|}}} | The Falsebound Kingdom | TFK }} |
− | | tsc | | + | | tsc | sacredcards = {{ #if: {{{full|}}} | The Sacred Cards | TSC }} |
− | | wb01 | | + | | wb01 | wheeliebreakers = {{ #if: {{{full|}}} | 5D's Wheelie Breakers | WB01 }} |
− | | wc | | + | | wc | worldchampionship = World Championship Tournament |
− | | wc4 | wc04 | | + | | wc4 | wc04 | worldchampionship2004 = {{ #if: {{{full|}}} | World Championship Tournament 2004 | WC4 }} |
− | | wc5 | wc05 | | + | | wc5 | wc05 | worldchampionship2005 | 7trialstoglory | 7trialstoglory2005 | 20057trialstoglory = {{ #if: {{{full|}}} | 7 Trials to Glory: World Championship Tournament 2005 | WC5 }} |
− | | wc6 | wc06 | w6s | | + | | wc6 | wc06 | w6s | worldchampionship2006 | ultimatemasters | ultimatemasters2006 | 2006ultimatemasters = {{ #if: {{{full|}}} | Ultimate Masters: World Championship Tournament 2006 | WC6 }} |
− | | wc7 | wc07 | | + | | wc7 | wc07 | worldchampionship2007 = {{ #if: {{{full|}}} | World Championship 2007 | WC07 }} |
− | | wc8 | wc08 | | + | | wc8 | wc08 | worldchampionship2008 = {{ #if: {{{full|}}} | World Championship 2008 | WC08 }} |
− | | wc9 | wc09 | | + | | wc9 | wc09 | worldchampionship2009 | stardustaccelerator | stardustaccelerator2009 | 2009stardustaccelerator = {{ #if: {{{full|}}} | 5D's World Championship 2009: Stardust Accelerator | WC09 }} |
− | | wc10 | | + | | wc10 | worldchampionship2010 | re5erseofarcadia | 2010re5erseofarcadia | re5erseofarcadia2010 = {{ #if: {{{full|}}} | 5D's World Championship 2010: Reverse of Arcadia | WC10 }} |
− | | wc11 | | + | | wc11 | worldchampionship2011 | o5ernexus | 2011o5ernexus | o5ernexus2011 = {{ #if: {{{full|}}} | 5D's World Championship 2011: Over the Nexus | WC11 }} |
− | | ydb1 | | + | | ydb1 | cardalmanac = {{ #if: {{{full|}}} | GX Card Almanac | YDB1 }} |
− | | ydt1 | | + | | ydt1 | dueltranser | masterofcards = {{ #if: {{{full|}}} | 5D's Duel Transer | YDT1 }} |
− | | ygo | ygoo | online | | + | | ygo | ygoo | online | onlineduele5olution | duele5olution | online3duelaccelerator | onlineduelaccelerator | duelaccelerator = {{ #if: {{{full|}}} | Online | YGOO }} |
− | | zdc1 | | + | | zdc1 | worldduelcarn4al | clashduelcarn4al | duelcarn4al = {{ #if: {{{full|}}} | ZEXAL World Duel Carnival | ZDC1 }} |
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> |