Template:Ambox: Difference between revisions

From TestWiki
Content added Content deleted
imported>Krinkle
No edit summary
(username removed)
m (29 revisions imported from loginwiki:Template:Ambox: Updating template with latest edits from loginwiki)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Template:Mbox/styles.css" />
<table class="metadata plainlinks ambox {{#switch:{{{type|}}}
{{#invoke:Message box|ambox}}<noinclude>
| serious = ambox-serious
{{documentation}}
| content = ambox-content
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| maintenance = ambox-style
| notice = ambox-notice
| #default = ambox-notice
}}">
<tr>
{{#ifeq:{{{image}}}|none
| <!-- no image cell -->
| <td class="ambox-image"> {{#switch:{{{image|{{{type|}}}}}}
| serious = [[Image:Stop hand nuvola.svg|40px]]
| content = [[Image:Emblem-important.svg|40px]]
| maintenance = [[Image:Broom icon.svg|40px]]
| notice = [[Image:Crystal important.png|40px]]
| blank = <!-- empty image cell -->
| #default = {{{image|[[Image:Information.svg|40px]]}}}
}}</td>
}}
<td> {{{text}}} </td>
{{#if:{{{imageright|}}}
<td class="ambox-imageright"> {{{imageright}}} </td>
}}
</tr>
</table><noinclude>
== Types ==
* default (info)
{{Ambox}}
* notice
{{Ambox|type=notice}}
* serious
{{Ambox|type=serious}}
* content
{{Ambox|type=content}}
* maintenance
{{Ambox|type=maintenance}}

== See also ==
* {{tl|mbox}}
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 01:09, 21 March 2022