Difference between revisions of "Template:Ambox"

From comp.tf
Jump to navigation Jump to search
Line 1: Line 1:
 
{| table class="plainlinks" style="margin: 0px 10%; border: 1px solid #aaa; background: #fbfbfb; "
 
{| table class="plainlinks" style="margin: 0px 10%; border: 1px solid #aaa; background: #fbfbfb; "
| style="border-left: 10px solid {{#switch:{{{type}}}
+
| style="border-left: 10px solid #{{#switch:{{{type}}}
  | notice = #1e90ff
+
  | notice = 1e90ff
  | style = #ffcc00
+
  | style = ffcc00
  | content = #f28500
+
  | content = f28500
  | delete = #b22222
+
  | delete = b22222
  | black
+
  | 000
 
}}; padding: 0 {{{#if:{{{image|}}}|0.5em|}};" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{!}}56px]]|}}
 
}}; padding: 0 {{{#if:{{{image|}}}|0.5em|}};" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{!}}56px]]|}}
 
| style="width: 100%" | '''{{{header}}}'''<br><span style="font-size: 95%; ">{{{smalltext}}}</span>
 
| style="width: 100%" | '''{{{header}}}'''<br><span style="font-size: 95%; ">{{{smalltext}}}</span>

Revision as of 18:05, 6 July 2013

Usage

An ambox, or article message box, can be added to notify users of specific messages regarding the article.

Parameters

  • type - Selects the type of the ambox. Available options:
    • notice - Used for notices.
    • style - Used for style guides.
    • content - Used for content suggestions.
    • delete - Used for deletion templates.
  • image - Filename of the image used in the ambox.
  • header - Used for the first line of the ambox.
  • smalltext - Used for the later lines of the ambox.