Jump to content

Template:Warning: Difference between revisions

From NixOS Wiki
imported>Samueldr
No edit summary
DoggoBit (talk | contribs)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{Notice|icon={{{icon|⚠}}}|color=var(--border-color-warning)|background=var(--background-color-warning-subtle)|'''Warning:''' {{{1}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
== Usage ==
Warning box:
<pre>
<nowiki>{{warning|text=The text of your warning message}}</nowiki>
</pre>
{{warning|text=The text of your warning message}}
 
</noinclude><includeonly><table cellspacing="0" cellpadding="0" border="0" style="background: transparent; margin-top:0.5em;border:1px #b32424 solid;padding:0.5em;background-color: #fee7e6"><tr><td nowrap="nowrap" valign="top">''' Warning:''' {{{text|{{{1}}}}}}</td></tr></table></includeonly>

Latest revision as of 15:30, 5 June 2025

Template Documentation [edit source| uses| help]

This template can be used to display a warning to the reader, disrupting the normal reading flow. It should be used sparingly; an overabundance of warnings is functionally the same as no warnings whatsoever. However, should the reader need to proceed with caution, a warning can bring their attention to important details.

⚠︎
Warning: Be cautious about overusing warnings. Using too many warnings within a page can be distracting, or can even have the opposite effect, the reader ending up ignoring them.

Usage

Simply include this template within the page, along with the warning message:

{{Warning|Something to watch out for.}}