Difference between revisions of "Template:Image class names"
Jump to navigation
Jump to search
m (Added documentation.) |
(Added usage. Recategorized as metatemplate.) |
||
Line 1: | Line 1: | ||
<noinclude>{{ | </noinclude>{{#switch:{{ucfirst:{{{1}}}}}|Replace this image male.svg|Replace this image female.svg|Replace this image1.svg|Replace this imageb.svg|[[Image:Replace this imageb.svg|150px]]|Replace this image male.svg|[[Image:Replace this image female.svg|150px]] <!-- Only freely-licensed images may be used to depict living people. See [[WP:NONFREE]]. -->=metadata dummy}}<noinclude>{{Usage|1=This is a metatemplate used in other templates such as infoboxes. It replaces images listed within the template with "metadata dummy" when they are used. The formatting of this template is as follows. <br /> | ||
{{ | <pre>{{Image class names|Replace this image male.svg}}</pre> | ||
-Displays: {{Image class names|Replace this image male.svg}} | |||
{{ | |||
</noinclude> | The idea here is to suppress images that Wikipedia uses as placeholders. That is, if you filled in an infobox with the Image class names template in it, and you entered "Replace this image male.svg" for the image to be used in the box, it would render with the "metadata dummy" text instead. | ||
}} | |||
[[Category:Metatemplates|{{PAGENAME}}]]</noinclude> |
Revision as of 22:04, 1 December 2010
Usage
These usage notes will not be included in articles bearing this template.
This is a metatemplate used in other templates such as infoboxes. It replaces images listed within the template with "metadata dummy" when they are used. The formatting of this template is as follows.
{{Image class names|Replace this image male.svg}}
-Displays: </noinclude>metadata dummy
The idea here is to suppress images that Wikipedia uses as placeholders. That is, if you filled in an infobox with the Image class names template in it, and you entered "Replace this image male.svg" for the image to be used in the box, it would render with the "metadata dummy" text instead.