m (1 revision imported) |
(add alt text for icon) |
||
Line 2: | Line 2: | ||
<table class="hgw-inline-box {{{class|}}} {{#if: {{{type|}}} | hgw-inline-box-{{{type}}} | }}" cellspacing="0" cellpadding="0"> | <table class="hgw-inline-box {{{class|}}} {{#if: {{{type|}}} | hgw-inline-box-{{{type}}} | }}" cellspacing="0" cellpadding="0"> | ||
<tr> | <tr> | ||
{{#ifeq: {{{image|}}} | none | <!-- no image --> | <td class="hgw-inline-box-image" nowrap="nowrap" style="width: {{{imagewidth|20px}}}">{{#if: {{{image|}}} | {{{image}}} | [[File:OOjs_UI_icon_information-{{#switch:{{{type|}}}|info=progressive|warning=warning|critical=destructive|success=constructive|progressive}}.svg|{{{imagewidth|20px}}}|link=]]}}</td> }} | {{#ifeq: {{{image|}}} | none | <!-- no image --> | <td class="hgw-inline-box-image" nowrap="nowrap" style="width: {{{imagewidth|20px}}}">{{#if: {{{image|}}} | {{{image}}} | [[File:OOjs_UI_icon_information-{{#switch:{{{type|}}}|info=progressive|warning=warning|critical=destructive|success=constructive|progressive}}.svg|{{{imagewidth|20px}}}|link=|alt-{{#switch:{{{type|}}}|info=Info icon|warning=Warning icon|critical=Critical icon|success=Success icon|progressive}}]]}}</td> }} | ||
<td class="hgw-inline-box-text">{{{text|{{{1|}}}}}}</td> | <td class="hgw-inline-box-text">{{{text|{{{1|}}}}}}</td> | ||
</tr></table></onlyinclude><noinclude>{{Documentation}}</noinclude> | </tr></table></onlyinclude><noinclude>{{Documentation}}</noinclude> |
Revision as of 20:13, 23 November 2024
This template uses TemplateStyles: |
This is a small message box that can be used in the middle of contents like a guide.
You probably don't want to use this template directly, instead consider:
TemplateData
Smaller message box (compared to Mbox) used for warnings or other information such as in the middle of a guide.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | text 1 | Text to display | Content | required |
Type | type | Type of the message, affects the default image and color
| String | suggested |
Image | image | Image to display as a file link (does not actually have to be a file, can be any object)
| Content | optional |
Image width | imagewidth | Width of the image, set in the CSS width property and image width in the file link
| Unknown | optional |
CSS classes | class | Additional CSS classes to add | String | optional |