Template:WarningBox: Difference between revisions

From Zandronum Wiki
No edit summary
Tag: Source edit
No edit summary
Tag: Source edit
Line 5: Line 5:
"border": {
"border": {
"label": "Border colour",
"label": "Border colour",
"description": "CSS colour value for the border",
"description": "Hex colour value for the border",
"type": "line",
"type": "line",
"default": "#000000"
"default": "000000"
},
},
"background": {
"background": {
"label": "Background colour",
"label": "Background colour",
"description": "CSS colour value for the background",
"description": "Hex colour value for the background",
"type": "line",
"type": "line",
"default": "#FFFFFF"
"default": "FFFFFF"
},
},
"color": {
"color": {
"label": "Text colour",
"label": "Text colour",
"description": "CSS colour value for the text",
"description": "Hex colour value for the text",
"type": "line",
"type": "line",
"default": "#000000"
"default": "000000"
},
},
"image": {
"image": {
Line 32: Line 32:
"type": "content",
"type": "content",
"required": true
"required": true
},
"imagesize": {
"label": "Image size",
"description": "Pixel size of the image - this affects both width and height",
"type": "number",
"default": "46"
}
}
},
},
Line 42: Line 48:
| image = Unkna0.png
| image = Unkna0.png
| content = Test
| content = Test
| background = #EFEFEF
| 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}}} | [[File:{{{image}}}|46x46px]] }}
| style="width: {{#if: {{{imagesize|}}} | {{{imagesize}}} | 46}}px" | {{#if: {{{image|}}} | [[File:{{{image}}}|{{#if: {{{imagesize|}}} | {{{imagesize}}} | 46}}x{{#if: {{{imagesize|}}} | {{{imagesize}}} | 46}}px]] }}
| {{{content}}}
| {{{content}}}
|}
|}

Revision as of 22:46, 2 January 2023

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Border colourborder

Hex colour value for the border

Default
000000
Lineoptional
Background colourbackground

Hex colour value for the background

Default
FFFFFF
Lineoptional
Text colourcolor

Hex colour value for the text

Default
000000
Lineoptional
Imageimage

Image file name

Filesuggested
Contentcontent

Wikitext content of the warning box

Contentrequired
Image sizeimagesize

Pixel size of the image - this affects both width and height

Default
46
Numberoptional

Examples

Test

{{{content}}}