Changes

Jump to: navigation, search

Template:Notice/doc

2,682 bytes added, 16:05, 22 April 2016
Copy-over latest version from wikia:c:templates:Template:Notice/doc
{{SPW|is not on|name=Notice}}
;Description
:A simple notice box.
;Dependencies
* Uses [[:File:Gtk-ok.svg]].
;Syntax
:Type <code>{{t|Notice|parameters}}</code> somewhere.
;Parameters
* '''type=''' - Notice box header text (default: Header text)
* '''info=''' - Notice box additional info (default: Explanation)
* '''image=''' - ''Optional'' Notice box symbol image (default: <code>[[[[:File:Gtk-ok.svg]]|50px]]</code>)
* '''border=''' - ''Optional'' Notice box border bar color (default <span style="background-color:#228b22;">&nbsp; &nbsp;</span>: <code>10px solid #228b22</code>)
*:Border options
*:* red - <span style="background-color:#b22222;">&nbsp; &nbsp;</span>: <code>10px solid #b22222</code>
*:* orange - <span style="background-color:#f28500;">&nbsp; &nbsp;</span>: <code>10px solid #f28500</code>
*:* yellow - <span style="background-color:#f4c430;">&nbsp; &nbsp;</span>: <code>10px solid #f4c430</code>
*:* purple - <span style="background-color:#9932cc;">&nbsp; &nbsp;</span>: <code>10px solid #9932cc</code>
*:* blue - <span style="background-color:#1e90ff;">&nbsp; &nbsp;</span>: <code>10px solid #1e90ff</code>
*:* green - <span style="background-color:#228b22;">&nbsp; &nbsp;</span>: <code>10px solid #228b22</code>
*:* gray - <span style="background-color:#bba;">&nbsp; &nbsp;</span>: <code>10px solid #bba</code>
* '''style=''' - ''Optional'' Completely override the inline-CSS used for the Notice box, defaults to:
*:<code>font-size:{{{styleFontSize}}}; width:{{{styleWidth}}}; margin:{{{styleMargin}}}; border:{{{styleBorder}}}; border-collapse:{{{styleBorderCollapse}}}; background-color:{{{styleBackgroundColor}}}; border-left:{{{border}}}</code>
*Partially override the inline-CSS used for the Notice box. ''(Optional)''
*:*'''styleFontSize=''' (default: <code>95%</code>)
*:*'''styleWidth=''' (default: <code>80%</code>)
*:*'''styleMargin=''' (default: <code>0 auto</code>)
*:*'''styleBorder=''' (default: <code>1px #aaa solid</code>)
*:*'''styleBorderCollapse=''' (default: <code>collapse</code>)
*:*'''styleBackgroundColor=''' (default: <code>#eee</code>)
;Sample output
:<code><nowiki>{{Notice|type=Notice box|info=Does not use the {{t|Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}</nowiki></code>
::gives...
:{{Notice|type=Notice box|info=Does not use the {{t|Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}

{{clear}}
;See also
* {{t|Ambox}}<includeonly>
[[Category:Wikia Help templates]]
[[ja:テンプレート:Notice]]
</includeonly><noinclude>
[[Category:Template documentation]]
[[ja:テンプレート:Notice/doc]]
</noinclude>
1,071
edits

Navigation menu