Template:Warning: Difference between revisions

From Artisans Asylum Wiki
No edit summary
(Added templatedata)
Line 24: Line 24:


(This is a subset of the [https://www.mediawiki.org/wiki/Template:Warning MediaWiki Warning Template])
(This is a subset of the [https://www.mediawiki.org/wiki/Template:Warning MediaWiki Warning Template])
<templatedata>
{
    "description": "Adds a warning box to a page.",
    "params": {
        "warning": {
            "label": "Warning message",
            "type": "string",
            "required": true,
            "description": "Warning message (i.e. \"Look out below!\")",
            "aliases": ["1"]
        }
    }
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 11:15, 2 February 2024

Warning Warning:


Warning Template

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

Wiki code:

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


Example

Here is a longer example.

Wiki code:

{{warning|1= 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 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 messagewarning 1

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

Stringrequired