The wiki has moved!

Visit the new wiki at stationeers-wiki.com The old wiki here at legacy.stationeers-wiki.com will sunset eventually.

Edits made after the 7th of March 6PM EST were NOT carried over to the new server as previously announced right here in this box.

 Actions

Template

Difference between revisions of "Ombox"

From Unofficial Stationeers Wiki

(Copying from the /sandbox. This version is derived from the imbox since the imbox code is much closer to the needs of the ombox than the ambox is. See talk page for explanation/discussion.)
Line 1: Line 1:
<table class="metadata plainlinks messagebox" style="{{{style|}}}">
+
<table class="plainlinks" style="margin: 3px 10%; border-collapse: collapse; background: #f9f9f9;
 +
{{#switch:{{{type|}}}
 +
| speedy    = border: 2px solid #b22222; background: #fee;
 +
| delete    = border: 2px solid #b22222;
 +
| content    = border: 1px solid #f28500;
 +
| style      = border: 1px solid #f4c430;
 +
| move      = border: 1px solid #9932cc;
 +
| protection = border: 2px solid #bba;
 +
| notice          <!-- notice = default -->
 +
| #default  = border: 1px solid #aaa;
 +
}} {{{style|}}}">
 
<tr>
 
<tr>
<td class="ambox-image">
 
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
  | <!-- No image cell; empty cell necessary for text cell to have 100% width -->
+
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
  | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
+
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
     | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]  
+
  {{#if:{{{image|}}}
     | delete
+
  | {{{image}}}
     | serious    = [[Image:Ambox deletion.png|40x40px]]  
+
  | {{#switch:{{{type|}}}
     | content    = [[Image:Ambox content.png|40x40px]]
+
     | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]  
     | style      = [[Image:Ambox style.png|40x40px]]
+
     | delete    = [[Image:Imbox deletion.png|40x40px]]  
     | move
+
     | content    = [[Image:Imbox content.png|40x40px]]
    | merge      = [[Image:Ambox move.png|40x40px]]
+
     | style      = [[Image:Imbox style.png|40x40px]]
     | protection = [[Image:Ambox protection.png|40x40px]]
+
     | move       = [[Image:Imbox move.png|40x40px]]
     | notice     = [[Image:Ambox notice.png|40x40px]]
+
     | protection = [[Image:Imbox protection.png|40x40px]]
    | blank      = &nbsp;
+
     | notice         <!-- notice = default -->
     | #default  = {{{image|[[Image:Ambox notice.png|40x40px]]}}}
+
     | #default  = [[Image:Imbox notice.png|40x40px]]
   }}</div>
+
    }}
}}</td>
+
   }}</td>
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
+
}}
 +
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
  | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
+
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>
 
</table><noinclude>
 
</table><noinclude>
 +
 +
<!-- {{pp-template|small=yes}} -->
 
{{Documentation}}
 
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 17:59, 29 May 2008

Template documentation[create]