Difference between revisions of "Template:Ambox"

From comp.tf
Jump to navigation Jump to search
(Added template)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| table class="plainlinks" style="margin: 0px 10%; border: 1px solid #aaa; background: #fbfbfb; "
+
{| table class="plainlinks ambox"
| style="border-left: 10px solid {{#switch:{{{type}}}
+
| class="{{#switch:{{{type}}}
  | notice = #1e90ff
+
  | notice = notice
  | style = #ffcc00
+
  | style = style
  | content = #f28500
+
  | content = content
  | delete = #b22222
+
  | delete = delete
  | black
+
  | default
}}; padding: 0 0.5em; " | [[Image:{{{image|}}}|56px]]
+
}} {{#if:{{{image|}}}|image|}}" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{!}}56px]]|}}
| style="width: 100%" | '''{{{header}}}'''<br><span style="font-size: 95%; ">{{{smalltext}}}</span>
+
| class="message" | '''{{{header}}}'''<br><span class="smalltext">{{{smalltext|}}}</span>
 
|}
 
|}
 
<noinclude>
 
<noinclude>

Latest revision as of 09:11, 31 July 2013

Usage[edit]

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

Parameters[edit]

  • 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.