Template:Ambox: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Creation)
 
(gentle modernization, replaced images where available, WIP (previously abandoned template))
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
{| style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
   | serious  = ambox-serious
   | serious  = ambox-serious
   | content  = ambox-content
   | content  = ambox-content
Line 7: Line 7:
   | #default = ambox-notice
   | #default = ambox-notice
}}">
}}">
<tr>
|-
<td class="ambox-image">
| class="ambox-image" | {{#ifeq:{{{image}}}|none
{{#ifeq:{{{image}}}|none
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
     | serious  = [[Image:Stop hand nuvola.svg|40px]]
     | serious  = [[File:File-locked.jpg|40px|link=]]
     | content  = [[Image:Emblem-important.svg|40px]]
     | content  = [[File:Emblem-important.svg|40px|link=]]
     | style    = [[Image:Broom icon.svg|40px]]
     | style    = [[File:Broom icon-jpgvrs.jpg|40px|link=]]
     | merge    = [[Image:Merge-split-transwiki default.svg]]
     | merge    = [[File:Merge-split-transwiki default.svg|link=]]
     | notice  = [[Image:Info non-talk.png|40px]]
     | notice  = [[File:Info non-talk.png|40px|link=]]
     | blank    = [[Image:No image.svg]]
     | blank    = [[File:No image.svg|40px|link=]]
     | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
     | #default = {{{image|[[File:Info non-talk.png|40px|link=]]}}}
   }}</div>
   }}</div>
}}</td>
}}
<td class="ambox-text">{{{text}}}</td>
| class="ambox-text" | {{{text}}}
{{#if:{{{imageright|}}}|
{{#if:{{{imageright|}}}|
   <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
   {{!}} class="ambox-imageright" style="width:52px;" {{!}} {{{imageright}}}
}}
}}
</tr>
|}<noinclude>
</table>
{{Ambox|type=serious|text=Hello world!}}
{{Ambox|type=content|text=Hello world!}}
{{Ambox|type=style|text=Hello world!}}
{{Ambox|type=merge|text=Hello world!}}
{{Ambox|type=notice|text=Hello world!}}
{{Ambox|type=blank|text=Hello world!}}
</noinclude>

Revision as of 13:55, 2 February 2024