Difference between revisions of "User:Becasita/SubPages/Templates/CardImage"
< User:Becasita | SubPages | Templates
(Should work for cards needing a postfix for the set.) |
m (Oops.) |
||
Line 1: | Line 1: | ||
{{OCG-TCG card image | {{OCG-TCG card image | ||
| name = {{{1}}} | | name = {{{1}}} | ||
− | | set = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|1}}{{#if:{{{post|}}}|-{{post}}|}} | + | | set = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|1}}{{#if:{{{post|}}}|-{{{post}}}|}} |
| region = {{<includeonly>subst:</includeonly>#vardefineecho:REGION|{{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|2}}}} | | region = {{<includeonly>subst:</includeonly>#vardefineecho:REGION|{{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|2}}}} | ||
| rarity = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | | rarity = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} |
Revision as of 18:31, 10 April 2016
{{OCG-TCG card image
| name = {{{1}}}
| set =
| region =
| rarity =
| edition =
}}
Known Problems
- Doesn't work with OP, GC and CT cards;
- Doesn't work with cards needing the
alt
parameter; - Bad designed (I need to use vars...).
Usage
I'll finish this when I have the time.
Example
Do not use this yet!
{{subst::User:Becasita/SubPages/CardImageUploadTemplate|<Card name>}}