Template:Security Warning: Difference between revisions

Sdht0 (talk | contribs)
Add proper sections
DoggoBit (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Template}}
<includeonly>{{Notice
 
  |color={{#switch:{{{type|hiPrio}}}
== Usage ==
    |hiPrio
 
    |critical = var(--color-error)
{{ic|<nowiki>{{Security Warning|This is just a demonstration template.}}</nowiki>}}
    |lowPrio
 
    |warning = var(--border-color-warning)
{{ic|<nowiki>{{Security Warning|This is just a demonstration template.|heading=Replacement Title}}</nowiki>}}
    |secure = var(--color-success)
 
    |#default = var(--color-progressive)
== Example ==
  }}
{{Security Warning|This is just a demonstration template.}}
  |background={{#switch:{{{type|hiPrio}}}
{{Security Warning|This is just a demonstration template.|heading=Replacement Title}}
    |hiPrio
</noinclude><includeonly>{{META Message
    |critical = var(--background-color-error-subtle)
|border = #ED1515
    |lowPrio
|signal          = [[File:Breeze-security-low.png|link=]]
    |warning = var(--background-color-warning-subtle)
|heading        = {{{heading|Warning}}}
    |secure = var(--background-color-success-subtle)
|message        = {{{1|{{{message}}}}}}
    |#default = var(--background-color-progressive-subtle)
}}[[Category:Pages or sections flagged with Template:Expansion]]</includeonly>
  }}
  |icon=🛡&#xFE0E;
  |'''{{{heading|Security information:}}}''' {{{1|{{{message}}}}}}
}}{{#ifeq:{{{category|yes}}}|yes|[[Category:Pages or sections flagged with Template:Security Warning]][[Category:Articles that contain security information]]|}}</includeonly><noinclude>{{merge|Template:Warning|reason=This template is a semantically-specific reimplementation of [[Template:Warning]] and [[Template:Notice]].}}{{Documentation}}</noinclude>