User:Becasita/SubPages/Templates/CardImage

From Yugipedia
< User:Becasita‎ | SubPages‎ | Templates
Revision as of 23:34, 11 April 2016 by Becasita (talk | contribs) (Small correction.)
Jump to: navigation, search

{{OCG-TCG card image | name = | set = | region = | rarity = | edition = }}

Known Problems

  • Doesn't work with cards needing the alt parameter; (I know how to solve this, just need time.)
  • Badly designed.

Usage

I'll finish this when I have the time.

Example

Do not use this yet!
{{subst::User:Becasita/SubPages/CardImageUploadTemplate|<Card name>}}

Alternative (draft)

{{OCG-TCG card image
| name    = {{{1}}}
| set     = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|1}}{{subst:#if:{{{post|}}}|-{{{post}}}|}}
| region  = {{subst:#vardefineecho:REGION|{{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|2}}}}
| {{subst:#ifeq: {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|-1}}| OP | {{subst:#switch: {{subst:#var:REGION}} | JP | TC = release {{subst:=}} {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|3}} | #default = edition {{subst:=}} {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|3}}}} | rarity  = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|3}}}}
{{subst:#switch: {{subst:#var:REGION}}
 | JP
 | TC = {{subst:#switch:{{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|-1}}
         | DT = {{subst:!}} edition = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|-1}}
{{subst:))}} 
         | GC
         | CT = {{subst:!}} release = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|-1}}
{{subst:))}}
         | #default = {{subst:))}}
        }}
 | #default = {{subst:#switch: {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|-1}}
               | OP = {{subst:!}} release = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|4}}
               | GC
               | CT = {{subst:!}} edition = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|4}}
{{subst:!}} release = {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|-1}}
               | #default = {{subst:!}} edition {{subst:=}} {{subst:#explode:{{subst:#explode: {{subst:PAGENAME}}|.|0}}|-|4}}
              }}
{{subst:))}}
}}