User:Becasita/SubPages/Templates/CardImage

From Yugipedia
< User:Becasita‎ | SubPages‎ | Templates
Revision as of 17:35, 9 May 2016 by Becasita (talk | contribs) (Trying it this way.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{OCG-TCG card image | name = Becasita/SubPages/Templates/CardImage | set = | region = | rarity = | edition = }}

Description[edit]

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), Replicas (RP) 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!
If using on pics named accordingly to the old Yu-Gi-Oh!:Image Policy, the fix parameter should be used.

Usage[edit]

{{subst::User:Becasita/SubPages/Templates/CardImage
| name = 
| fix  = 
| post = 
| alt  = 
}}
name
The English name of the card. If a card only as one word as its name and that word doesn't contain non-alphabetical characters (e.g., !, #, etc.), this parameter could be left blank.
fix
In case the image name is obsolete (named accordingly to the old Yu-Gi-Oh!:Image Policy), this parameter should be filled with 1. If this parameter is used, the name must be used.
post
The postfix of a set. Should be left blank or removed if the set does not need a postfix.
alt
To be filled with 1 if the card requires the alt parameter. Should be left at blank or removed otherwise.

Example[edit]

For a card like File:Number39Utopia-YS11-EN-UE-OP.png, it should be:

{{subst::User:Becasita/SubPages/Templates/CardImage
| name = Number 39: Utopia
| fix  = 
| 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
| fix  = 
| 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
| fix  = 
| post = 
| alt  = 1
}}

Draft[edit]

{{subst:#if:{{{watermark|}}}|{{Watermark}}
|}}{{subst:#if:{{{poor quality|}}}|{{Poor quality}}
|}}