Difference between revisions of "Template:Hmbox"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
m (show output on template)
imported>SMcCandlish
(Per talk page, replacing internal : with external – when |extra= is invoked. Feel free to revert if this ucks something fup, but it seems to be fine in testing.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="margin: 1em;" class="{{{class|}}}"><span style="border: 1px solid #aaa; background-color: #{{{{{|safesubst:}}}#switch:{{{class|}}}
+
<div role="note" style="margin: 1em;" class="{{{class|}}}"><span style="border: 1px solid #aaa; background-color: #{{{{{|safesubst:}}}#switch:{{{class|}}}
 
| resolved  = f9fcf9
 
| resolved  = f9fcf9
 
| unresolved = fcf9f9
 
| unresolved = fcf9f9
 
| #default  = fcfcf9
 
| #default  = fcfcf9
}}; 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><noinclude>
+
}}; margin-right: 0.5em; padding: 0.5em;">[[File:{{{image|Blank.png}}}|{{{{{|safesubst:}}}#if:{{{imagesize|}}}|{{{imagesize}}}|20x20}}px|link=|alt=]] {{{message|}}}</span>{{{{{|safesubst:}}}#if:{{{extra|}}}|&#8202;– <span style="font-size: 85%">{{{extra}}}</span>}}</div><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>

Latest revision as of 10:12, 1 December 2020

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