Difference between revisions of "Template:Ambox"

From Scioly.org
Jump to: navigation, search
m (Replacing an old documentation reference with the Documentation template.)
(Created another type for `checked`.)
Line 1: Line 1:
<div style="border-left: 10px solid {{#switch:{{{type|info}}}|alert=red|warn=orange|cleanup=gold|info=steelblue |protect=gray}}; background-color:#{{#switch:{{{type|info}}}|alert=ffdddd|warn= ffedd4|cleanup=ffffc2|info=dff9f9|protect=d3d3d3}}; text-align:left; padding: 2px; margin: 2px;" class="plainlinks">
+
<div style="border-left: 10px solid {{#switch:{{{type|info}}}|alert=red|warn=orange|cleanup=gold|info=steelblue|protect=gray|checked=#439c43}}; background-color:#{{#switch:{{{type|info}}}|alert=ffdddd|warn= ffedd4|cleanup=ffffc2|info=dff9f9|protect=d3d3d3|checked=ccffcc}}; text-align:left; padding: 2px; margin: 2px;" class="plainlinks">
 
{|
 
{|
 
|-
 
|-
|style="padding-right: 6px; padding-left: 3px;" rowspan="2"|{{#if: {{{image|}}}|{{{image|}}}|[[File:{{#if: {{{img|}}}|{{{img|}}}|{{#switch:{{{type|info}}}|alert=Nuvola apps important|warn=Information orange|cleanup=Edit-clear|info=Information|protect=Semi-protection-shackle-keyhole}}}}.png|40px]]}}
+
|style="padding-right: 6px; padding-left: 3px;" rowspan="2"|{{#if: {{{image|}}}|{{{image|}}}|[[File:{{#if: {{{img|}}}|{{{img|}}}|{{#switch:{{{type|info}}}|alert=Nuvola apps important|warn=Information orange|cleanup=Edit-clear|info=Information|protect=Semi-protection-shackle-keyhole|checked=Checkmark green}}}}.png|40px]]}}
 
|-
 
|-
 
| '''{{#if: {{{title|}}}|{{{title|}}}}} ''' {{{text|The main text goes here.}}}
 
| '''{{#if: {{{title|}}}|{{{title|}}}}} ''' {{{text|The main text goes here.}}}
 
|}
 
|}
 
</div><noinclude>{{Documentation}}</noinclude><noinclude>[[Category:Organization Templates]]</noinclude>
 
</div><noinclude>{{Documentation}}</noinclude><noinclude>[[Category:Organization Templates]]</noinclude>

Revision as of 00:21, 6 August 2020

Template documentation[view] [edit] [history] [purge]

The Ambox template is a template used to create article message boxes. These can be placed throughout articles to indicate various pieces of information about the article, such as areas that need work, areas that should receive special attention, or suggestions about the administration of an article. They assist both readers and editors in understanding the scope of an article, along with other information.

Types

Type Result
alert
warn
cleanup
checked
info
protect

Parameters

type - the type of Ambox
img (optional) - the image that should be used to replace the default (note that this is currently only supports PNG images, and is the name of the PNG image - for example, File:Image.png could be used in Ambox by changing the img parameter to "Image"
title - the title featured in the Ambox (the bold starting text)
text - the text following the title in the Ambox (the text after the bold starting text)

Examples

Code Result
{{Ambox
|type=cleanup
|title=This page is incomplete.
|text=It does not cover all the important aspects of this subject. You can help by adding information where relevant.
}}
{{Ambox
|type=protect
|title=This page is protected to editing by administrators only.
|text=If you believe a change should be made and are not an administrator, please [https://scioly.org/forums/ucp.php?i=pm&mode=compose&g=5 message the administrators on the forums].
}}
{{Ambox
|type=info
|img=Ambox current red
|title=This article documents a current event.
|text=Information may change rapidly as the event progresses. The latest updates to this article may not reflect the most recent information released. If this page is not updated to the most recent standards, feel free to edit it in any capacity. Please remember that Scioly.org is not the official place to get information on tournament changes.
}}

Available Templates

For a list of available amboxes, see Template:Ambox/Index.