Template:Image class/doc

From The Sonic Eats Rings Museum
< Template:Image class
Revision as of 22:06, 3 December 2008 by SoNick (talk | contribs) (New page: <noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template contains :<nowiki>class="{{image class names|{{{1}}}}}"</no...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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[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}}.