Difference between revisions of "Template:Card image name"
Dinoguy1000 (talk | contribs) (test curly-bracket removal) |
(→top: Restoring revision 5047660 by User:Becasita on 2022-08-22 21:46:34. Remove tracking category.) (Tag: New user edit) |
||
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ safesubst:<noinclude/>#invoke: Card image name | main }}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 22:47, 17 March 2023
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}}