Difference between revisions of "User:Becasita/SubPages/Templates/CardImage"
< User:Becasita | SubPages | Templates
(Should be fixed for non JP nor TC Proxies, now.) |
(Should work with almost everything, now.) |
||
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}}{{<includeonly>subst:</includeonly>#if:{{{post|}}}|-{{{post}}}|}} | | set = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|1}}{{<includeonly>subst:</includeonly>#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}}}} | ||
− | + | {{<includeonly>subst:</includeonly>#switch: {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|-1}} | |
+ | | OP = {{<includeonly>subst:</includeonly>#switch: {{<includeonly>subst:</includeonly>#var:REGION}} | ||
+ | | JP | ||
+ | | TC = {{<includeonly>subst:</includeonly>!}} release {{<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>))}} | ||
+ | }} | ||
+ | | CT | ||
+ | | GC = {{<includeonly>subst:</includeonly>#switch: {{<includeonly>subst:</includeonly>#var:REGION}} | ||
+ | | JP | ||
+ | | TC = {{<includeonly>subst:</includeonly>!}} rarity {{<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>))}} | ||
+ | | #default = {{<includeonly>subst:</includeonly>!}} rarity {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | ||
+ | {{<includeonly>subst:</includeonly>!}} edition {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|4}} | ||
+ | {{<includeonly>subst:</includeonly>!}} release {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|-1}} | ||
+ | {{<includeonly>subst:</includeonly>))}} | ||
+ | }} | ||
+ | | #default = {{<includeonly>subst:</includeonly>!}} rarity {{<includeonly>subst:</includeonly>=}} {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|3}} | ||
{{<includeonly>subst:</includeonly>#switch: {{<includeonly>subst:</includeonly>#var:REGION}} | {{<includeonly>subst:</includeonly>#switch: {{<includeonly>subst:</includeonly>#var:REGION}} | ||
− | + | | JP | |
− | + | | TC = {{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|-1}} | DT | {{<includeonly>subst:</includeonly>!}} edition = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|-1}} | |
{{<includeonly>subst:</includeonly>))}} | {{<includeonly>subst:</includeonly>))}}}} | {{<includeonly>subst:</includeonly>))}} | {{<includeonly>subst:</includeonly>))}}}} | ||
− | + | | #default = {{<includeonly>subst:</includeonly>!}} edition = {{<includeonly>subst:</includeonly>#explode:{{<includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}}|.|0}}|-|4}} | |
{{<includeonly>subst:</includeonly>))}} | {{<includeonly>subst:</includeonly>))}} | ||
+ | }} | ||
}}<noinclude> | }}<noinclude> | ||
<br style = "clear:both;" /> | <br style = "clear:both;" /> | ||
+ | __NOTOC__ | ||
==Known Problems== | ==Known Problems== | ||
− | * Doesn't | + | * Doesn't work with cards needing the <code>alt</code> parameter; (I know how to solve this, just need time.) |
− | |||
* Badly designed. | * Badly designed. | ||
Line 24: | Line 44: | ||
<pre> | <pre> | ||
{{subst::User:Becasita/SubPages/CardImageUploadTemplate|<Card name>}} | {{subst::User:Becasita/SubPages/CardImageUploadTemplate|<Card name>}} | ||
+ | </pre> | ||
+ | |||
+ | ==Alternative (draft)== | ||
+ | <pre> | ||
+ | {{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:))}} | ||
+ | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 23:30, 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:))}} }}