Template:WarningBox: Difference between revisions
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"border": { | |||
{{ | "label": "Border colour", | ||
"description": "CSS colour value for the border", | |||
"type": "line", | |||
"default": "#000000" | |||
}, | |||
</noinclude> | "background": { | ||
"label": "Background colour", | |||
"description": "CSS colour value for the background", | |||
"type": "line", | |||
"default": "#FFFFFF" | |||
}, | |||
"color": { | |||
"label": "Text colour", | |||
"description": "CSS colour value for the text", | |||
"type": "line", | |||
"default": "#000000" | |||
{{{ | }, | ||
"image": { | |||
"label": "Image", | |||
"description": "Image file name", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"content": { | |||
"label": "Content", | |||
"description": "Wikitext content of the warning box", | |||
"type": "content", | |||
"required": true | |||
} | |||
}, | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude>{| align=center border=0 cellpadding=4 cellspacing=4 style="border: solid 1px {{#if:{{{border|}}}|{{{border}}}|#000000}}; background-color: {{#if:{{{background|}}}|{{{background}}}|#FFFFFF}}; color: {{#if:{{{color|}}}|{{{color}}}|#000000}}; padding: 0.4em 1em; width: 75%; margin: 1em auto; text-align: center; border-radius: 3px" | |||
|- | |||
| {{#if: {{{image|}}}|[[{{{image}}}|46x46px]]}} | |||
| {{{content}}} | |||
|} |
Revision as of 21:29, 2 January 2023
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Border colour | border | CSS colour value for the border
| Line | optional |
Background colour | background | CSS colour value for the background
| Line | optional |
Text colour | color | CSS colour value for the text
| Line | optional |
Image | image | Image file name | File | suggested |
Content | content | Wikitext content of the warning box | Content | required |
- 000000; background-color:
- FFFFFF; color:
- 000000; padding: 0.4em 1em; width: 75%; margin: 1em auto; text-align: center; border-radius: 3px"
{{{content}}} |