Difference between revisions of "Template:Image class names"

From CWCki
Jump to navigation Jump to search
(Added usage. Recategorized as metatemplate.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
</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 />
{{#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>
<pre>{{Image class names|Replace this image male.svg}}</pre>
Line 5: Line 5:
-Displays: {{Image class names|Replace this image male.svg}}
-Displays: {{Image class names|Replace this image male.svg}}


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.  
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>
[[Category:Metatemplates|{{PAGENAME}}]]</noinclude>

Latest revision as of 12:36, 2 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: 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.