Difference between revisions of "Template:Card image name"
Dinoguy1000 (talk | contribs) (using this is giving us trouble with the expansion depth limit, so remove some #replaces for characters that (to the best of my knowledge) have never actually been used in card names) |
Dinoguy1000 (talk | contribs) (remove more unneeded replaces) |
||
Line 1: | Line 1: | ||
− | + | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1|{{PAGENAME}}}}} | " }} | & }} | ' }} | ` }} | - }} | – }} | — }} | - }} | − }} | ( }} | ) }} | ' }} | . }} | , }} | ? }} | ! }} | = }} | & }} | # }} | " }} | / }} | : }} | }}<noinclude> | |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 02:42, 1 January 2013
Cardimagename
This template uses Lua: |
Usage
{{Card image name}} accepts a card's name and returns the card name with characters stripped per the image policy, allowing for automatic generation of image names in templates.
Some very old card images may not have been renamed to comply with the image policy yet, meaning card names with certain characters (most commonly the hyphen-minus) may sometimes not be stripped in a way likely to match the cards' actual image names. If you come across such an image, make sure it's tagged with {{OCG-TCG card image}}, which will automatically detect that the image needs renamed, categorize the image, and display a notice with a convenience rename link for movers or administrators to easily rename it.
Examples
{{Card image name|Dark Magician}}
→ DarkMagician{{Card image name|Blue-Eyes White Dragon}}
→ BlueEyesWhiteDragon{{Card image name|Stardust Dragon/Assault Mode}}
→ StardustDragonAssaultMode{{Card image name|Jinzo #7}}
→ Jinzo7{{Card image name|Jinzo 7}}
→ Jinzo7{{Card image name|Red Nova (card)}}
→ RedNova{{Card image name|Griggle (anime)}}
→ Griggle{{Card image name|Dynamic Dino Dynamix (L)}}
→ DynamicDinoDynamixL{{Card image name|Yggdrago the Sky Emperor (R) (manga)}}
→ YggdragotheSkyEmperorR{{Card image name|Yggdrago the Sky Emperor [R]}}
→ YggdragotheSkyEmperorR{{Card image name|Recette de Poisson (Fish Recipe)}}
→ RecettedePoisson(FishRecipe){{Card image name|CotH}}
→ CalloftheHaunted{{Card image name|Fiend's Hand}}
→ FiendsHand{{Card image name|This is not a card name}}
→ Thisisnotacardname
See also
- Yu-Gi-Oh!:Image policy
- {{OCG-TCG card image}}
- {{R}}
- {{Region}}
- {{Rg}}
- {{Rgo}}