Template:WarningBox

From Zandronum Wiki
Revision as of 21:55, 2 January 2023 by DrinkyBird (talk | contribs)

Creates a customisable warning box

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Contentcontent

Wikitext content of the warning box

Contentrequired
Imageimage

Image file name

Filesuggested
Image sizeimagesize

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

Default
46
Numberoptional
Text colourcolor

Hex colour value for the text

Default
000000
Lineoptional
Background colourbackground

Hex colour value for the background

Default
FFFFFF
Lineoptional
Border colourborder

Hex colour value for the border

Default
000000
Lineoptional

Examples

  1. {{WarningBox
    | content = Test
    }}

    becomes

    Test
  2. {{WarningBox
    | image = Unkna0.png
    | content = Test
    | background = EFEFEF
    }}

    becomes

    Test
  3. {{WarningBox
    | image = Za exe2 logo cropped.png
    | content = This article documents a [[Zandronum]]-specific [[ACS]] feature which may not be supported by [[doomwiki:ZDoom|ZDoom]] and its other child ports.
    | background = F0FFD1
    | border = 41443A
    | color = 000000
    }}

    becomes

    This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

The template itself

{{{content}}}