Template:Pseudo-table
From TrainzOnline
(Difference between revisions)
(usage) |
(+purpose statement and {{{other}}} parameter) |
||
Line 1: | Line 1: | ||
− | "padding: 1em; border: 1px dashed rgb(47, 111, 171);color: black; background: rgb(249, 249, 249); width:{{{width|68%}}};"<noinclude>{{Doc-page-head}} | + | "padding: 1em; border: 1px dashed rgb(47, 111, 171);color: black; background: rgb(249, 249, 249); width:{{{width|68%}}}; {{{other}}}"<noinclude>{{Doc-page-head}} |
<!-- Note: color and style picked off web page as default for <pre> ... </pre> enclosed lines. | <!-- Note: color and style picked off web page as default for <pre> ... </pre> enclosed lines. | ||
---> | ---> | ||
[[Category:Formatting templates|{{PAGENAME}}]] | [[Category:Formatting templates|{{PAGENAME}}]] | ||
{{SelfTdoc}}{{TypeTaid}} | {{SelfTdoc}}{{TypeTaid}} | ||
+ | ;Purpose | ||
+ | This template provides compatible formatting to duplicate the appearance of the monospace tables the N3V staff used when building pages for Kinds, containers and so forth. Using this template to set the style allows a wikitable to neaten up the staffs ragged efforts, and make things more readable. | ||
+ | |||
;usage | ;usage | ||
*This template is meant to be used after the <{{...}} style= {{tl|Pseudo-table}} > and forms the pre-quoted string above. | *This template is meant to be used after the <{{...}} style= {{tl|Pseudo-table}} > and forms the pre-quoted string above. | ||
* The default width is shown above, but the template call can be given an alternative width as follows: | * The default width is shown above, but the template call can be given an alternative width as follows: | ||
::form the call: '''<code><nowiki>{| style={{pseudo-table|width=XX%}}</nowiki></code> '''''versus the default''''' <code><nowiki>{| style={{pseudo-table}}</nowiki></code>''' | ::form the call: '''<code><nowiki>{| style={{pseudo-table|width=XX%}}</nowiki></code> '''''versus the default''''' <code><nowiki>{| style={{pseudo-table}}</nowiki></code>''' | ||
+ | * The format also provides for other format parameters to be included in the style block by defining the parameter ''''other''''. | ||
+ | ** for example: '''|other=color:blue; would assert the table contents as a blue font. Other HTML/CSS formatting elements are equally valid. | ||
| | ||
| |
Latest revision as of 01:45, 13 October 2013
"padding: 1em; border: 1px dashed rgb(47, 111, 171);color: black; background: rgb(249, 249, 249); width:68%; {{{other}}}"- Purpose
This template provides compatible formatting to duplicate the appearance of the monospace tables the N3V staff used when building pages for Kinds, containers and so forth. Using this template to set the style allows a wikitable to neaten up the staffs ragged efforts, and make things more readable.
- usage
- This template is meant to be used after the <… style= {{Pseudo-table}} > and forms the pre-quoted string above.
- The default width is shown above, but the template call can be given an alternative width as follows:
- form the call:
{| style={{pseudo-table|width=XX%}}
versus the default{| style={{pseudo-table}}
- form the call:
- The format also provides for other format parameters to be included in the style block by defining the parameter 'other'.
- for example: |other=color:blue; would assert the table contents as a blue font. Other HTML/CSS formatting elements are equally valid.
- for other examples...
- Use the What links here wiki feature to examin a use inclusion.