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 ...)
m (4 revisions imported)
 
(211 intermediate revisions by 2 users not shown)
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 ===
Line 85: Line 85:
 
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
 
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
  
{{ambox
+
 
| type  = speedy
 
| text  = type=<u>speedy</u> – Speedy deletion issues, such as {{tl|db-g1}} and {{tl|db-g3}}.
 
}}
 
 
{{ambox
 
{{ambox
 
| type  = delete
 
| type  = delete

Latest revision as of 03:34, 10 August 2019

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.