Editing User:Becasita/SubPages/Templates/CardImage
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{ <includeonly>subst:</includeonly>#vardefine: $FLAG | 0 }}{{OCG-TCG card image | {{ <includeonly>subst:</includeonly>#vardefine: $FLAG | 0 }}{{OCG-TCG card image | ||
− | | name = | + | | name = {{{name|}}} |
| set = {{ <includeonly>subst:</includeonly>#if: {{{fix|}}} | | set = {{ <includeonly>subst:</includeonly>#if: {{{fix|}}} | ||
| {{ <includeonly>subst:</includeonly>#sub: {{ <includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}} | - | 0 }} | | {{ <includeonly>subst:</includeonly>#sub: {{ <includeonly>subst:</includeonly>#explode: {{<includeonly>subst:</includeonly>PAGENAME}} | - | 0 }} | ||
− | | {{ <includeonly>subst:</includeonly>#len: {{ <includeonly>subst:</includeonly>#explode | + | | {{ <includeonly>subst:</includeonly>#len: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace:{{ <includeonly>subst:</includeonly>#replace: {{{name|}}}|:}}|}}|.}}|?}}|#}}|"}}|/}}|\}} | ( }} }} |
}}{{ <includeonly>subst:</includeonly>#vardefine: $FLAG | 1 }} | }}{{ <includeonly>subst:</includeonly>#vardefine: $FLAG | 1 }} | ||
| {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | 1 }} }}{{ <includeonly>subst:</includeonly>#if: {{{post|}}} | -{{{post}}} }} | | {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | 1 }} }}{{ <includeonly>subst:</includeonly>#if: {{{post|}}} | -{{{post}}} }} | ||
Line 9: | Line 9: | ||
{{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#vardefineecho:$LAST | {{ <includeonly>subst:</includeonly>#if: {{{alt|}}} | -2 | -1 }} }} }} | {{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#vardefineecho:$LAST | {{ <includeonly>subst:</includeonly>#if: {{{alt|}}} | -2 | -1 }} }} }} | ||
| OP = {{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#var:$REGION }} | | OP = {{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#var:$REGION }} | ||
− | | JP | + | | JP |
− | |||
| TC = {{ <includeonly>subst:</includeonly>! }} release {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 3 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | | TC = {{ <includeonly>subst:</includeonly>! }} release {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 3 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | ||
| #default = {{ <includeonly>subst:</includeonly>! }} edition {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 3 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | | #default = {{ <includeonly>subst:</includeonly>! }} edition {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 3 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | ||
{{ <includeonly>subst:</includeonly>! }} release {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} | {{ <includeonly>subst:</includeonly>! }} release {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} | ||
}} | }} | ||
− | |||
| CT | | CT | ||
| GC = {{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#var: $REGION }} | | GC = {{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#var: $REGION }} | ||
− | | JP | + | | JP |
− | |||
| TC = {{ <includeonly>subst:</includeonly>! }} rarity {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 3 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | | TC = {{ <includeonly>subst:</includeonly>! }} rarity {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 3 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | ||
{{ <includeonly>subst:</includeonly>! }} release {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} | {{ <includeonly>subst:</includeonly>! }} release {{ <includeonly>subst:</includeonly>= }} {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} | ||
Line 29: | Line 26: | ||
{{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#var: $REGION }} | {{ <includeonly>subst:</includeonly>#switch: {{ <includeonly>subst:</includeonly>#var: $REGION }} | ||
| JP | | JP | ||
− | |||
| TC = {{ <includeonly>subst:</includeonly>#ifeq: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} | DT | {{ <includeonly>subst:</includeonly>! }} edition = {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} }} | | TC = {{ <includeonly>subst:</includeonly>#ifeq: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} | DT | {{ <includeonly>subst:</includeonly>! }} edition = {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#var: $LAST }} }} }} | ||
| #default = {{ <includeonly>subst:</includeonly>! }} edition = {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 4 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | | #default = {{ <includeonly>subst:</includeonly>! }} edition = {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>#explode: {{ <includeonly>subst:</includeonly>PAGENAME }} | . | 0 }} | - | {{ <includeonly>subst:</includeonly>#expr: 4 - {{ <includeonly>subst:</includeonly>#var: $FLAG }} }} }} | ||
Line 40: | Line 36: | ||
==Description== | ==Description== | ||
Based on the {{t|OCG-TCG card image}} template.<br /> | Based on the {{t|OCG-TCG card image}} template.<br /> | ||
− | Made to help with card image upload. It fills the parameters required automatically. Works with [[TCG]] and [[OCG]] cards (including [[Official Proxy|Proxies]] (OP), [[Giant Card]]s (GC), [[Case Topper]]s (CT | + | Made to help with card image upload. It fills the parameters required automatically. Works with [[TCG]] and [[OCG]] cards (including [[Official Proxy|Proxies]] (OP), [[Giant Card]]s (GC), [[Case Topper]]s (CT) and [[Duel Terminal]] (DT) cards). |
<span style = "color:Red;">'''Attention:'''</span> The output depends on the name of the file! So it's advisable to apply it only on files named accordingly to the [[Yu-Gi-Oh!:Image Policy]]!<br /> | <span style = "color:Red;">'''Attention:'''</span> The output depends on the name of the file! So it's advisable to apply it only on files named accordingly to the [[Yu-Gi-Oh!:Image Policy]]!<br /> | ||
If using on pics named accordingly to the old Yu-Gi-Oh!:Image Policy, the <code>fix</code> parameter should be used. | If using on pics named accordingly to the old Yu-Gi-Oh!:Image Policy, the <code>fix</code> parameter should be used. | ||
+ | |||
+ | ===Known Problems=== | ||
+ | * Badly designed. | ||
==Usage== | ==Usage== | ||
Line 56: | Line 55: | ||
; <code>name</code> | ; <code>name</code> | ||
− | : The English name of the card | + | : The English name of the card. |
; <code>fix</code> | ; <code>fix</code> | ||
− | : In case the image name is obsolete (named accordingly to the old Yu-Gi-Oh!:Image Policy), this parameter should be filled with <code>1</code> | + | : In case the image name is obsolete (named accordingly to the old Yu-Gi-Oh!:Image Policy), this parameter should be filled with <code>1</code>. |
; <code>post</code> | ; <code>post</code> | ||
− | : The postfix of a set. Should be left blank | + | : The postfix of a set. Should be left blank if the set does not need a postfix. |
; <code>alt</code> | ; <code>alt</code> | ||
− | : To be filled with <code>1</code> if the card requires the <code>alt</code> parameter. Should be left at blank | + | : To be filled with <code>1</code> if the card requires the <code>alt</code> parameter. Should be left at blank otherwise. |
===Example=== | ===Example=== |