| This is a Template documentation subpage for Template:Notice2. It contains usage information, categories, and other content that is not part of the original template page. |
Description
Template:Notice2/doc is used whenever a notice box is needed anywhere on a page.
Syntax
{{Notice2
|style=
|border=
|image=
|header=
|text=
}}
Parameters
|style=- changes to default styling.
|border=- for stating border color from one of
- red #B22222
- orange #F28500
- yellow #F4C430
- purple #9932CC
- blue #1E90FF
- green #228B22 (default)
- grey #BBA
|image=- to specify an image other than the default green check/tick mark
|header=- text to appear as the notice header
|text=- text to appear in the body of the notice
Example
{{Notice2
|style=font-size:100%; font-weight:bold; width:80%; margin: 0 auto; border: 1px #B22222 solid; border-collapse: collapse; background-color: #EEE;
|border=red
|image=[[File:Ambox warning pn.svg|70px]]
|header=<span style="font-size:125%;">Warning!!</span>
|text=Do not edit this page in source mode as it messes up the wikitext coding.
}}
- produces →
<br />
| Warning!!
Do NOT edit this page in source mode as it messes up the wikitext coding. |
<br />