Template:Security Warning: Difference between revisions
imported>Samueldr No edit summary |
Overhaul security template |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Template | <noinclude>{{Template}} | ||
== Usage == | == Usage == | ||
{{ic|<nowiki>{{Security Warning|This configuration may be unsafe.}}</nowiki>}} | |||
= | {{ic|<nowiki>{{Security Warning|Stop what you're doing!|heading=This is dangerous!}}</nowiki>}} | ||
{{ic|<nowiki>{{Security Warning|Don't do anything that you might regret!|type=lowPrio}}</nowiki>}} | |||
{{Security Warning|This is | {{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 | {{Security Warning|Stop what you're doing!|heading=This is dangerous!}} | ||
|heading | {{Security Warning|Don't do anything that you might regret!|type=lowPrio}} | ||
|message | {{Security Warning|This is safe by default!|type=secure}} | ||
}}[[Category:Pages or sections flagged with Template: | </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> |