User:Pee Tern/Sandbox/Template/Family tree chart/doc

Purpose
The template presents family trees, either horizontally or vertically, either in line format or boxed name format.

A single compound family may consist of one person, with up to three bonding relationships, including a primary bonded partner, who can have up to two other bonded relationships. The single person or any of their bonded relationships, and any of the primary bonded partner's relationships, can each have up to 10 childen. The maximum compound family can therefore consist of 6 parents and 50 children.

A family tree is constructed by substituting single family members with their family, for example, replacing a parent with their family with them as a child.

Characteristics such as person to person relationship type, person to family relationship type, and dates can also be provided. Different characteristics automatically present with different graphical styles.

There is no restriction on the width or depth of a family tree chart (other than that defined by the Wiki software processing the template instantiation).

Presentation
The family tree chart may be floated to the left or right, or centered.

It may optionally have a border placed around it.

Style attibutes may be set, for example the font style or colour or background colour.

There are also two major variations to the layout. The layout may be in a line format or names may be boxed. The chart may be laid out horizontally or vertically.

A lineage in each family may be highlighted.

Some examples using different combinations of presentation options, and types of family structures are shown below.

Characteristics such as:
can be placed into the presentation, for example:

Bondings between relations
Because the template only allows single paths between any person, people who are a related cannot be non redundantly placed into both their familial relationship and their bonded relationship. Cousins who marry cannot be minimally represented.

Work around
To work around this problem make two separate person instances where required and after each name parameter use, for example:

|par2 = Cousin Cousin

and elswhere:

|par1 = Cousin Cousin

Usage
The template is a colour/color friendly template. All parmeter names and parameter values accept either spelling, except the style parameter.

Method
Start by constructing separate family tree charts for each family, for example:

Using the youngest family's tree chart as a base, for each ancestor add their family tree chart to the relevant ancestor data using the relevant fam parameter and copy the ancestor's data to the child data in their own family, that is:

|par2 = Parent2 |par2rel = married |par2reldt = 23/4/1959

becomes:

|par2 = Parent 2 |par2dob = 4/5/1937 |par2rel = married |par2reldt = 23/4/1959 |par2fam =