Template:Warning: Difference between revisions

From CTMS
(Added TemplateData)
m (Added TemplateData)
 
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative; top: -2px;">[[Image:Attention niels epting.png|18px|Warning|link=]]</span> '''Warning''': {{#if: {{{1|}}}|</td><td valign="top" style="padding-left:0.5em;">{{{1|}}}</td></tr></table>}}</includeonly><noinclude>
<includeonly>{{#if: {{{1|}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative; top: -2px;">[[Image:Attention niels epting.png|18px|Warning|link=]]</span> '''Warning''': {{#if: {{{1|}}}|</td><td valign="top" style="padding-left:0.5em;">{{{1|}}}</td></tr></table>}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
    "description": "The following displays the warning icon and the word 'Warning:'.  You can follow this with whatever text/images/markup you like. {{warning}} Don't do that!. Alternatively, you can pass the warning text as the parameter, for example {{Warning|Don't do that!}}.",
"description": "The following displays the warning icon and the word 'Warning:'.  You can follow this with whatever text/images/markup you like. {{warning}} Don't do that!. Alternatively, you can pass the warning text as the parameter, for example {{Warning|Don't do that!}}.",
    "params": {
"params": {
        "Text": {
"1": {
            "label": "Text to be included",
"label": "Text to be included",
            "type": "string",
"description": "Warning text to be displayed in-line and indented.",
            "required": false,
"type": "string"
            "description": "Warning text to be displayed in-line and indented."
}
        }
},
    }
"paramOrder": [
"1"
]
}
}
</templatedata>
</templatedata>
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 08:16, 26 July 2024

The following displays the warning icon and the word 'Warning:'. You can follow this with whatever text/images/markup you like. {{warning}} Don't do that!. Alternatively, you can pass the warning text as the parameter, for example {{Warning|Don't do that!}}.

Template parameters

ParameterDescriptionTypeStatus
Text to be included1

Warning text to be displayed in-line and indented.

Stringoptional