Template:Security Warning: Difference between revisions

Sdht0 (talk | contribs)
Add proper sections
Overhaul security template
Line 3: Line 3:
== Usage ==
== Usage ==


{{ic|<nowiki>{{Security Warning|This is just a demonstration template.}}</nowiki>}}
{{ic|<nowiki>{{Security Warning|This configuration may be unsafe.}}</nowiki>}}


{{ic|<nowiki>{{Security Warning|This is just a demonstration template.|heading=Replacement Title}}</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>}}
 
{{ic|<nowiki>{{Security Warning|This is safe by default!|type=secure}}</nowiki>}}


== Example ==
== Example ==
{{Security Warning|This is just a demonstration template.}}
{{Security Warning|This configuration may be unsafe.}}
{{Security Warning|This is just a demonstration template.|heading=Replacement Title}}
{{Security Warning|Stop what you're doing!|heading=This is dangerous!}}
</noinclude><includeonly>{{META Message
{{Security Warning|Don't do anything that you might regret!|type=lowPrio}}
|border = #ED1515
{{Security Warning|This is safe by default!|type=secure}}
|signal         = [[File:Breeze-security-low.png|link=]]
</noinclude>
|heading         = {{{heading|Warning}}}
<includeonly>{{META Message
|message         = {{{1|{{{message}}}}}}
|border = {{#ifeq: hiPrio | {{{type|hiPrio}}} | #ED1515 }}
}}[[Category:Pages or sections flagged with Template:Expansion]]</includeonly>
          {{#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>