Ascendance of a Bookworm Wiki
Advertisement

Full documentation: https://familypedia.fandom.com/wiki/Template:Family_tree/doc (Credits to the creators of the family tree templates)

Changes:

  • Style attributes (CSS) for family trees are disabled in this wiki to prevent complication and breaking dark/light mode support. (no boxstyle or border parameters)
  • Template names has been changed according to the template naming style:

 - familytree       --> FamilyTree

 - familytree/start --> FamilyTree/Start

 - familytree/end   --> FamilyTree/End

Example usage

This code:

{{FamilyTree/Start |summary=I have a brother Joe and a little sister: my mom married my dad, and my dad's parents were Grandma and Grandpa; they had another child, Aunt Daisy.}}
{{FamilyTree | | | | GMa |~|y|~| GPa | | GMa=Gladys|GPa=Sydney}}
{{FamilyTree | | | | | | | |)|-|-|-|.| }}
{{familyTree | | | MOM |y| DAD | |DAISY| MOM=Mom|DAD=Dad|DAISY=[[Aunt Daisy]]}}
{{familyTree | |,|-|-|-|+|-|-|-|.| | | }}
{{familyTree | JOE | | ME  | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}
{{familyTree/End}}

Produces this:

 
 
 
Gladys
 
 
 
Sydney
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Mom
 
Dad
 
Aunt Daisy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
My brother Joe
 
Me!
 
My little sister
 
 

Parameters

The |summary= text parameter of the {{FamilyTree/Start}} template should be used to describe the overall layout of the tree. This summary is for accessibility: it is read aloud to visually impaired readers who use screen readers, and is invisible to sighted readers.

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
 
 
 
-
 
 
:
 
 
 
Misc.:
T
 
 
 
 
G
 
 
 
 
X
 
 
 
 
K
 
 
 
k
 
 
 
U
 
 
 


  • 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.
Advertisement