Template:Security Warning: Difference between revisions

From NixOS Wiki
imported>Samueldr
No edit summary
Overhaul security template
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{Template}}{{DISPLAYTITLE:Template:security warning}}
<noinclude>{{Template}}


== Usage ==
== Usage ==


<nowiki>{{Security Warning|reason|heading=Teplacement Title}}</nowiki>
{{ic|<nowiki>{{Security Warning|This configuration may be unsafe.}}</nowiki>}}


== Example ==
{{ic|<nowiki>{{Security Warning|Stop what you're doing!|heading=This is dangerous!}}</nowiki>}}


<nowiki>{{Security Warning|This is just a demonstration template.}}</nowiki>
{{ic|<nowiki>{{Security Warning|Don't do anything that you might regret!|type=lowPrio}}</nowiki>}}


{{Security Warning|This is just a demonstration template.}}
{{ic|<nowiki>{{Security Warning|This is safe by default!|type=secure}}</nowiki>}}


</noinclude><includeonly>{{META Message
== Example ==
|border = #ED1515
{{Security Warning|This configuration may be unsafe.}}
|signal         = [[File:Breeze-security-low.png|link=]]
{{Security Warning|Stop what you're doing!|heading=This is dangerous!}}
|heading         = {{{heading|Warning}}}
{{Security Warning|Don't do anything that you might regret!|type=lowPrio}}
|message         = {{{1|{{{message}}}}}}
{{Security Warning|This is safe by default!|type=secure}}
}}[[Category:Pages or sections flagged with Template:Expansion]]</includeonly>
</noinclude>
<includeonly>{{META Message
|border = {{#ifeq: hiPrio | {{{type|hiPrio}}} | #ED1515 }}
          {{#ifeq: lowPrio | {{{type|hiPrio}}} | #FFC35A }}
          {{#ifeq: secure | {{{type|hiPrio}}} | #78DA06 }}
|signal = [[File:Breeze-security-{{#ifeq: hiPrio | {{{type|hiPrio}}} |low}}{{#ifeq: lowPrio | {{{type|hiPrio}}} |medium}}{{#ifeq: secure | {{{type|hiPrio}}} |high}}.svg|link=]]
|heading = {{#ifeq: hiPrio | {{{type|hiPrio}}} | {{{heading|Warning}}}}}
          {{#ifeq: lowPrio | {{{type|hiPrio}}} | {{{heading|Caution}}}}}
          {{#ifeq: secure | {{{type|hiPrio}}} | {{{heading|Security Information}}}}}
|message = {{{1|{{{message}}}}}}
}}[[Category:Pages or sections flagged with Template:Security Warning]]</includeonly>

Latest revision as of 21:40, 30 October 2024

This page is a template. It should be used as part of other articles. For more information, see Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to discuss this template in the talk page.

If you wanted to create a new page instead, use the search box to search for the title of the new page you want to create and follow the link Create the page "XYZ" on this wiki! in the results page. An alternative is to create a dangling link to the new page from an existing page. A final option is to directly visit the expected URL of the page.

Usage

{{Security Warning|This configuration may be unsafe.}}

{{Security Warning|Stop what you're doing!|heading=This is dangerous!}}

{{Security Warning|Don't do anything that you might regret!|type=lowPrio}}

{{Security Warning|This is safe by default!|type=secure}}

Example