Template:Familytree/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (→‎Tiles: +clear, replaced: <br clear="all"/> → {{clear}})
m (Remove deprecated)
Line 12: Line 12:
|+ '''Solid lines:'''  
|+ '''Solid lines:'''  
|-  
|-  
| <big><tt>,</tt></big>
| <big><code>,</code></big>
| style="border:1px solid gray;"| {{Familytree|,}}  
| style="border:1px solid gray;"| {{Familytree|,}}  
| <big><tt>v</tt></big>
| <big><code>v</code></big>
| style="border:1px solid gray;"| {{Familytree|v}}  
| style="border:1px solid gray;"| {{Familytree|v}}  
| <big><tt>.</tt></big>
| <big><code>.</code></big>
| style="border:1px solid gray;"| {{Familytree|.}}  
| style="border:1px solid gray;"| {{Familytree|.}}  
|-  
|-  
| <big><tt>)</tt></big>
| <big><code>)</code></big>
| style="border:1px solid gray;"| {{Familytree|)}}  
| style="border:1px solid gray;"| {{Familytree|)}}  
| <big><tt>+</tt></big>
| <big><code>+</code></big>
| style="border:1px solid gray;"| {{Familytree|+}}  
| style="border:1px solid gray;"| {{Familytree|+}}  
| <big><tt>(</tt></big>
| <big><code>(</code></big>
| style="border:1px solid gray;"| {{Familytree|(}}  
| style="border:1px solid gray;"| {{Familytree|(}}  
|-  
|-  
| <big><tt>`</tt></big>
| <big><code>`</code></big>
| style="border:1px solid gray;"| {{Familytree|`}}  
| style="border:1px solid gray;"| {{Familytree|`}}  
| <big><tt>^</tt></big>
| <big><code>^</code></big>
| style="border:1px solid gray;"| {{Familytree|^}}  
| style="border:1px solid gray;"| {{Familytree|^}}  
| <big><tt>'</tt></big>
| <big><code>'</code></big>
| style="border:1px solid gray;"| {{Familytree|'}}  
| style="border:1px solid gray;"| {{Familytree|'}}  
|-  
|-  
| <big><tt>-</tt></big>
| <big><code>-</code></big>
| style="border:1px solid gray;"| {{Familytree|-}}  
| style="border:1px solid gray;"| {{Familytree|-}}  
| <big><tt>!</tt></big>
| <big><code>!</code></big>
| style="border:1px solid gray;"| {{Familytree|!}}  
| style="border:1px solid gray;"| {{Familytree|!}}  
| <big><tt> </tt></big>
| <big><code> </code></big>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}
|}
Line 43: Line 43:
|+ '''Dashed lines:'''  
|+ '''Dashed lines:'''  
|-  
|-  
| <big><tt>F</tt></big>
| <big><code>F</code></big>
| style="border:1px solid gray;"| {{Familytree|F}}  
| style="border:1px solid gray;"| {{Familytree|F}}  
| <big><tt>V</tt></big>
| <big><code>V</code></big>
| style="border:1px solid gray;"| {{Familytree|V}}  
| style="border:1px solid gray;"| {{Familytree|V}}  
| <big><tt>7</tt></big>
| <big><code>7</code></big>
| style="border:1px solid gray;"| {{Familytree|7}}  
| style="border:1px solid gray;"| {{Familytree|7}}  
|-  
|-  
| <big><tt>D</tt></big>
| <big><code>D</code></big>
| style="border:1px solid gray;"| {{Familytree|D}}  
| style="border:1px solid gray;"| {{Familytree|D}}  
| <big><tt>%</tt></big>
| <big><code>%</code></big>
| style="border:1px solid gray;"| {{Familytree|%}}  
| style="border:1px solid gray;"| {{Familytree|%}}  
| <big><tt>C</tt></big>
| <big><code>C</code></big>
| style="border:1px solid gray;"| {{Familytree|C}}  
| style="border:1px solid gray;"| {{Familytree|C}}  
|-  
|-  
| <big><tt>L</tt></big>  
| <big><code>L</code></big>  
| style="border: 1px solid gray"| {{Familytree|L}}
| style="border: 1px solid gray"| {{Familytree|L}}
| <big><tt>A</tt></big>  
| <big><code>A</code></big>  
| style="border: 1px solid gray"| {{Familytree|A}}  
| style="border: 1px solid gray"| {{Familytree|A}}  
| <big><tt>J</tt></big>  
| <big><code>J</code></big>  
| style="border: 1px solid gray"| {{Familytree|J}}  
| style="border: 1px solid gray"| {{Familytree|J}}  
|-  
|-  
| <big><tt>~</tt></big>
| <big><code>~</code></big>
| style="border:1px solid gray;"| {{Familytree|~}}  
| style="border:1px solid gray;"| {{Familytree|~}}  
| <big><tt>:</tt></big>
| <big><code>:</code></big>
| style="border:1px solid gray;"| {{Familytree|:}}  
| style="border:1px solid gray;"| {{Familytree|:}}  
| <big><tt> </tt></big>
| <big><code> </code></big>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}  
|}  
Line 74: Line 74:
|+ '''Mixed (1):'''  
|+ '''Mixed (1):'''  
|-  
|-  
| <big><tt>r</tt></big>
| <big><code>r</code></big>
| style="border:1px solid gray;"| {{Familytree|r}}  
| style="border:1px solid gray;"| {{Familytree|r}}  
| <big><tt>y</tt></big>
| <big><code>y</code></big>
| style="border:1px solid gray;"| {{Familytree|y}}  
| style="border:1px solid gray;"| {{Familytree|y}}  
| <big><tt>n</tt></big>
| <big><code>n</code></big>
| style="border:1px solid gray;"| {{Familytree|n}}  
| style="border:1px solid gray;"| {{Familytree|n}}  
|-  
|-  
| <big><tt>]</tt></big>
| <big><code>]</code></big>
| style="border:1px solid gray;"| {{Familytree|]}}  
| style="border:1px solid gray;"| {{Familytree|]}}  
| <big><tt>#</tt></big>
| <big><code>#</code></big>
| style="border:1px solid gray;"| {{Familytree|#}}  
| style="border:1px solid gray;"| {{Familytree|#}}  
| <big><tt>[</tt></big>
| <big><code>[</code></big>
| style="border:1px solid gray;"| {{Familytree|[}}  
| style="border:1px solid gray;"| {{Familytree|[}}  
|-  
|-  
| <big><tt>c</tt></big>
| <big><code>c</code></big>
| style="border:1px solid gray;"| {{Familytree|c}}  
| style="border:1px solid gray;"| {{Familytree|c}}  
| <big><tt>h</tt></big>
| <big><code>h</code></big>
| style="border:1px solid gray;"| {{Familytree|h}}  
| style="border:1px solid gray;"| {{Familytree|h}}  
| <big><tt>j</tt></big>
| <big><code>j</code></big>
| style="border:1px solid gray;"| {{Familytree|j}}  
| style="border:1px solid gray;"| {{Familytree|j}}  
|-  
|-  
| <big><tt>~</tt></big>
| <big><code>~</code></big>
| style="border:1px solid gray;"| {{Familytree|~}}  
| style="border:1px solid gray;"| {{Familytree|~}}  
| <big><tt>!</tt></big>
| <big><code>!</code></big>
| style="border:1px solid gray;"| {{Familytree|!}}  
| style="border:1px solid gray;"| {{Familytree|!}}  
| <big><tt> </tt></big>
| <big><code> </code></big>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}  
|}  
Line 105: Line 105:
|+ '''Mixed (2):'''  
|+ '''Mixed (2):'''  
|-  
|-  
| <big><tt>p</tt></big>
| <big><code>p</code></big>
| style="border:1px solid gray;"| {{Familytree|p}}  
| style="border:1px solid gray;"| {{Familytree|p}}  
| <big><tt>u</tt></big>
| <big><code>u</code></big>
| style="border:1px solid gray;"| {{Familytree|u}}  
| style="border:1px solid gray;"| {{Familytree|u}}  
| <big><tt>q</tt></big>
| <big><code>q</code></big>
| style="border:1px solid gray;"| {{Familytree|q}}  
| style="border:1px solid gray;"| {{Familytree|q}}  
|-  
|-  
| <big><tt>}</tt></big>
| <big><code>}</code></big>
| style="border:1px solid gray;"| {{Familytree|} }}
| style="border:1px solid gray;"| {{Familytree|} }}
| <big><tt>*</tt></big>
| <big><code>*</code></big>
| style="border:1px solid gray;"| {{Familytree|*}}  
| style="border:1px solid gray;"| {{Familytree|*}}  
| <big><tt>{</tt></big>
| <big><code>{</code></big>
| style="border:1px solid gray;"| {{Familytree|{}}  
| style="border:1px solid gray;"| {{Familytree|{}}  
|-  
|-  
| <big><tt>b</tt></big>
| <big><code>b</code></big>
| style="border:1px solid gray;"| {{Familytree|b}}  
| style="border:1px solid gray;"| {{Familytree|b}}  
| <big><tt>t</tt></big>
| <big><code>t</code></big>
| style="border:1px solid gray;"| {{Familytree|t}}  
| style="border:1px solid gray;"| {{Familytree|t}}  
| <big><tt>d</tt></big>
| <big><code>d</code></big>
| style="border:1px solid gray;"| {{Familytree|d}}  
| style="border:1px solid gray;"| {{Familytree|d}}  
|-  
|-  
| <big><tt>-</tt></big>
| <big><code>-</code></big>
| style="border:1px solid gray;"| {{Familytree|-}}  
| style="border:1px solid gray;"| {{Familytree|-}}  
| <big><tt>:</tt></big>
| <big><code>:</code></big>
| style="border:1px solid gray;"| {{Familytree|:}}  
| style="border:1px solid gray;"| {{Familytree|:}}  
| <big><tt> </tt></big>
| <big><code> </code></big>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}
|}

Revision as of 08:32, 6 July 2012

This is dependent on Template:Familytree/element.

Parameters

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

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

A "_" indicates to start a new row.

Boxes

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

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

gives


Grandpop
   
   
Mema
   
   
Grandma
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
Dad
   
   
   
   
   
   
Mommy
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
Me!