Jump to content

Template:Ombox: Difference between revisions

From IdeaWazaWiki
wikademia>Happy-melon
adding duplicate type names from ambox for mbox functionality
wikademia>Wikademia
m 14 revisions
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table class="plainlinks ombox
{{#ifeq:{{{small|}}}|yes
{{#switch:{{{type|}}}
| {{ombox/core
| speedy    = ombox-speedy
  | small = yes
| delete    <!-- delete = serious -->
  | type  = {{{type|}}}
| serious    = ombox-delete
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| content    = ombox-content
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| style      = ombox-style
  | style = {{{style|}}}
| move      <!-- move = merge -->
  | textstyle = {{{textstyle|}}}
| merge      = ombox-move
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
| protection = ombox-protection
  }}
| notice    <!-- notice = default -->
| {{ombox/core
| #default  = ombox-notice
  | type  = {{{type|}}}
}}" style="{{{style|}}}">
   | image = {{{image|}}}
<tr>
  | imageright = {{{imageright|}}}  
{{#ifeq:{{{image|}}}|none
  | style = {{{style|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
  | textstyle = {{{textstyle|}}}
| <td class="ombox-image">
  | text  = {{{text}}}
  {{#if:{{{image|}}}
  }}
  | {{{image}}}
}}<noinclude>
  | {{#switch:{{{type|}}}
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]
    | delete    = [[Image:Imbox deletion.png|40x40px]]
    | content    = [[Image:Imbox content.png|40x40px]]
    | style      = [[Image:Imbox style.png|40x40px]]
    | move      = [[Image:Imbox move.png|40x40px]]
    | protection = [[Image:Imbox protection.png|40x40px]]
    | notice          <!-- notice = default -->
    | #default  = [[Image:Imbox notice.png|40x40px]]
    }}
   }}</td>
}}
<td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="ombox-imageright"> {{{imageright}}} </td>
}}
</tr>
</table><noinclude>


{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{Documentation}}
{{documentation}}
<!-- Add categories and inter-wikis 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