Difference between revisions of "Template:Ombox"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Added "{{pp-template|small=yes}}".)
m (16 revisions from wikipedia:Template:Ombox)
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f9f9f9;
+
{{#ifeq:{{{small|}}}|yes
{{#switch:{{{type|}}}
+
| {{ombox/core
| speedy    = border: 2px solid #b22222; background: #fee;
+
  | small = yes
| delete    = border: 2px solid #b22222;
+
  | type  = {{{type|}}}
| content    = border: 1px solid #f28500;
+
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| style      = border: 1px solid #f4c430;
+
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| move      = border: 1px solid #9932cc;
+
  | class = {{{class|}}}
| protection = border: 2px solid #bba;
+
  | style = {{{style|}}}
| notice          <!-- notice = default -->
+
  | textstyle = {{{textstyle|}}}
| #default  = border: 1px solid #aaa;
+
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
}} {{{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 style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
+
   | 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 style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{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]