Difference between revisions of "Template:Ombox"

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

Revision as of 08:14, 20 May 2008

Documentation icon Template documentation[create]