Template:Familytree: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (removing "{{Underconstruction}}")
 
No edit summary
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table style="border-spacing:0"><tr>
<table class="familytree" style="border-spacing:0; line-height:100%; color:#111c1c;"><tr>
{{#ifeq: {{{1|x}}}|{{{1|y}}}|{{Template:Familytree/element|{{{1}}}}}}}<!--
{{#ifeq: {{{1|x}}}|{{{1|y}}}|{{Template:Familytree/element|{{{1}}}}}}}<!--
-->{{#ifeq: {{{2|x}}}|{{{2|y}}}|{{Template:Familytree/element|{{{2}}}}}}}<!--
-->{{#ifeq: {{{2|x}}}|{{{2|y}}}|{{Template:Familytree/element|{{{2}}}}}}}<!--
Line 402: Line 402:
-->{{#ifeq: {{{400|x}}}|{{{400|y}}}|{{Template:Familytree/element|{{{400}}}}}}}
-->{{#ifeq: {{{400|x}}}|{{{400|y}}}|{{Template:Familytree/element|{{{400}}}}}}}
</tr></table></includeonly><noinclude>
</tr></table></includeonly><noinclude>
{{Documentation}}
{{documentation}}[[Category:Genealogy templates]]</noinclude>
</noinclude>

Latest revision as of 20:30, 4 June 2023

Instructions for {{Familytree}}
{{Familytree}} is a template used to create ASCII-art style family trees and other similar diagrams. It is intended to repalce and supercede {{tree}}. It's main benefit here is that it works on mobile.

Parameters[[edit source]]

This template produces a family tree table. The template accepts up to 400 unnamed parameters describing the contents of the table. Each parameter specifies a tile or a box, or a line break.

Tiles[[edit source]]

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 one or more space characters. 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
   
   
-
   
   
:
   
   
   
   

New line[[edit source]]

A "_" indicates to start a new row.

Boxes[[edit source]]

A box will be formed from any parameter that contains more than two characters. A box is three tiles wide and one tile long, regardless of the string length, so plan the graph accordingly.

Example[[edit source]]

{{Familytree
|Grandpop|y|Mema | |Grandma|_
| |    | |!| | | | | | ! | |_
| |    | Dad |~|y|~| Mom |_
| |    | | | | |!| | |   | |_
| |    | | | | Me! | |   | |_
}}

gives


Grandpop
   
   
Mema
   
   
Grandma
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
Dad
   
   
   
   
   
   
Mom
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
Me!
   
   
   
   
   
   

This template is dependent on Template:Familytree/element.