Template:TrainzTip/doc


 * Sample calls ... appears as


 * Setting 50% for MW (max-width) of the first above shows

Arguments (options)
This templated can be used as a general purpose message box, including supporting embedding an image, and supports just about any HTML style element(S) inside the Table wrapper, such as font-family, font-face, font-size, width, etc. as well as size parametrics like padding, margins, colors and positioning. The first below, 'AS' is coded as situated at the end of the style string, so most browsers will interpret it last, and so it may override preceding element parameters. Normally it produces nothing, unless defined. AS - defaults to vaporware, last formating field of wrapper. (mnemonic: ANY STYLE) Font commands here (face |size | family) are inherited below and functional. B  - outer table border B2 - inner text border:(default's to class="pretty-table"'s by inheritance) BG - (background, #dfdfdf), of the Framing Table, defaults to a light blue-grey BG2 - (background), of the main text window&mdash;default is #daebfa CLR - defaults to clear:left FLT - float: left is default (Wrapper table) M  - Overrides Margin '4x up' defaults -- to margin of the inner table text box M2 - Overrides Margin '4x up' defaults -- to margin of the inner table text box ML & MR  - margin-left and margin-right -- for the bounding wrapper / outer table element. ML2 & MR2 - margin-left and margin-right -- Textbox (inner) table. MW - max-width of the outer wrapper table. MW2 - max-width of the textbox table. P  - padding of the outer wrapper table. -- default is 2px P2 - padding of the textbox table. -- default is padding: text- also  -- Output text box, |text= overrides |1= VA2 - textbox vertical-alignment W2 - W for width
 * In Alphabetical Order...
 * ALN - Alignment of the outer wrapper: align: (left=default)

Parameters
All the parameters are employed using the same simple syntax: | Arg= | ... next Arg= The values parametrics are provided  and parameters are always ALL capital letters. The style line below is the actual beginning of the box formatting, the wrapper: style="clear:; float:; align: left; max-width:; margin-left:; margin-right:;  ..." which is rendered into the default actually building the page code: style="clear:; float:; align: left; max-width:; margin-left:; margin-right:;  ..."

/>you might need to express this as   /> /> />
 * The Templates first unnamed parameter is the desired text inside the box. If the box also contains template calls, <br
 * image (optional) : the image to be used. <br
 * Adapted from but totally rewritten since in table form as a more robust template with default formatting.
 * Some optional parameters that can be adjusted: Note: most should be left as is, unless using the template as a sub-template as TRS-warning did with this. Note as well: this is a double table wrapper around inner table with image and text areas, and these parameters below do not give you full control! Parts of each table are As Is! <br
 * 1)  AS - defaults to vaporware, this can be used to add any HTML style element(S) inside the Table wrapper, such as font-family, font-face, font-size, width, etc.     Situated at the end of the style string, most browsers will interpret it last, and so it may override preceding element parameters. <br
 * 1)   B - outer table border:2px solid blue (is the default)
 * 2)  B2 - inner text  border:(default's to class="pretty-table"'s by inheritance)
 * 3) BG  - (background), of the main text window
 * 4) BG2 - (background,  #dfdfdf), of the Framing Table, defaults to a light blue-grey
 * 5) CLR - defaults to clear:left
 * 6) FLT - float: left is default
 * 7) M  - defaults to margin: 0px 2px of the inner table text box, different margin from the following which are mainly provided to affect the outer wrapper box.
 * 8) ML & MR - margin-left:0 and margin-right:0.2% respectively (shown with defaults) for the bounding / outer table element.
 * 9) ML2 & MR2 - margin-left:0 and margin-right:0.2% respectively (shown with defaults) for the inner text-table element. ONLY has effect if M is undefined.
 * 10) MW2  - max-width:96% (default value again)
 * 11) MW  - max-width:96% (default value again) -Hint: 50% works well on small monitors nested beside a right side element like an image.    The outer table bounds and forces the text box and image table to stay inside it. Another adjustment should be unnecessary for the inner and outer widths could then be mismatched.
 * 12)   P - padding:2px (default) of the outer wrapper table.
 * 13)   P2- padding:3px 2px (default) of the textbox table.
 * 14)  VA - textbox vertical-alignment ('middle' is the default)
 * 15)   W - W for width, this overrides the outer table max-width and the inner text box
 * Note:The suffix '2' on a mnemonic parameter varies table to table. '2' versions seem most likely to NOT be customized adjustment desires.

