| Template documentation follows
|
| The template above may sometimes be partially or fully invisible.
|
| Visit Template:FamilyTree/doc to edit this documentation. (How does this work?)
|
Per Forum:CT:Familytree usage, this template is only to be used on articles that are familial-type groups, including clans, flocks, and other cultural group equivalents that utilize a {{Family}} infobox.
Documentation
Tool for family trees. This implementation is primarily from wikipedia, and is based on their now deprecated FamilyTree template.
Example usage
This code:
{{FamilyTree/start}}
{{FamilyTree|PA|y|AN|PA=[[Padmé Amidala]]|AN=[[Anakin Skywalker]]
|boxstyle_PA=f
|boxstyle_AN=m}}
{{FamilyTree| |,|-|^|-|.| |}}
{{FamilyTree|LE| |LU|LE=[[Runningwind]]|LU=[[Mousefur]]
|boxstyle_LE=f
|boxstyle_LU=m}}
{{FamilyTree/end}}
Results in:
Parameters
The {{FamilyTree}} template produces one row in a family tree table. The template accepts up to 80 unnamed parameters describing the contents of the table. Each parameter specifies a tile or a box.
- Tiles are line drawing symbols consisting of horizontal and vertical lines and various corners and crossings thereof. Tiles are specified using single-character symbols that more or less approximate the shape of the tile in appearance. A special case of a tile is the empty tile, specified by a single space character. A table of supported tiles is given below.
Solid lines:
| , |
|
v |
|
. |
|
| ) |
|
+ |
|
( |
|
| ` |
|
^ |
|
' |
|
| - |
|
! |
|
|
|
Dashed lines:
| F |
|
V |
|
7 |
|
| D |
|
% |
|
C |
|
| L |
|
A |
|
J |
|
| ~ |
|
: |
|
|
|
Mixed (1):
| r |
|
y |
|
n |
|
| ] |
|
# |
|
[ |
|
| c |
|
h |
|
j |
|
| ~ |
|
! |
|
|
|
Mixed (2):
| p |
|
u |
|
q |
|
| } |
|
* |
|
{ |
|
| b |
|
t |
|
d |
|
| - |
|
: |
|
|
|
- Boxes can contain arbitrary wiki markup. The contents of boxes are specified using additional named parameters appended to the template call. Each box is three tiles wide and normally has a 2 pixels wide black border. Boxes can have any name that is a valid template parameter name, although single character names should be avoided to prevent conflicts with tile symbols.
Style attributes
The color of the boxes may be can be changed; these colors are slightly different and adapt to both light and dark mode for readability (as do the borders and lines of the trees).
Key:
- m — male
- f — female
- u — unspecified/non-binary
{{FamilyTree/start}}
{{FamilyTree|PAR1|y|PAR2||PAR1=A [[Barash Silvain's parents|parent]]|PAR2=A [[parent]]|boxstyle_PAR1=u|boxstyle_PAR2=u}}
{{FamilyTree| |,|-|^|.|}}
{{FamilyTree|BARASH| |SIB||BARASH=[[Barash Silvain]]|SIB=[[Barash Silvain's siblings]]|boxstyle_BARASH=f|boxstyle_SIB=u}}
{{FamilyTree/end}}
</nowiki>
produces a result like this: