Changes

Jump to: navigation, search

Template:Notice/doc

1,177 bytes added, 08:24, 24 April 2016
m
Rewrite and adding new parameters
{{SPW|is not on|name=Notice}}
;<dl><dt>Description:</dt>:<dd>A simple notice box.</dd> ;<dt>Dependencies:</dt><dd>* Uses [[:File:Gtk-ok.png]]as default image.;*Uses {{t|SPW}}, {{t|t}} and {{t|para}} for this documentation.</dd> <dt>Syntax:</dt>:<dd>Type <code>{{t|Notice|parameters}}</code> somewhere.</dd>;<dt>Parameters:</dt><dd>* '''<i>Recommended</i>: {{para|type=''' - }}*:Notice box header text (default.*:Default: {{para|type|<var>Header text)</var>}}* '''<i>Recommended</i>: {{para|info=''' - }}*:Notice box additional info (default.*:Default: {{para|type|<var>Explanation)</var>}}*<i>Optional</i>: {{para|image}}*:Notice box symbol image.*:Provide the image-filename with extension, or use {{para|image|no}} to completely remove/inhibit the image part.* ''':Default: {{para|image=''' |<var>Gtk- ''ok.png</var>}}*<i>Optional'' </i>: {{para|imageSize}}*:Notice box symbol image (default-size.*:Provide the image-size including the unit, eg: <code>[[[[px</code>, part.*:FileDefault:Gtk-ok.png]]{{para|imageSize|<var>50px]]</codevar>)}}* '''<i>Optional</i>: {{para|border=''' - ''Optional'' }}*:Notice box left-border -bar color (default see below)definition.*:Use {{para|border|<var>definition</var>}}, where <var>definition</var> is a valid custom definition for the [http://www.w3schools.com/cssref/pr_border-left.asp CSS property <code>border-left</code>].*:Border optionsOr use {{para|border|preset}}, where <var>preset</var> is one of the predefined names below<nowiki>:</nowiki>*:* red - <span style="background-color:#b22222;">&nbsp; &nbsp;</span>: red &rArr; <code>10px solid #b22222</code>*:* orange - <span style="background-color:#f28500;">&nbsp; &nbsp;</span>: orange &rArr; <code>10px solid #f28500</code>*:* yellow - <span style="background-color:#f4c430;">&nbsp; &nbsp;</span>: yellow &rArr; <code>10px solid #f4c430</code>*:* purple - <span style="background-color:#9932cc;">&nbsp; &nbsp;</span>: purple &rArr; <code>10px solid #9932cc</code>*:* blue - <span style="background-color:#1e90ff;">&nbsp; &nbsp;</span>: blue &rArr; <code>10px solid #1e90ff</code> ''(default)''*:* green - <span style="background-color:#228b22;">&nbsp; &nbsp;</span>: green &rArr; <code>10px solid #228b22</code>*:* gray - <span style="background-color:#bba;">&nbsp; &nbsp;</span>: gray &rArr; <code>10px solid #bba</code>* :Default: {{para|border|blue}}*:<i>You don'''t need to provide the <code>;</code> at the end to properly terminate the definition(s) because it will be appended automatically for proper functionality.</i>*<i>Optional</i>: {{para|style=''' |<var>inline- ''Optional'' CSS;</var>}}*:Completely override the inline-CSS used for in the [http://www.w3schools.com/tags/att_global_style.asp style-attribute] of the table that generates the Notice box, .*:Where <code><var>inline-CSS;</var></code> defaults to:
*:<code>font-size:{{{styleFontSize}}}; width:{{{styleWidth}}}; margin:{{{styleMargin}}}; border:{{{styleBorder}}}; border-collapse:{{{styleBorderCollapse}}}; background-color:{{{styleBackgroundColor}}}; border-left:{{{border}}}</code>
*Partially :To override parts of the inline-CSS used for the Notice box. ''default shown above you can use: <i>(Optionaldefaults shown as value)''</i>*:*'''{{para|styleFontSize=''' (default: <code>|95%</code>)}}*:*'''{{para|styleWidth=''' (default: <code>|80%</code>)}}*:*'''{{para|styleMargin=''' (default: <code>|0 auto</code>)}}*:*'''{{para|styleBorder=''' (default: <code>|1px #aaa solid</code>)}}*:*'''{{para|styleBorderCollapse=''' (default: <code>|collapse</code>)}}*:*'''{{para|styleBackgroundColor=''' (default: <code>|#eee}}</codedd>);<dt>Sample output:</dt>:<dd> <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>::</dd><dd>gives...</dd>:<dd> {{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.}}</dd>
{{clear}};<dt>See also:</dt><dd>* {{t|Ambox}}<includeonly></dd></dl>
[[Category:Wikia Help templates]]
</includeonly><noinclude>
[[Category:Template documentation]]
</noinclude>
1,071
edits

Navigation menu