Template:Image class/doc

From The Sonic Eats Rings Museum
Jump to navigation Jump to search
This is a documentation subpage for Template:Image class (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

This template contains

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

so it is like {{image class names}}, but with "class=".

It allows suppression of placeholder images, see that template.

Usage

Usage, if the parameter {{{image}}} is used for the image name:

<span {{image class|{{{image}}}}}>[[Image:{{{image}}}|..]]</span>

In a table:

|{{image class|{{{image}}}}} | [[Image:{{{image}}}|..]]

Templates in which this templates is called: [1].

Some templates use the whole image tag as parameter, so they use:

<span {{image class|{{{image_tag_parameter}}}}}>{{{image_tag_parameter}}}</span>

In a table:

|{{image class|{{{image_tag_parameter}}}}} | {{{image_tag_parameter}}}

For placeholder images used in these templates the list of placeholder images in {{image class names}} contains the tags used.

Related template

{{image class names}} can also be called directly. This is needed if the class names without "class=" are required, e.g. for parameter imageclass of {{infobox}}.