Difference between revisions of "Template:Ambox"

From ALFA
Jump to: navigation, search
(Created page with "<table style="width: 80%; margin: 0 auto; border-collapse: collapse; background: #fbfbfb; border: 1px solid #aaa; border-left: 10px solid #1e90ff; {{#switch:{{{type|}}} | se...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table style="width: 80%; margin: 0 auto; border-collapse: collapse; background: #fbfbfb; border: 1px solid #aaa; border-left: 10px solid #1e90ff; {{#switch:{{{type|}}}
+
<div style="width: 80%; margin: 0 auto; padding: 7px; border-collapse: collapse; background: #fbfbfb; border: 1px solid #aaa; border-left: 10px solid #1e90ff; {{#switch:{{{type|}}}
  | serious  = border-left: 10px solid #b22222;
+
   | #default = border-left: 10px solid #80B4DD;
  | content  = border-left: 10px solid #f28500;
 
  | style    = border-left: 10px solid #f4c430;
 
  | merge    = border-left: 10px solid #9932cc;
 
  | notice  = border-left: 10px solid #bba;
 
   | #default = border-left: 10px solid #bba;
 
 
}}" class="plainlinks">
 
}}" class="plainlinks">
<tr>
 
<td style="padding: 2px 0px 2px 0.5em; text-align: center;">
 
 
{{#ifeq:{{{image}}}|none
 
{{#ifeq:{{{image}}}|none
 
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
 
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
+
   | <div style="float: left; margin: 7px; margin-right: 10px;"> {{#switch:{{{image|{{{type|}}}}}}
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
+
     | #default = {{{image|[[Image:Ambox_default.png|40px]]}}}
    | content  = [[Image:Emblem-important.svg|40px]]
 
    | style    = [[Image:Broom icon.svg|40px]]
 
    | merge    = [[Image:Merge-split-transwiki default.svg]]
 
    | notice  = [[Image:Info non-talk.png|40px]]
 
    | blank    = [[Image:No image.svg]]
 
     | #default = {{{image|[[Image:Info non-talk.svg|40px]]}}}
 
 
   }}</div>
 
   }}</div>
}}</td>
 
<td style="padding: 0.25em 0.25em 0.25em 0.5em; width: 100%;">{{{text}}}</td>
 
{{#if:{{{imageright|}}}|
 
  <td style="padding: 2px 4px 2px 0px; text-align: center;"><div style="width:52px;"> {{{imageright}}} </div></td>
 
 
}}
 
}}
</tr>
+
<p style="font-weight: bold;">{{{title}}}</p>
</table><noinclude>
+
<p>{{{text}}}</p>
{{/doc}}
+
</div>
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 

Latest revision as of 08:56, 23 January 2014