Template:NoticeBox: Difference between revisions

From PZwiki
(Switched to using docs template)
(complete rewrite. Now uses Template:NoticeBox/core)
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%;"
<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 = {{#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
| #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 = Imbox protection.png
    | notice          <!-- notice = default -->
    | #default  = Imbox notice.png
    }} |link=|alt=]]
  }}
}}
| style = {{{style|font-size:150%;}}}
| text = {{{text|}}}
| cat = {{{cat|{{{category|}}}}}}
| hidecat = {{{hidecat|{{{nocat|}}}}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 06:16, 29 July 2018

[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)