Template:Inline box: Difference between revisions
Template page
More actions
m 1 revision imported |
m set alt text properly |
||
| (One intermediate revision by the same user not shown) | |||
| 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> | ||