Difference between revisions of "Template:Hmbox"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
m (undo my last edits, more complicated than it needed to be)
imported>SMcCandlish
(→‎top: Default the image to File:Blank.png so that the metatemplate doesn't throw an {{{image}}} error when called by a template that doesn't pass it that value (e.g. because it's using a 0 image size to not have an image).)
Line 3: Line 3:
 
| unresolved = fcf9f9
 
| unresolved = fcf9f9
 
| #default  = fcfcf9
 
| #default  = fcfcf9
}}; margin-right: 0.5em; padding: 0.5em;">[[File:{{{image|}}}|{{{{{|safesubst:}}}#if:{{{imagesize|}}}|{{{imagesize}}}|20x20}}px|link=|alt=]] {{{message|}}}{{{{{|safesubst:}}}#if:{{{extra|}}}|&#58;}}</span> {{{{{|safesubst:}}}#if:{{{extra|}}}|<span style="font-size: 85%">{{{extra}}}</span>}}</div></includeonly><noinclude>
+
}}; margin-right: 0.5em; padding: 0.5em;">[[File:{{{image|Blank.png}}}|{{{{{|safesubst:}}}#if:{{{imagesize|}}}|{{{imagesize}}}|20x20}}px|link=|alt=]] {{{message|}}}{{{{{|safesubst:}}}#if:{{{extra|}}}|&#58;}}</span> {{{{{|safesubst:}}}#if:{{{extra|}}}|<span style="font-size: 85%">{{{extra}}}</span>}}</div></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- place category and language links on the /doc sub-page, not here -->
 
<!-- place category and language links on the /doc sub-page, not here -->
 
</noinclude>
 
</noinclude>

Revision as of 11:37, 25 August 2014

Template documentation[view] [edit] [history] [purge]

This is {{hmbox}}, an {{mbox}} meta-template for hatnote-style templates such as {{resolved}} which are placed at the top of discussions or other matters which have been closed.

Usage

{{hmbox
| class   = 
| image   = 
| message = 
| extra   = {{{1|}}}
}}

Examples

{{hmbox
| class   = resolved
| image   = Yes check.svg
| message = Resolved
| extra   = {{{1|}}}
}}

produces:

Resolved

See also