Difference between revisions of "Template:Ambox"

From Wiki - Scioly.org
Jump to: navigation, search
(Advancing title chekc)
(Fixing up title issue)
Line 4: Line 4:
 
|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}}}}.png|40px]]}}
 
|-
 
|-
| '''{{#if: {{{title|}}}|{{{title|}}}}}''' {{{text|The main text goes here.}}}
+
| '''{{#if: {{{title|}}}|{{{title|}}}}} ''' {{{text|The main text goes here.}}}
 
|}
 
|}
 
</div><noinclude>{{Template:Ambox/doc}}</noinclude><noinclude>[[Category:Organization Templates]]</noinclude>
 
</div><noinclude>{{Template:Ambox/doc}}</noinclude><noinclude>[[Category:Organization Templates]]</noinclude>

Revision as of 22:36, 5 August 2020

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.