UtterAccess HomeUtterAccess Wiki

Welcome Guest ( Log In | Register )

Custom Search
Discussion
> Template:CoreNotificationBox    
{{{Text}}}


Template Documentation: CoreNotificationBox

This is a core template! Please be extremely careful if editing! All other notifications will be effected if this template is changed!

VERSIONS
v1.0 - 2011-04-17 - Initial Release
v1.1 - 2011-04-18 - Added Align parameter, replaced leading/trailing line breaks w/ margins
v1.2 - 2011-12-09 - removed table Align parameter (didn't work on FF), wrapped entire table in Div with auto horizontal margins to keep it centered (notif box is now centered correctly in FF). This removed the functionality to define a Left or Center alignment per the template parameters, but as of yet it wasn't used anyway (I dont think).

CALLABLE KEYWORDS:
CoreNotificationBox

PURPOSE:
Provides the low level and fully customizable structure for displaying a notification box.

PARAMETERS:

ParamDescriptionNotes
Align Alignment of Box No longer valid! All boxes will align center. This param is left for backwards compatibility on calling conventions but serves no purpose as of v1.2
BackgroundColor Notification Box Background Color Accepts html color codes and plaintext color keys. Use "transparent" for a transparent background
Text Notification Display Text This text string can required markup. Advanced markup has not been tested.
Image Display Image, if any Images must be passed in the [[Image:ImageName]] format. The HTML Image tag method does not render correctly.

Images should be no more than 45px square. To omit an image do not specifiy this parameter when calling the template.
FlagColor Color of the Left Flag This can be any acceptable CSS Style Color definition.
FlagWidth Width of the Left Flag Enter a desired width, in pixels (ex. 20px) to manage the left flag width. The default is 5px. To display no flag, set this to 1px and set the FlagColor to transparent.
BorderWidth Box Border Width Default is 1px. Set using the px unit
BorderStyle Style of the Box's Border Default is solid. Set any applicable CSS Border Style attribute value.
BorderColor Color of Box's Border Default is grey. Set any applicable CSS Color attribute.
Height Height of the Box Default is 50px. WARNING: may be unstable! Use caution

EXAMPLES:


{{CoreNotificationBox
|Text=<font color="red">'''PLEASE NOTE!'''</font><br><br>This is a notification text!!!
}}

PLEASE NOTE!

This is a notification text!!!

{{CoreNotificationBox
|BackgroundColor=transparent
|FlagColor=red
|Text=Notice! This page now has a notice box with a red flag and a trasparent background. This notice box is also used to demonstrate the box expansion for long text, as in:<br>Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
}}

Notice! This page now has a notice box with a red flag and a trasparent background. This notice box is also used to demonstrate the box expansion for long text, as in:
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum


{{CoreNotificationBox
|Image=[[Image:TestNotif.jpg]]
|BackgroundColor=blue
|BorderWidth=3px
|BorderStyle=dashed
|BorderColor=red
|FlagColor=yellow
|FlagWidth=20px
|Text=<font color="white">'''Insert Your Text Here'''</font>
}}

Image:TestNotif.jpg Insert Your Text Here

For help creating a documentation page, see Manual:Template Documentation



Retrieved from "http://www.utteraccess.com/wiki/Template:CoreNotificationBox"
Discussion
Custom Search
Thank you for your support!
This page has been accessed 6,971 times.  This page was last modified 11:23, 21 January 2012 by Jack Leach.   Disclaimers