MrBartusek (talk | contribs) (make Ambox bigger and more readable) |
MrBartusek (talk | contribs) m (make title less obvious) |
||
Line 11: | Line 11: | ||
<tr> |
<tr> |
||
<td class="ambox-image" style="/* HACK */ padding: 10px 0;>{{{image|[[File:{{{icon|Information.png{{!}}48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=]]}}}</td> |
<td class="ambox-image" style="/* HACK */ padding: 10px 0;>{{{image|[[File:{{{icon|Information.png{{!}}48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=]]}}}</td> |
||
− | <td class="ambox-text" style="font-size: 16px |
+ | <td class="ambox-text" style="font-size: 16px;">{{{type|}}} |
− | {{#if:{{{info|}}}|{{#ifeq:{{{format|}}}|tiny||<div class="amsmalltext" style="font-size: |
+ | {{#if:{{{info|}}}|{{#ifeq:{{{format|}}}|tiny||<div class="amsmalltext" style="font-size: 15px; margin: -0.5em 0;"> |
{{{info}}} |
{{{info}}} |
||
</div>}}}}</td></tr></table></includeonly> |
</div>}}}}</td></tr></table></includeonly> |
Revision as of 21:46, 10 July 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 |type= value.
|
|
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
|
{{Ambox | border = yellow | type = I am type | info = * I am info }}
Produces:
![]() |
I am type
|
{{Ambox | border = green | type = I am type | info = * I am info }}
Produces:
![]() |
I am type
|
{{Ambox | border = purple | type = I am type | info = * I am info }}
Produces:
![]() |
I am type
|
{{Ambox | border = blue | type = I am type | info = * I am info }}
Produces:
![]() |
I am type
|
{{Ambox | border = orange | type = I am type | info = * I am info }}
Produces:
![]() |
I am type
|
{{Ambox | border = gray | type = I am type | info = * I am info }}
Produces:
![]() |
I am type
|
The above documentation is transcluded from Template:Ambox/doc. (edit | history)