Difference between revisions of "Template:Hmbox"
Jump to navigation
Jump to search
Resolved
imported>Casliber m (Changed protection level of Template:Hmbox: new protection cat ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
imported>Sardanaphalus (Update via sandbox (code comprehensibility, {{{extra}}} font-size (was too small), made {{{message}}} required, removed Blank.png default (otherwise gap created)) |
||
| Line 1: | Line 1: | ||
| − | + | <div class="{{{class|}}}" style="margin:1.0em;"><!-- | |
| − | | resolved | + | |
| − | | unresolved = fcf9f9 | + | (Image and) message in box: |
| − | | #default | + | --><span style="margin-right:0.35em;border:1px solid #aaa;padding:0.5em; |
| − | }}; | + | background:#{{{{{|safesubst:}}}#switch:{{{class|}}} |resolved=f9fcf9 |unresolved=fcf9f9 |#default=fcfcf9}};"><!-- |
| − | {{ | + | -->{{#if:{{{image|}}} |[[File:{{{image}}} |{{{{{|safesubst:}}}#if:{{{imagesize|}}}|{{{imagesize}}}|20x20}}px |alt= |link=]] |<noinclude>''(image)'' </noinclude>}}<!-- |
| − | + | -->{{{message}}}{{{{{|safesubst:}}}#if:{{{extra<includeonly>|</includeonly>}}} | ''':<!--(colon)-->'''}}<!-- | |
| + | --></span><!-- | ||
| + | |||
| + | Optional message after (i.e. to right of) box: | ||
| + | -->{{{{{|safesubst:}}}#if:{{{extra<includeonly>|</includeonly>}}} | ||
| + | | <span style="font-size:95%;"><noinclude>''Optional ''</noinclude>{{{extra}}}<noinclude>'' message''</noinclude></span><!-- | ||
| + | -->}}<!-- | ||
| + | |||
| + | --></div><noinclude> | ||
| + | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 11:40, 16 December 2014
(image) {{{message}}} : Optional {{{extra}}} message
| This template is used on approximately 21,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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:
See also
| The above documentation is transcluded from Template:Hmbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |