2,273
edits
Aigle Phos (talk | contribs) m (→Parameters) |
Aigle Phos (talk | contribs) m (→See also) |
||
(2 intermediate revisions by the same user not shown) | |||
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 |</code>" instead of "<code>| RED |</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 |</code>" instead of "<code>| RED |</code>" in the example above). Otherwise the template will end up looking for a style parameter with spaces in its name. | ||
The {{ | 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== | ||
* [[WP:Template:Family tree]] - The page for the origional teplate. This documentation (and the template) are ported from here. | |||
* [[ | |||
* [http://godskingsandheroes.info/gedcom2wiki/convert.htm gedcom2wiki service] – online service to convert gedcom files to wiki Family tree template markup | * [http://godskingsandheroes.info/gedcom2wiki/convert.htm gedcom2wiki service] – online service to convert gedcom files to wiki Family tree template markup | ||
edits