Difference between revisions of "Template:Card image name/doc"
Dinoguy1000 (talk | contribs) (→Examples: link all the card/page names in the example code) |
m (Remove incorrect use case: "Yggdrago the Sky Emperor [R] (manga)"; This is neither a pagename nor a card name.) |
||
(One intermediate revision by one other user not shown) | |||
Line 19: | Line 19: | ||
* {{tlx|Card image name|[[Yggdrago the Sky Emperor (R) (manga)]]}} → {{Card image name|Yggdrago the Sky Emperor (R) (manga)}} | * {{tlx|Card image name|[[Yggdrago the Sky Emperor (R) (manga)]]}} → {{Card image name|Yggdrago the Sky Emperor (R) (manga)}} | ||
* {{tlx|Card image name|[[Yggdrago the Sky Emperor (R)|Yggdrago the Sky Emperor [R]]]}} → {{Card image name|Yggdrago the Sky Emperor [R]}} | * {{tlx|Card image name|[[Yggdrago the Sky Emperor (R)|Yggdrago the Sky Emperor [R]]]}} → {{Card image name|Yggdrago the Sky Emperor [R]}} | ||
− | * {{tlx|Card image name|[[ | + | * {{tlx|Card image name|[[Recette de Poisson (Fish Recipe)]]}} → {{Card image name|Recette de Poisson (Fish Recipe)}} |
− | |||
* {{tlx|Card image name|[[CotH]]}} → {{Card image name|CotH}} | * {{tlx|Card image name|[[CotH]]}} → {{Card image name|CotH}} | ||
* {{tlx|Card image name|[[Fiend's Hand|Fiend's Hand]]}} → {{Card image name|Fiend's Hand}} | * {{tlx|Card image name|[[Fiend's Hand|Fiend's Hand]]}} → {{Card image name|Fiend's Hand}} |
Latest revision as of 21:47, 22 May 2023
This is a documentation subpage for Template:Card image name. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage[edit]
{{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[edit]
{{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[edit]
- Yu-Gi-Oh!:Image policy
- {{OCG-TCG card image}}
- {{R}}
- {{Region}}
- {{Rg}}
- {{Rgo}}