Template:Familytree

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search

Purpose[edit source]

Familytree is used to create a family tree diagram. It must be preceeded by Familytree/start and followed by Familytree/end.

Usage[edit source]

Example:

{{Familytree/start}}
{{Familytree | (symbols to designate the type of connection lines to include) }}
(additional repetitions of Familytree template, as needed)
{{Familytree/end}}

Each Familytree line can have as many values as needed, each separated by a pipe (|).

People listed in each Familytree line must first be assigned a three-letter code, then defined later in the line. The following example creates a box for Mortimer, Frida and an Unknown person, with a space in between each of them:

{{Familytree |MOR| |FRI| |UNK|MOR=[[Mortimer Goth]]|FRI=[[Frida Goth]]|UNK='''Unknown'''}}

Result:

Mortimer Goth
 
Frida Goth
 
Unknown


Note: the width of each box will be affected by boxes above or below them. As more repetitions of the Familytree template are used, the boxes should become more uniform in size.

Connection lines[edit source]

Lines to connect character boxes together are designated by a single command. The commands are as follows:

Command Purpose Example
(a space) or 0 (a zero) Separates character boxes. (See "Usage" section above for example.)
Solid connections, to show direct family relations
- (dash) Solid horizontal line
 
 
! Solid vertical line
 
 
, (comma) Solid line leading to the left and down.
 
 
 
 
. (period) Solid line leading to the right and down.
 
 
 
' (single quote) Solid line leading to the right and up.
 
 
 
` (grave accent) Solid line leading to the left and up.
 
 
 
^ (carat) Solid horizontal line with a solid line branching upward.
 
 
 
v (lowercase V) Solid horizontal line with a solid line branching downward.
 
 
 
( (left parenthesis) Solid vertical line with a solid line branching to the left.
 
 
 
) (right parenthesis) Solid vertical line with a solid line branching to the right.
 
 
 
+ (plus sign) Solid line branching in all four directions.
 
 
 
 
Dotted connections, to show indirect family relations
~ (tilde) Horizontal dotted line.
 
 
: (colon) Vertical dotted line.
 
 
F Dotted line leading to the left and down.
 
 
 
 
7 Dotted line leading to the right and down.
 
 
 
J Dotted line leading to the right and up
 
 
 
L Dotted line leading to the left and up
 
 
 
A Horizontal dotted line with a dotted line branching upward.
 
 
 
V Horizontal dotted line with a dotted line branching downward.
 
 
 
C Vertical dotted line with a dotted line branching to the left.
 
 
 
D Vertical dotted line with a dotted line branching to the right.
 
 
 
% (per cent sign) Dotted line branching in all four directions.
 
 
 
 
Combination lines
* (asterisk) Solid horizontal line with dotted lines leading up and down.
 
 
 
 
# (number sign) Solid vertical line with dotted lines branching off to both sides.
 
 
 
 
u (lowercase U) Horizontal solid line with a dotted line branching downward.
 
 
 
W Horizontal solid line with a dotted line branching upward.
 
 
 
y (lowercase Y) Horizontal dotted line with a solid line branching downward.
 
 
 
? Horizontal dotted line with a solid line branching upward.
 
 
 
/ Vertical dotted line with a solid line branching right.
 
 
 
\ Vertical dotted line with a solid line branching left.
 
 
 
Z Vertical solid line with a dotted line branching right.
 
 
 
S Vertical solid line with a dotted line branching left.
 
 
 
I (capital "i") Vertical solid line with a horizontal solid line to the left and a horizontal dotted line to the right.
 
 
 
p Solid line leading to the left and dotted line leading down.
 
 
 
 
q Solid line leading to the right and dotted line leading down.
 
 
 
d Solid line leading to the right and dotted line leading up
 
 
 
b Solid line leading to the left and dotted line leading up
 
 
 
f Dotted line leading to the left and solid line leading down.
 
 
 
 
a Dotted line leading to the right and solid line leading down.
 
 
 
j Dotted line leading to the right and solid line leading up.
 
 
 
h Dotted line leading to the left and solid line leading up