close
Sayahna Sayahna
Search

Difference between revisions of "Template:Ambox"


(Undid revision 578101879 by Mr. Stradivarius (talk) problems with module have been fixed - trying again)
Line 1: Line 1:
<table class="metadata plainlinks ambox {{#switch:{{{type|}}}
+
{{#invoke:Message box|ambox}}<noinclude>
|speedy = ambox-speedy
+
{{documentation}}
|delete = ambox-delete
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
|serious = ambox-serious
 
|content = ambox-content
 
|style = ambox-style
 
|merge = ambox-move
 
|move = ambox-move
 
|protection = ambox-protection
 
|notice = ambox-notice
 
|#default = ambox-notice
 
}} {{{class|}}}" style="{{{style|display:table}}};">
 
<tr>
 
{{#switch:{{{image|}}}
 
|blank = <td class="mbox-image"><div style="width:52px;">&#160;</div></td>
 
|none = <td class="mbox-empty-cell"></td>
 
|#default = <td class="mbox-image"><div style="width:52px;">{{#if:{{{image|}}}
 
  |{{{image}}}
 
  |[[File:{{#switch:{{{type|}}}
 
  |speedy = Ambox speedy deletion.png
 
  |delete = Ambox deletion.png
 
  |serious = Stop hand nuvola.svg
 
  |content = Ambox content.png
 
  |style = Edit-clear.svg
 
  |merge = Merge-arrows.svg
 
  |move = Merge-split-transwiki default.svg
 
  |protection = Ambox protection.png
 
  |notice
 
  |#default = Ambox notice.png
 
  }}|40x40px|link=|alt=]]
 
}}</div></td>
 
}}
 
<td class="mbox-text" style="{{{textstyle|display:table-cell}}};">{{{text}}}{{#if:{{{lang|}}}|
 
<hr />
 
{{{{{lang|}}}}}}}</td>
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
  | <!-- No image. --><td class="mbox-empty-cell"></td>
 
  | <td class="mbox-imageright"><div style="width:52px;">{{{imageright}}}</div></td>
 
  }}
 
}}
 
</tr>
 
</table><noinclude>
 
{{template doc}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Revision as of 12:52, 23 October 2013

Documentation icon Template documentation[create]