Difference between revisions of "Template:Notice/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Removing unused foreign-language links)
m (SVG can't be used on this wiki)
Line 3: Line 3:
 
:A simple notice box.
 
:A simple notice box.
 
;Dependencies
 
;Dependencies
* Uses [[:File:Gtk-ok.svg]].
+
* Uses [[:File:Gtk-ok.png]].
 
;Syntax
 
;Syntax
 
:Type <code>{{t|Notice|parameters}}</code> somewhere.
 
:Type <code>{{t|Notice|parameters}}</code> somewhere.
Line 9: Line 9:
 
* '''type=''' - Notice box header text (default: Header text)
 
* '''type=''' - Notice box header text (default: Header text)
 
* '''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.svg]]|50px]]</code>)
+
* '''image=''' - ''Optional'' Notice box symbol image (default: <code>[[[[:File:Gtk-ok.png]]|50px]]</code>)
 
* '''border=''' - ''Optional'' Notice box border bar color (default <span style="background-color:#228b22;">&nbsp; &nbsp;</span>: <code>10px solid #228b22</code>)
 
* '''border=''' - ''Optional'' Notice box border bar color (default <span style="background-color:#228b22;">&nbsp; &nbsp;</span>: <code>10px solid #228b22</code>)
 
*:Border options
 
*:Border options

Revision as of 16:10, 22 April 2016

Description
A simple notice box.
Dependencies
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    : 10px solid #228b22)
    Border options
    • red -    : 10px solid #b22222
    • orange -    : 10px solid #f28500
    • yellow -    : 10px solid #f4c430
    • purple -    : 10px solid #9932cc
    • blue -    : 10px solid #1e90ff
    • green -    : 10px solid #228b22
    • gray -    : 10px solid #bba
  • 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)
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...
Gtk-ok.pngNotice box
Does not use the {{Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.


See also