Template:Warn: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
(Created page with "<div style="background-color:#FFFFFF; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #c8ccd1; border-top-color:{{{Color}}}; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">35px|right|link={{{Warning text}}}<br/></div> <noinclude> <templatedata> { "params": { "Warning text": { "description": "The warning information to give the user", "type": "string", "required": true, "...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="background-color:#FFFFFF; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #c8ccd1; border-top-color:{{{Color}}}; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon information-progressive.svg|35px|right|link=]]{{{Warning text}}}<br/></div>
<div style="background-color:#FFFFFF; padding: 1.2rem; margin: 0.5em 0; border: 1px solid #c8ccd1; border-top-color:{{{Color}}}; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">
{| style=width:100%
| style="width:100% | {{{Warning text}}}
| [[File:{{{Icon|OOjs UI icon information-progressive.svg}}}|35px|link=]]
|}
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 14: Line 19:
"type": "string",
"type": "string",
"default": "#36C"
"default": "#36C"
},
"Icon": {
"description": "The image used as an icon displayed at right. Omit the ''File:'' prefix.",
"type": "string",
"default": "OOjs UI icon information-progressive.svg"
}
}
},
},
Line 19: Line 29:
}
}
</templatedata>
</templatedata>
</noinclude>
[[Category:Warning Templates]]</noinclude>

Latest revision as of 18:19, 17 February 2022

{{{Warning text}}}

A top floating warning box to alert users when viewing a page

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Warning textWarning text

The warning information to give the user

Default
Warning text here
Stringrequired
ColorColor

The color of the warning box accents

Default
#36C
Stringoptional
IconIcon

The image used as an icon displayed at right. Omit the ''File:'' prefix.

Default
OOjs UI icon information-progressive.svg
Stringoptional