Difference between revisions of "Template:Ambox/doc"
Jump to navigation
Jump to search
(Created page with "<noinclude>{{Documentation subpage}}</noinclude> This is the {{Tl|Ambox}} or '''Article message box''' meta-template. === Type preview === {{Ambox |nocat=true | type = speed...") |
|||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{ | + | <noinclude> |
− | + | {{Modal mark for deletion}} | |
+ | </noinclude> | ||
− | === | + | The template is a notice template |
+ | |||
+ | == Named parameters == | ||
+ | :; |icon=: image file name for use on the left, e.g. "Stub.png" | ||
+ | :; |image=: left (image) cell content, overrides <code>|icon=</code> if provided. | ||
+ | :; |type=: top line text | ||
+ | :; |info=: list of extra info | ||
+ | :; |border=: border colour (defaults to green) | ||
+ | ::; red : ambox-red (serious issue) | ||
+ | ::; yellow : ambox-yellow (mild issue) | ||
+ | ::; green : ambox-green (good!) | ||
+ | ::; purple : ambox-purple (technical change) | ||
+ | ::; blue : ambox-blue (notice) | ||
+ | ::; orange : ambox-orange (stub colour) | ||
+ | ::; gray : ambox-gray | ||
+ | :; |format: <code>tiny</code> to display a small, left-aligned box showing only the <code>|type=</code> value; any other value displays the full ambox. | ||
+ | :; |style=: extra style parameters ''(unlikely to be used)'' | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | === Default === | ||
{{Ambox | {{Ambox | ||
− | | | + | | type = I am type |
− | + | | info = I am info | |
− | | | ||
}} | }} | ||
+ | |||
+ | === Tiny === | ||
{{Ambox | {{Ambox | ||
− | | | + | | type = I am tiny |
− | | | + | | icon = Bear east.png |
− | | | + | | format = tiny |
}} | }} | ||
+ | |||
+ | === Red + image === | ||
{{Ambox | {{Ambox | ||
− | | | + | | image = [[File:SniperRifle.png]] |
− | | | + | | border = red |
− | | | + | | type = I am type |
+ | | info = | ||
+ | * I am info | ||
}} | }} | ||
+ | |||
+ | === Yellow === | ||
{{Ambox | {{Ambox | ||
− | | | + | | border = yellow |
− | | type | + | | type = I am type |
− | | | + | | info = |
+ | * I am info | ||
}} | }} | ||
− | {{ | + | |
− | | | + | === Green === |
− | | type | + | {{Ambox |
− | | | + | | border = green |
+ | | type = I am type | ||
+ | | info = | ||
+ | * I am info | ||
}} | }} | ||
+ | |||
+ | === Purple === | ||
{{Ambox | {{Ambox | ||
− | | | + | | border = purple |
− | | type | + | | type = I am type |
− | | | + | | info = |
+ | * I am info | ||
}} | }} | ||
+ | |||
+ | === Blue === | ||
{{Ambox | {{Ambox | ||
− | | | + | | border = blue |
− | | type | + | | type = I am type |
− | | | + | | info = |
+ | * I am info | ||
}} | }} | ||
− | === | + | === Orange === |
− | {{ | + | {{Ambox |
− | + | | border = orange | |
− | + | | type = I am type | |
− | + | | info = | |
− | * | + | * I am info |
− | + | }} | |
+ | === Gray === | ||
+ | {{Ambox | ||
+ | | border = gray | ||
+ | | type = I am type | ||
+ | | info = | ||
+ | * I am info | ||
+ | }} | ||
<includeonly> | <includeonly> | ||
− | + | [[Category:Notice templates|{{PAGENAME}}]]</includeonly><noinclude> | |
− | {{ | + | [[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
− | [[Category: | ||
− | </ |
Latest revision as of 00:32, 16 December 2021
This page has been marked as a candidate for deletion. Reason: Please add a reason. If you disagree with its deletion, please explain why in the Discussion page. Remember to check What Links Here and the Page History before deleting. |
The template is a notice template
Named parameters[edit]
- |icon=
- image file name for use on the left, e.g. "Stub.png"
- |image=
- left (image) cell content, overrides
|icon=
if provided. - |type=
- top line text
- |info=
- list of extra info
- |border=
- border colour (defaults to green)
- red
- ambox-red (serious issue)
- yellow
- ambox-yellow (mild issue)
- green
- ambox-green (good!)
- purple
- ambox-purple (technical change)
- blue
- ambox-blue (notice)
- orange
- ambox-orange (stub colour)
- gray
- ambox-gray
- |format
tiny
to display a small, left-aligned box showing only the|type=
value; any other value displays the full ambox.- |style=
- extra style parameters (unlikely to be used)
Examples[edit]
Default[edit]
I am type
I am info |
Tiny[edit]
I am tiny |
Red + image[edit]
I am type
|
Yellow[edit]
I am type
|
Green[edit]
I am type
|
Purple[edit]
I am type
|
Blue[edit]
I am type
|
Orange[edit]
I am type
|
Gray[edit]
I am type
|