Difference between revisions of "Template:Ambox"

From Nottinghack Wiki
Jump to navigation Jump to search
(5px test)
Line 8: Line 8:
 
| notice    <!-- notice = default -->
 
| notice    <!-- notice = default -->
 
| #default  = ambox-notice
 
| #default  = ambox-notice
}}" style="{{{style|}}}">
+
}}" style="{{{style|}}} margin-bottom:5px;">
 
<tr>
 
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
Line 14: Line 14:
 
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
 
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
 
| #default =  
 
| #default =  
   <td class="mbox-image"><div style="width: 52px;">
+
   <td class="mbox-image"><div style="width: 52px;"> <!-- all styles present in CSS? -->
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}

Revision as of 09:57, 3 March 2019

Usage

Simple usage example:

{{ambox | text = Some text.}}

Complex example:

{{ambox
| type       = style
| image      = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text       = Text for a big box, for the top of articles.
}}

Article message box type examples

The following examples use different type parameters but use no image parameters thus they use the default images for each type.