Difference between revisions of "Template:Ambox/doc"
Jump to navigation
Jump to search
m (update category tag) |
(New documentation for Ambox template) |
||
Line 1: | Line 1: | ||
− | + | 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 = Icon-template.png |
− | | | + | | format = tiny |
}} | }} | ||
+ | |||
+ | === Red + image === | ||
{{Ambox | {{Ambox | ||
− | | | + | | image = [[Image:Icon-boilerplate.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:Template | ||
− | </ |
Revision as of 03:25, 1 August 2019
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
|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
Default
I am type
I am info |
Tiny
x20px | I am tiny |
Red + image
File:Icon-boilerplate.png | I am type
|
Yellow
I am type
|
Green
I am type
|
Purple
I am type
|
Blue
I am type
|
Orange
I am type
|
Gray
I am type
|