Template:Warning

From Artisans Asylum Wiki
Revision as of 13:46, 2 February 2024 by Acharlwood (talk | contribs) (Template code cleanup and simplification)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Warning {{{text}}}


Warning Template

The following displays the warning icon and the word "Warning: " followed by the included text.

Wiki code:

{{warning|text=Don't do that!}} 
Warning Don't do that!


Example

Here is a longer example.

Wiki code:

{{warning|text= Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.}} 


Warning Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.


(This is a subset of the MediaWiki Warning Template)

Adds a warning box to a page.

Template parameters

ParameterDescriptionTypeStatus
Warning messagetext 1

Warning message (i.e. "Look out below!")

Stringrequired