Difference between revisions of "Template:Ambox"

From Wiki - Scioly.org
Jump to: navigation, search
(Testing column width expansion)
(PNG to SVG)
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{|
 
{|
 
|-
 
|-
|style="padding-right: 6px; padding-left: 3px; width:40px;" 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]]}}
+
|style="padding-right: 6px; padding-left: 3px; width:40px;" rowspan="2"|{{#if: {{{image|}}}|{{{image|}}}|[[File:{{#if: {{{img|}}}|{{{img|}}}|{{#ifeq: {{{type|}}}|cleanup|Edit-clear.svg|{{#ifeq: {{{type|}}}|protect|Semi-protection-shackle-keyhole.svg|{{#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 05:39, 23 January 2021

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
speedy
delete
content
style
notice
move
protection

Parameters

type - the type of ambox
image - the image to use in the ambox
issue - the issue featured in the ambox
fix - the fix featured in the ambox
text - custom text featured in the ambox

Examples

Code Result
{{Ambox
| type = style
| issue = This page is '''incomplete'''.
| fix = It does not cover all the important aspects of this subject. You can help by adding information where relevant.
}}
{{Ambox
| type = info
| image = [[File:Ambox current red.png|40px|link=]]
| issue = 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.
}}
{{Ambox
| type = move
| issue = This page has been proposed to be moved to '''Article B'''.
| fix = Please view the proposal on the talk page for more information.
}}

Available Templates

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