Template:WarningBox: Difference between revisions

From Zandronum Wiki
No edit summary
Tag: Source edit
No edit summary
Tag: Source edit
Line 44: Line 44:
| 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]]}}
| {{#if: {{{image}}} | [[File:{{{image}}}|46x46px]] }}
| {{{content}}}
| {{{content}}}
|}
|}

Revision as of 22:42, 2 January 2023

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Border colourborder

CSS colour value for the border

Default
#000000
Lineoptional
Background colourbackground

CSS colour value for the background

Default
#FFFFFF
Lineoptional
Text colourcolor

CSS colour value for the text

Default
#000000
Lineoptional
Imageimage

Image file name

Filesuggested
Contentcontent

Wikitext content of the warning box

Contentrequired

Examples

  1. 000000; background-color:
  2. EFEFEF; color:
  3. 000000; padding: 0.4em 1em; width: 75%; margin: 1em auto; text-align: center; border-radius: 3px"
Test

  1. 000000; background-color:
  2. FFFFFF; color:
  3. 000000; padding: 0.4em 1em; width: 75%; margin: 1em auto; text-align: center; border-radius: 3px"
[[File:{{{image}}}|46x46px]] {{{content}}}