Template:NoticeBox: Difference between revisions

From PZwiki
(complete rewrite. Now uses Template:NoticeBox/core)
m ({{Deprecated template}} -> {{Deprecated}})
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{NoticeBox/core
<noinclude>
{{Deprecated|Mbox}}
{{protection|This template is considered '''High Risk''' as it is used on a large number of pages.}}</noinclude><includeonly>{{NoticeBox/core
| bkg-color = {{#switch:{{{type|}}}
| bkg-color = {{#switch:{{{type|}}}
  | speedy = #fcc
  | speedy = #fcc
Line 5: Line 7:
  | #default = #F9F9F9
  | #default = #F9F9F9
  }}
  }}
| color = {{#switch:{{{type|}}}
| color = {{#if:{{{color|}}}|{{{color}}}|{{#switch:{{{type|}}}
  | speedy    = #B22222
  | speedy    = #B22222
  | delete    = #B22222
  | delete    = #B22222
Line 14: Line 16:
  | notice          <!-- notice = default -->
  | notice          <!-- notice = default -->
  | #default  = #1E90FF
  | #default  = #1E90FF
  }}
  }}}}
| border-width = {{#switch:{{{type|}}}
| border-width = {{#switch:{{{type|}}}
  | speedy = 4px
  | speedy = 4px
  | delete = 4px
  | delete = 4px
| protection = 2px
  | #default = 1px
  | #default = 1px
  }}
  }}
Line 25: Line 28:
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[Image:{{#switch:{{{type|}}}
     | critical  = Ambox warning pn.png
     | critical  = Imbox deletion.png
     | important  = Ambox warning pn.png
     | important  = Imbox deletion.png
     | warning    = Ambox important.png
     | warning    = Imbox content.png
     | caution    = Edit-clear.png
     | caution    = Edit-clear.png
     | license = Imbox_license.png
     | license   = Imbox_license.png
     | speedy    = Imbox speedy deletion.png
     | speedy    = Imbox speedy deletion.png
     | delete    = Imbox deletion.png
     | delete    = Imbox deletion.png
Line 35: Line 38:
     | style      = Edit-clear.png
     | style      = Edit-clear.png
     | move      = Imbox move.png
     | move      = Imbox move.png
     | protection = Imbox protection.png
     | protection = Lock-locked.png
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default -->
     | #default  = Imbox notice.png
     | #default  = Imbox notice.png
Line 41: Line 44:
   }}
   }}
}}
}}
| style = {{{style|font-size:150%;}}}
| style = {{{style|}}}
| text = {{{text|}}}
| text = {{{text|}}}
| cat = {{{cat|{{{category|}}}}}}
| cat = {{{cat|{{{category|}}}}}}
| hidecat = {{{hidecat|{{{nocat|}}}}}}
| hidecat = {{{hidecat|{{{nocat|}}}}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}[[Category:Mbox]]</noinclude>

Latest revision as of 04:52, 4 January 2024

Imbox content.png
This template is deprecated.
This template will eventually be removed. Please use Template:Mbox instead.
Lock-locked.png
This page has been put into protection by a PZwiki administrator.
Reason: This template is considered High Risk as it is used on a large number of pages.
Only users in the autoconfirmed user group may edit this page.
[view] [edit] [history] [purge] Template documentation
This template is used as the foundation of various notice boxes. See: {{Notice}}.

Usage

{{NoticeBox
 | type  =
 | image =
 | style =
 | text  =
 | cat   =
 | hidecat =
}}
See: Template:Notice
Documentation transcluded from Template:NoticeBox/doc.
Editors can experiment in this template's sandbox (create)