Template:Image class

From The Sonic Eats Rings Museum
Revision as of 22:06, 3 December 2008 by SoNick (talk | contribs) (New page: <noinclude>{{pp-template}} {{template doc}}</noinclude><includeonly>class="{{image class names|{{{1}}}}}"</includeonly>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[edit] Template-info.svg Template documentation

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[edit]

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[edit]

{{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}}.