| {{{text_1}}} | {{{text_2}}} | {{{text_3}}} | {{{text_4}}} | {{{text_5}}} | {{{text_6}}} | {{{text_7}}} | {{{text_8}}} | {{{text_9}}} | {{{text_10}}} | {{{text_11}}} | {{{text_12}}} | {{{text_13}}} | {{{text_14}}} | {{{text_15}}} | {{{text_16}}} | {{{text_17}}} | {{{text_18}}} | {{{text_19}}} | {{{text_20}}} | {{{text_21}}} | {{{text_22}}} | {{{text_23}}} | {{{text_24}}} | {{{text_25}}} | {{{text_26}}} | {{{text_27}}} | {{{text_28}}} | {{{text_29}}} | {{{text_30}}} | {{{text_31}}} | {{{text_32}}} | {{{text_33}}} | {{{text_34}}} | {{{text_35}}} | {{{text_36}}} | {{{text_37}}} | {{{text_38}}} | {{{text_39}}} | {{{text_40}}} | {{{text_41}}} | {{{text_42}}} | {{{text_43}}} | {{{text_44}}} | {{{text_45}}} | {{{text_46}}} | {{{text_47}}} | {{{text_48}}} | {{{text_49}}} | {{{text_50}}} | {{{text_51}}} | {{{text_52}}} | {{{text_53}}} | {{{text_54}}} | {{{text_55}}} | {{{text_56}}} | {{{text_57}}} | {{{text_58}}} | {{{text_59}}} | {{{text_60}}} | {{{text_61}}} | {{{text_62}}} | {{{text_63}}} | {{{text_64}}} | {{{text_65}}} | {{{text_66}}} | {{{text_67}}} | {{{text_68}}} | {{{text_69}}} | {{{text_70}}} | {{{text_71}}} | {{{text_72}}} | {{{text_73}}} | {{{text_74}}} | {{{text_75}}} | {{{text_76}}} | {{{text_77}}} | {{{text_78}}} | {{{text_79}}} | {{{text_80}}} |
|
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: