Difference between revisions of "User:Becasita/SubPages/Templates/CardImage"
m (→Example: Correcting typo.) |
(Trying to get rid of all these <includeonly>.) |
||
Line 1: | Line 1: | ||
{{OCG-TCG card image | {{OCG-TCG card image | ||
| name = {{{name|}}} | | name = {{{name|}}} | ||
− | | set = {{ | + | | set = {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|1}}{{{{{|safesubst:}}}#if:{{{post|}}}|-{{{post}}}|}} |
− | | region = {{ | + | | region = {{{{{|safesubst:}}}#vardefineecho:REGION|{{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|2}}}} |
− | {{ | + | {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|{{{{{|safesubst:}}}#if:{{{alt|}}}|-2|-1}}}} |
− | | OP = {{ | + | | OP = {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}#var:REGION}} |
| JP | | JP | ||
− | | TC = {{ | + | | TC = {{{{{|safesubst:}}}!}} release {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|3}} |
− | | #default = {{ | + | | #default = {{{{{|safesubst:}}}!}} edition {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|3}} |
− | {{ | + | {{{{{|safesubst:}}}!}} release {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|{{{{{|safesubst:}}}#if:{{{alt|}}}|-2|-1}}}} |
}} | }} | ||
| CT | | CT | ||
− | | GC = {{ | + | | GC = {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}#var:REGION}} |
| JP | | JP | ||
− | | TC = {{ | + | | TC = {{{{{|safesubst:}}}!}} rarity {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|3}} |
− | {{ | + | {{{{{|safesubst:}}}!}} release {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|{{{{{|safesubst:}}}#if:{{{alt|}}}|-2|-1}}}} |
− | | #default = {{ | + | | #default = {{{{{|safesubst:}}}!}} rarity {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|3}} |
− | {{ | + | {{{{{|safesubst:}}}!}} edition {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|4}} |
− | {{ | + | {{{{{|safesubst:}}}!}} release {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|{{{{{|safesubst:}}}#if:{{{alt|}}}|-2|-1}}}} |
}} | }} | ||
− | | #default = {{ | + | | #default = {{{{{|safesubst:}}}!}} rarity {{{{{|safesubst:}}}=}} {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|3}} |
− | {{ | + | {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}#var:REGION}} |
| JP | | JP | ||
− | | TC = {{ | + | | TC = {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|{{{{{|safesubst:}}}#if:{{{alt|}}}|-2|-1}}}} | DT | {{{{{|safesubst:}}}!}} edition = {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|{{{{{|safesubst:}}}#if:{{{alt|}}}|-2|-1}}}} | }} |
− | | #default = {{ | + | | #default = {{{{{|safesubst:}}}!}} edition = {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|4}} |
}} | }} | ||
}} | }} | ||
− | {{ | + | {{{{{|safesubst:}}}#if:{{{alt|}}}|{{{{{|safesubst:}}}!}} alt = {{{{{|safesubst:}}}#explode:{{{{{|safesubst:}}}#explode: {{{{{|safesubst:}}}PAGENAME}}|.|0}}|-|-1}} |
− | {{ | + | {{{{{|safesubst:}}}))}}|{{{{{|safesubst:}}}))}}}}<noinclude> |
<br style = "clear:both;" /> | <br style = "clear:both;" /> | ||
__NOTOC__ | __NOTOC__ |
Revision as of 10:34, 13 April 2016
{{OCG-TCG card image
| name =
| set =
| region =
| rarity =
| edition =
}}
Description
Based on the {{OCG-TCG card image}} template.
Made to help with card image upload. It fills the parameters required automatically. Works with TCG and OCG cards (including Proxies (OP), Giant Cards (GC), Case Toppers (CT) and Duel Terminal (DT) cards).
Attention: 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!
Known Problems
- Badly designed.
Usage
{{subst::User:Becasita/SubPages/Templates/CardImage | name = | post = | alt = }}
name
- The English name of the card.
post
- The postfix of a set. Should be left blank if the set does not need a postfix.
alt
- To be filled with
1
if the card requires thealt
parameter. Should be left at blank otherwise.
Example
Note:The images are un-linked due to {{Fair use}}.
For a card like File:Number39Utopia-YS11-EN-UE-OP.png, it should be:
{{subst::User:Becasita/SubPages/Templates/CardImage | name = Number 39: Utopia | post = | alt = }}
For a card like File:TempestMagician-SOVR-FR-SR-LE.png, it should be:
{{subst::User:Becasita/SubPages/Templates/CardImage | name = Tempest Magician | post = SE | alt = }}
For a card like File:GraphaDragonLordofDarkWorld-DL18-SP-R-UE-Purple.png, it should be:
{{subst::User:Becasita/SubPages/Templates/CardImage | name = Grapha, Dragon Lord of Dark World | post = | alt = 1 }}
Draft
{{subst:#if:{{{watermark|}}}|{{Watermark}} |}}{{subst:#if:{{{poor quality|}}}|{{Poor quality}} |}}