Template:Warning: Difference between revisions

Template page
No edit summary
m (why)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{| style="width: 100%; border: 1px solid #aaa; border-left: 10px solid {{{color|#FF7F00}}}; margin: 0 auto;" class="{{{class|}}}"
{| style="width: 100%; border-left: 12px solid {{{color|#FF7F00}}}; margin: 0 auto; font-size: 0.875em; background-color: var(--color-surface-1); box-shadow: var(--card-shadow-dlw); border-radius: var(--border-radius--medium); padding: 15px;"
| [[File:{{{image|Ambox warning.png}}}|link=|40x40px]]
| [[File:{{{image|Ambox warning.png}}}|link=|40x40px]]
|style="padding:0 0.5em"| {{{1|This is a notification template. To use it in any page, place <code><nowiki>{{warning|Text of the warning}}</nowiki></code> in the page.<br>It is possible to customize the icon image, like so: <code><nowiki>{{warning|Text of the warning|image=Another_icon.png}}</nowiki></code>.}}}
|style="padding:0 0.5em"| {{{1|This is a notification template. To use it in any page, place <code><nowiki>{{warning|Text of the warning}}</nowiki></code> in the page.<br>It is possible to customize the icon image, like so: <code><nowiki>{{warning|Text of the warning|image=Another_icon.png}}</nowiki></code>.}}}
|}<noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{doc}}</noinclude>
|}

Latest revision as of 08:24, 10 December 2023

Ambox warning.png This is a notification template. To use it in any page, place {{warning|Text of the warning}} in the page.
It is possible to customize the icon image, like so: {{warning|Text of the warning|image=Another_icon.png}}.