Difference between revisions of "Template:Card image name/doc"

From Yugipedia
Jump to: navigation, search
(Examples: add other testcases from the module, plus one more)
(Examples: bypass the (first) redirect, since that isn't what that particular example is intended to demonstrate)
Line 16: Line 16:
 
* {{tlx|Card image name|Red Nova (card)}} → {{Card image name|Red Nova (card)}}
 
* {{tlx|Card image name|Red Nova (card)}} → {{Card image name|Red Nova (card)}}
 
* {{tlx|Card image name|Griggle (anime)}} → {{Card image name|Griggle (anime)}}
 
* {{tlx|Card image name|Griggle (anime)}} → {{Card image name|Griggle (anime)}}
* {{tlx|Card image name|Great Imperial Dinocarriage Dynarmix (L)}} → {{Card image name|Great Imperial Dinocarriage Dynarmix (L)}}
+
* {{tlx|Card image name|Dynamic Dino Dynamix (L)}} → {{Card image name|Dynamic Dino Dynamix (L)}}
 
* {{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]}} → {{Card image name|Yggdrago the Sky Emperor [R]}}
 
* {{tlx|Card image name|Yggdrago the Sky Emperor [R]}} → {{Card image name|Yggdrago the Sky Emperor [R]}}

Revision as of 11:12, 22 May 2023

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

See also