Changes

Jump to: navigation, search

Template:Imbox/doc

197 bytes added, 1 year ago
added link
{{Mbox templates (small)}}
This is the {{tl|Imbox}} (['''I''']mage ['''m''']essage ['''box''']) [[WP:MTM|metatemplate]].
It is used to build message box templates for file (image) pages, such as {{tl|cleanup-image}} etc. It offers several different colours, uses default images if no image parameter is given and it has some other features.
{{Imbox
| type = style
| image = [[File:GnomeCamera-dev-cameraphoto.svg|42px40px]]
| text = type = style<br/>image = <nowiki>[[File:Gnome-dev-camera.svg|42px]]</nowiki><br/>This image is used for {{tl|cleanup-image}}.
}}
<pre>
{{Imbox
| name = name of the template
| type = speedy / delete / content / style / notice /
move / protection / license / featured
}}
</pre>
 
'''name'''
:(Optional) Name of the template. This adds a CSS class with name <code>box-''name''</code> to the HTML element, for use by bots or scripts.
'''type'''
===Technical details===
Namespace "FileImage:" was renamed to "File:" on 11 December 2008. This template was created long before that, and that is why it is named "imbox" as in "image message box".
If you need to use special characters in the text parameter then you need to escape them like this:
<presyntaxhighlight lang="tid">
{{Imbox
| text = <div>
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe {{!}} and two end braces &lt;<nowiki>}}&lt;</nowiki>. And now a pipe and end braces &lt;<nowiki>|}}&lt;</nowiki>.
</div>
}}
</presyntaxhighlight>
{{Imbox
| text = <div>
{{Mbox templates see also}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox Sandbox other|
| <!-- CATEGORIES BELOW THIS LINE, PLEASE -->
[[Category:Mbox and messagebox templates]]
[[Category:File namespace templates|*]]
}}</includeonly>
Anonymous user

Navigation menu