Difference between revisions of "Template:Ambox"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Freedo50
(New page: <includeonly><table class="metadata plainlinks ambox {{#switch:{{{type|}}} | speedy = ambox-speedy | delete = ambox-delete | content = ambox-content | style = ambox-style ...)
sc4e>Freedo50
Line 47: Line 47:
 
| notice    =    <!-- Do nothing, valid "type" -->
 
| notice    =    <!-- Do nothing, valid "type" -->
 
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Ambox templates using deprecated types|learn more]])</div>[[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Ambox templates using deprecated types|learn more]])</div>[[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}</includeonly><noinclude>{{pp-template|small=yes}}
+
}}</includeonly><noinclude>{{pp-template}}
This templae is a message box for article pages, it will be automatically transcluded by the {{[[Template:Mbox|Mbox]]}} tag.
+
This template is a message box for article pages, it will be automatically transcluded by the {{[[Template:Mbox|Mbox]]}} tag.
  
 
=== Usage ===
 
=== Usage ===

Revision as of 06:40, 27 December 2008

This template is a message box for article pages, it will be automatically transcluded by the {{Mbox}} tag.

Usage

Simple usage example:

{{ambox | text = Some text.}}


Complex example:

{{ambox
| type      = style
| image     = [[Image:Wiki_question.png|40px]]
| style     = width: 400px; 
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}

Article message box types

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