Difference between revisions of "Template:Ambox"
Jump to navigation
Jump to search
m (1 revision) |
(Can't be deleted - rwbox is dependent on it.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <onlyinclude><includeonly><table style="{{{style|}}}" class="plainlinks ambox {{#ifeq:{{{format|}}}|tiny|ambox-tiny}} {{#switch:{{{border|}}} | |
− | + | | red = ambox-red | |
− | + | | orange = ambox-orange | |
− | + | | yellow = ambox-yellow | |
− | + | | purple = ambox-purple | |
− | + | | blue = ambox-blue | |
− | + | | green = ambox-green | |
− | + | | gray = ambox-gray | |
− | + | | #default = ambox-green | |
− | + | }} {{{class|}}}"> | |
− | + | <tr> | |
− | | | + | <td class="ambox-image">{{{image|[[File:{{{icon|Information.png{{!}}48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=]]}}}</td> |
− | | | + | <td class="ambox-text">{{{type|}}} |
− | | | + | {{#if:{{{info|}}}|{{#ifeq:{{{format|}}}|tiny||<div class="amsmalltext"> |
− | + | {{{info}}} | |
− | | | + | </div>}}}}</td></tr></table></includeonly></onlyinclude><noinclude> |
− | | | + | {{documentation}} |
− | | | + | [[Category:Notice templates]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 05:17, 26 July 2022
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
|
The above documentation is transcluded from Template:Ambox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |