Difference between revisions of "User:Becasita/SubPages/Templates/CardImage"
< User:Becasita | SubPages | Templates
(Should work with almost everything, now.) |
m (Small correction.) |
||
Line 7: | Line 7: | ||
| JP | | JP | ||
| TC = {{<includeonly>subst:</includeonly>!}} release {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | | TC = {{<includeonly>subst:</includeonly>!}} release {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | ||
+ | {{<includeonly>subst:</includeonly>))}} | ||
| #default = {{<includeonly>subst:</includeonly>!}} edition {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | | #default = {{<includeonly>subst:</includeonly>!}} edition {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | ||
{{<includeonly>subst:</includeonly>!}} release {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|-1}} | {{<includeonly>subst:</includeonly>!}} release {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|-1}} |
Revision as of 23:34, 11 April 2016
{{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:))}} }}