Template:TrainzTip

From Wikibooks, open books for an open world
Jump to: navigation, search
P train grey.png
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Template documentation[edit] [history] [purge]
Sample calls ... appears as
P train grey.png
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


inserting a right floated element with some width
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. || Lorem ipsumdolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsumdolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. || Lorem ipsumdolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[e ]
KINDs (type asset groups)
and containers


P train grey.png
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.


P train grey.png
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.


P train grey.png
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Setting 50% for MW (max-width) of the first above shows
P train grey.png
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


Parameters:

  • The first parameter is the text inside the box. If the box also contains template calls, you might need to express this as | 1= some text
  • image (optional) : the image to be used.
    • Adapted from {{textBox}} 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!
  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.
  2.   B - outer table border:2px solid blue (is the default)
  3.  B2 - inner text border:(default's to class="pretty-table"'s by inheritance)
  4. BG  - (background), of the main text window
  5. BG2 - (background, #dfdfdf), of the Framing Table, defaults to a light blue-grey
  6. CLR - defaults to clear:left
  7. FLT - float: left is default
  8. 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.
  9. ML & MR - margin-left:0 and margin-right:0.2% respectively (shown with defaults) for the bounding / outer table element.
  10. 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.
  11. MW2  - max-width:96% (default value again)
  12. 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.
  13.   P - padding:2px (default) of the outer wrapper table.
  14.   P2- padding:3px 2px (default) of the textbox table.
  15.  VA - textbox vertical-alignment ('middle' is the default)
  16.   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.