Template:Family tree/doc: Difference between revisions

Jump to navigation Jump to search
m
Line 124: Line 124:
==Style attributes==
==Style attributes==


The appearance of the boxes may be controlled by the optional template parameters ''border'' and ''boxstyle''.  The former sets the width of the box border in pixels, while the latter can be used to append arbitrary [[Cascading Style Sheets|CSS]] declarations directly to the box style attributes.  For example, the following code:
The appearance of the boxes may be controlled by the optional template parameters ''border'' and ''boxstyle''.  The former sets the width of the box border in pixels, while the latter can be used to append arbitrary [[WP:Cascading Style Sheets|CSS]] declarations directly to the box style attributes.  For example, the following code:


<pre style="overflow:auto;">
<pre style="overflow:auto;">
Line 174: Line 174:
'''NOTE:''' When specifying style attributes for individual named boxes, make sure the box names are aligned to the '''left''' side of area reserved for them in the template call (as in "<code>|RED&nbsp;&nbsp;|</code>" instead of "<code>|&nbsp;RED&nbsp;|</code>" in the example above).  Otherwise the template will end up looking for a style parameter with spaces in its name.
'''NOTE:''' When specifying style attributes for individual named boxes, make sure the box names are aligned to the '''left''' side of area reserved for them in the template call (as in "<code>|RED&nbsp;&nbsp;|</code>" instead of "<code>|&nbsp;RED&nbsp;|</code>" in the example above).  Otherwise the template will end up looking for a style parameter with spaces in its name.


The {{tl|Family tree/start}} template also accepts an optional ''style'' parameter that can be used to set CSS styles for the entire table.
The <nowiki>{{familytree/start}}</nowiki> template also accepts an optional ''style'' parameter that can be used to set CSS styles for the entire table.


==See also==
==See also==
2,273

edits

Navigation menu