Template:WarningBox: Difference between revisions
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 37: | Line 37: | ||
} | } | ||
</templatedata> | </templatedata> | ||
== Examples == | |||
{{WarningBox | |||
| image = Unkna0.png | |||
| content = Test | |||
| background = #EFEFEF | |||
}} | |||
</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" | </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]]}} | | {{#if: {{{image|}}}|[[File:{{{image}}}|46x46px]]}} | ||
| {{{content}}} | | {{{content}}} | ||
|} | |} |
Revision as of 21:32, 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 |
Examples
- 000000; background-color:
- EFEFEF; color:
- 000000; padding: 0.4em 1em; width: 75%; margin: 1em auto; text-align: center; border-radius: 3px"
Test |
- 000000; background-color:
- FFFFFF; color:
- 000000; padding: 0.4em 1em; width: 75%; margin: 1em auto; text-align: center; border-radius: 3px"
{{{content}}} |