Template:Image class names

From Australian sf information
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


{{#if:|{{{{{1}}}}}| This template produces "metadata dummy" (without quotation marks) if the parameter is in a list of placeholder image names and tags contained in this template. It allows suppression of these placeholder images.

Usage

class="{{image class names|image parameter}}"

The image parameter can be the image name or a full image tag.

In most cases this template is not called directly, but through another template, e.g. {{image class}}, see the usage of that template, or {{infobox actor}}.

Effect

Due to MediaWiki:Monobook.css, containing

     @media print { .metadata { display: none } }

the effect of class "metadata" is that by default the image is not printed when using the Monobook skin.

The class "dummy" allows users to use CSS to suppress the display of placeholder images with the CSS:

     .dummy {display: none} }}

da:Skabelon:Image class names{{#switch:{{{1}}}|Replace this image male.svg|Replace this image female.svg|Replace this image1.svg|Replace this imageb.svg|File:Replace this imageb.svg|Replace this image male.svg|File:Replace this image female.svg =metadata dummy}}