Jump to content

Template:Warning: Difference between revisions

From NixOS Wiki
Sdht0 (talk | contribs)
Add proper sections
DoggoBit (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user 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>
{{Template}}
 
==About==
A ''warning'' box used to report potential danger.
 
==Usage==
 
{{ic|<nowiki>{{Warning|This text should be heeded.}}</nowiki>}}
 
==Example==
 
{{Warning|This text should be heeded.}}
 
</noinclude><includeonly>{{META Box Red|Warning:|{{{text|{{{1|{{META Error}}}}}}}}}}</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.}}