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

From Yugipedia
Jump to: navigation, search
(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|[[Yggdrago the Sky Emperor (R) (manga)|Yggdrago the Sky Emperor [R] (manga)]]}} → {{Card image name|Yggdrago the Sky Emperor [R] (manga)}}
+
* {{tlx|Card image name|[[Recette de Poisson (Fish Recipe)]]}} → {{Card image name|Recette de Poisson (Fish Recipe)}}
* {{tlx|Card image name|[[The Winged Dragon of Ra (Sphere Mode)]]}} → {{Card image name|The Winged Dragon of Ra (Sphere Mode)}}
 
 
* {{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

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]

See also[edit]