Difference between revisions of "Template:Notice/doc"
From Project: Gorgon Wiki
m (SVG can't be used on this wiki) |
m (Changed default to blue, Ambox's notice is blue also see Template:Ambox#CSS) |
||
| Line 10: | Line 10: | ||
* '''info=''' - Notice box additional info (default: Explanation) | * '''info=''' - Notice box additional info (default: Explanation) | ||
* '''image=''' - ''Optional'' Notice box symbol image (default: <code>[[[[:File:Gtk-ok.png]]|50px]]</code>) | * '''image=''' - ''Optional'' Notice box symbol image (default: <code>[[[[:File:Gtk-ok.png]]|50px]]</code>) | ||
| − | * '''border=''' - ''Optional'' Notice box border bar color (default | + | * '''border=''' - ''Optional'' Notice box border bar color (default see below) |
*:Border options | *:Border options | ||
*:* red - <span style="background-color:#b22222;"> </span>: <code>10px solid #b22222</code> | *:* red - <span style="background-color:#b22222;"> </span>: <code>10px solid #b22222</code> | ||
| Line 16: | Line 16: | ||
*:* yellow - <span style="background-color:#f4c430;"> </span>: <code>10px solid #f4c430</code> | *:* yellow - <span style="background-color:#f4c430;"> </span>: <code>10px solid #f4c430</code> | ||
*:* purple - <span style="background-color:#9932cc;"> </span>: <code>10px solid #9932cc</code> | *:* purple - <span style="background-color:#9932cc;"> </span>: <code>10px solid #9932cc</code> | ||
| − | *:* blue - <span style="background-color:#1e90ff;"> </span>: <code>10px solid #1e90ff</code> | + | *:* blue - <span style="background-color:#1e90ff;"> </span>: <code>10px solid #1e90ff</code> ''(default)'' |
*:* green - <span style="background-color:#228b22;"> </span>: <code>10px solid #228b22</code> | *:* green - <span style="background-color:#228b22;"> </span>: <code>10px solid #228b22</code> | ||
*:* gray - <span style="background-color:#bba;"> </span>: <code>10px solid #bba</code> | *:* gray - <span style="background-color:#bba;"> </span>: <code>10px solid #bba</code> | ||
Revision as of 03:20, 24 April 2016
| This template was copied from Template:Notice on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
- Description
- A simple notice box.
- Dependencies
- Uses File:Gtk-ok.png.
- Syntax
- Type
{{Notice|parameters}}somewhere. - Parameters
- type= - Notice box header text (default: Header text)
- info= - Notice box additional info (default: Explanation)
- image= - Optional Notice box symbol image (default:
[[File:Gtk-ok.png|50px]]) - border= - Optional Notice box border bar color (default see below)
- Border options
- red - :
10px solid #b22222 - orange - :
10px solid #f28500 - yellow - :
10px solid #f4c430 - purple - :
10px solid #9932cc - blue - :
10px solid #1e90ff(default) - green - :
10px solid #228b22 - gray - :
10px solid #bba
- red - :
- Border options
- style= - Optional Completely override the inline-CSS used for the Notice box, defaults to:
font-size:{{{styleFontSize}}}; width:{{{styleWidth}}}; margin:{{{styleMargin}}}; border:{{{styleBorder}}}; border-collapse:{{{styleBorderCollapse}}}; background-color:{{{styleBackgroundColor}}}; border-left:{{{border}}}
- Partially override the inline-CSS used for the Notice box. (Optional)
- styleFontSize= (default:
95%) - styleWidth= (default:
80%) - styleMargin= (default:
0 auto) - styleBorder= (default:
1px #aaa solid) - styleBorderCollapse= (default:
collapse) - styleBackgroundColor= (default:
#eee)
- styleFontSize= (default:
- Sample output
{{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.}}- gives...

Notice box Does not use the {{Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.
- See also
- {{Ambox}}