Jump to content

Template:Ombox: Difference between revisions

From IdeaWazaWiki
wikademia>Happy-melon
template wrapper for generic messagebox
 
wikademia>Wikademia
m 14 revisions
 
(13 intermediate revisions by 2 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>
  | 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|}}}  
   | style = {{{style|}}}
  | textstyle = {{{textstyle|}}}
  | text  = {{{text}}}
  }}
}}<noinclude>
 
{{pp-template|small=yes}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 22:48, 28 April 2009

[create] Template documentation