Difference between revisions of "Template:Ombox"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (Reverted edits by Happy-melon (talk) to last version by Davidgothberg)
m (16 revisions from wikipedia:Template:Ombox)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<table class="plainlinks ombox
+
{{#ifeq:{{{small|}}}|yes
{{#switch:{{{type|}}}
+
| {{ombox/core
| speedy    = ombox-speedy
+
  | small = yes
| delete    = ombox-delete
+
  | type  = {{{type|}}}
| content    = ombox-content
+
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| style      = ombox-style
+
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| move      = ombox-move
+
  | class = {{{class|}}}
| protection = ombox-protection
+
  | style = {{{style|}}}
| notice          <!-- notice = default -->
+
  | textstyle = {{{textstyle|}}}
| #default  = ombox-notice
+
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
}}" style="{{{style|}}}">
+
  }}
<tr>
+
| {{ombox/core
{{#ifeq:{{{image|}}}|none
+
  | type  = {{{type|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
+
  | image = {{{image|}}}
| <td class="ombox-image">
+
   | imageright = {{{imageright|}}}  
  {{#if:{{{image|}}}
+
  | class = {{{class|}}}
  | {{{image}}}
+
  | style = {{{style|}}}
  | {{#switch:{{{type|}}}
+
  | textstyle = {{{textstyle|}}}
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]
+
  | text  = {{{text}}}
    | delete    = [[Image:Imbox deletion.png|40x40px]]
+
  }}
    | content    = [[Image:Imbox content.png|40x40px]]
+
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
    | 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}}
 
{{Documentation}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 

Latest revision as of 13:49, 17 February 2016

Documentation icon Template documentation[create]