Template:NoticeBox: Difference between revisions

From PZwiki
(Switched to using docs template)
m (added protection template)
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="background-color: #f7f7f7; border: 1px solid #aaa; font-size: 120%;margin-left: auto;margin-right: auto;padding: 2px; text-align: center; width: 75%;"
<noinclude>{{protection|reason=This template is considered '''High Risk''' as it is used on a large number of pages.}}</noinclude><includeonly>{{NoticeBox/core
| {{#ifexpr:{{{1|0}}}=1|style="background-color:{{{2|#fff}}};width:{{{width|2}}};"{{!}}{{#if:{{{file|}}}|[[File:{{{file|}}} {{!}} {{{width}}} {{!}} {{{height}}}]]|}}|}}
| bkg-color = {{#switch:{{{type|}}}
| style="text-align:{{{text-align|center}}};font-size:{{{font-size|100%}}}"| {{{desc|desc}}}
| speedy = #fcc
|}</includeonly>
| delete = #FFEEEE
<noinclude>{{documentation}}</noinclude>
| #default = #F9F9F9
}}
| color = {{#if:{{{color|}}}|{{{color}}}|{{#switch:{{{type|}}}
| speedy    = #B22222
| delete    = #B22222
| content    = #F28500
| style      = #F4C430
| move      = #9932CC
| protection = #BBBBAA
| notice          <!-- notice = default -->
| #default  = #1E90FF
}}}}
| border-width = {{#switch:{{{type|}}}
| speedy = 4px
| delete = 4px
| protection = 2px
| #default = 1px
}}
| image = {{#ifeq:{{{image|}}}|none
| <!-- No image. -->
| {{#if:{{{image|}}}
  | {{{image}}}
  | [[Image:{{#switch:{{{type|}}}
    | critical  = Ambox warning pn.png
    | important  = Ambox warning pn.png
    | warning    = Ambox important.png
    | caution    = Edit-clear.png
    | license = Imbox_license.png
    | speedy    = Imbox speedy deletion.png
    | delete    = Imbox deletion.png
    | content    = Imbox content.png
    | style      = Edit-clear.png
    | move      = Imbox move.png
    | protection = Lock-locked.png
    | notice          <!-- notice = default -->
    | #default  = Imbox notice.png
    }} |link=|alt=]]
  }}
}}
| style = {{{style|}}}
| text = {{{text|}}}
| cat = {{{cat|{{{category|}}}}}}
| hidecat = {{{hidecat|{{{nocat|}}}}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 09:52, 29 July 2018

Lock-locked.png
This page has been put into protection by a PZwiki administrator.
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)