Difference between revisions of "Template:Ombox"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(template wrapper for generic messagebox)
m (16 revisions from wikipedia:Template:Ombox)
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks messagebox" style="{{{style|}}}">
+
{{#ifeq:{{{small|}}}|yes
<tr>
+
| {{ombox/core
<td class="ambox-image">
+
  | small = yes
{{#ifeq:{{{image|}}}|none
+
  | type  = {{{type|}}}
   | <!-- No image cell; empty cell necessary for text cell to have 100% width -->
+
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
   | <div style="width:52px;"> {{{image|[[Image:Ambox notice.png|40x40px]]}}}</div>
+
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
}}</td>
+
   | class = {{{class|}}}
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
+
   | style = {{{style|}}}
{{#if:{{{imageright|}}}
+
  | textstyle = {{{textstyle|}}}
   | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
+
  | text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
}}
+
  }}
</tr>
+
| {{ombox/core
</table><noinclude>
+
  | type  = {{{type|}}}
{{Documentation}}
+
  | image = {{{image|}}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
  | imageright = {{{imageright|}}}  
</noinclude>
+
   | class = {{{class|}}}
 +
  | style = {{{style|}}}
 +
  | textstyle = {{{textstyle|}}}
 +
  | text  = {{{text}}}
 +
  }}
 +
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>

Latest revision as of 13:49, 17 February 2016

Documentation icon Template documentation[create]