m |
m |
||
Line 3: | Line 3: | ||
==Usage== |
==Usage== |
||
− | <pre>{{Ambox |
||
− | |icon= |
||
− | |border= |
||
− | |type= |
||
− | |info= |
||
− | |border= |
||
− | |format= |
||
− | |style= |
||
− | }}</pre> |
||
− | |||
{{TemplateArguments |
{{TemplateArguments |
||
|arg1= icon |
|arg1= icon |
Revision as of 02:01, 4 May 2020
This template is a base template for many notice templates.
Usage
{{Ambox
| icon =
| image =
| type = *
| info =
| border =
| format =
| style =
}}
Note: The *
symbol denotes required arguments
Argument | Description | Default Value |
---|---|---|
icon
|
Image file name for use on the left, e.g. "Stub.png" | |
image
|
Left (image) cell content, overrides
|
|
type *
|
The top line of test | |
info
|
List of extra info | |
border
|
The colour of the Ambox border. Possible Values:
|
green |
format
|
Set value to tiny to display a small, left-aligned box showing only the
|
|
style
|
Any extra HTML style attributes |
Examples
{{Ambox | type = I am type | info = I am info }}
Produces:
I am type
I am info
{{Ambox | type = I am tiny | icon = Icon-template.png | format = tiny }}
Prodcues:
I am tiny
{{Ambox | image = [[Image:Icon-boilerplate.png]] | border = red | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
{{Ambox | border = yellow | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
{{Ambox | border = green | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
{{Ambox | border = purple | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
{{Ambox | border = blue | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
{{Ambox | border = orange | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
{{Ambox | border = gray | type = I am type | info = * I am info }}
Produces:
I am type
* I am info
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.