{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}{{#if: | {{#ifeq: doc | doc | |
}} }}
[[File:Template-{{#if: | no | {{#if: | bad }} }}info.png|50px|bottom]] Documentation
{{#if: | This template has no documentation. If you know how to use this template, please add some.{{#ifeq: doc | doc | |}} |{{#if: | This template's documentation has been marked as bad. Please improve or add to it.{{#ifeq: doc | doc | |}}}} }}
[purge]
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
x20px}} | I am type
{{#if:I am info|{{#ifeq:|tiny|| I am info |
Tiny
x20px}} | I am tiny
{{#if:|{{#ifeq:tiny|tiny|| {{{info}}} |
Red + image
File:Icon-boilerplate.png | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
Yellow
x20px}} | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
Green
x20px}} | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
Purple
x20px}} | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
Blue
x20px}} | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
Orange
x20px}} | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
Gray
x20px}} | I am type
{{#if:* I am info|{{#ifeq:|tiny||
|
{{#ifeq: doc | doc |
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.
|The above documentation is transcluded from Template:Ambox/doc/doc. (edit | history)
}}