Template:Familytree/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (1 revision)
No edit summary
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{SPW|is not on|name=Familytree}}
'''{{tlx|{{PAGENAME}}}}''' is a template used to create ASCII-art style family trees and other similar diagrams. It is intended to repalce and supercede {{tlx|tree}}. It's main benefit here is that it works on mobile.  
 
This is dependent on [[Template:Familytree/element]].


== Parameters ==  
== 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'''.  
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 ===
'''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.  
'''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.  


Line 15: Line 12:
|+ '''Solid lines:'''  
|+ '''Solid lines:'''  
|-  
|-  
| <big><tt>,</tt></big>
| <span style="font-size:larger;"><code>,</code></span>
| style="border:1px solid gray;"| {{Familytree|,}}  
| style="border:1px solid gray;"| {{Familytree|,}}  
| <big><tt>v</tt></big>
| <span style="font-size:larger;"><code>v</code></span>
| style="border:1px solid gray;"| {{Familytree|v}}  
| style="border:1px solid gray;"| {{Familytree|v}}  
| <big><tt>.</tt></big>
| <span style="font-size:larger;"><code>.</code></span>
| style="border:1px solid gray;"| {{Familytree|.}}  
| style="border:1px solid gray;"| {{Familytree|.}}  
|-  
|-  
| <big><tt>)</tt></big>
| <span style="font-size:larger;"><code>)</code></span>
| style="border:1px solid gray;"| {{Familytree|)}}  
| style="border:1px solid gray;"| {{Familytree|)}}  
| <big><tt>+</tt></big>
| <span style="font-size:larger;"><code>+</code></span>
| style="border:1px solid gray;"| {{Familytree|+}}  
| style="border:1px solid gray;"| {{Familytree|+}}  
| <big><tt>(</tt></big>
| <span style="font-size:larger;"><code>(</code></span>
| style="border:1px solid gray;"| {{Familytree|(}}  
| style="border:1px solid gray;"| {{Familytree|(}}  
|-  
|-  
| <big><tt>`</tt></big>
| <span style="font-size:larger;"><code>`</code></span>
| style="border:1px solid gray;"| {{Familytree|`}}  
| style="border:1px solid gray;"| {{Familytree|`}}  
| <big><tt>^</tt></big>
| <span style="font-size:larger;"><code>^</code></span>
| style="border:1px solid gray;"| {{Familytree|^}}  
| style="border:1px solid gray;"| {{Familytree|^}}  
| <big><tt>'</tt></big>
| <span style="font-size:larger;"><code>'</code></span>
| style="border:1px solid gray;"| {{Familytree|'}}  
| style="border:1px solid gray;"| {{Familytree|'}}  
|-  
|-  
| <big><tt>-</tt></big>
| <span style="font-size:larger;"><code>-</code></span>
| style="border:1px solid gray;"| {{Familytree|-}}  
| style="border:1px solid gray;"| {{Familytree|-}}  
| <big><tt>!</tt></big>
| <span style="font-size:larger;"><code>!</code></span>
| style="border:1px solid gray;"| {{Familytree|!}}  
| style="border:1px solid gray;"| {{Familytree|!}}  
| <big><tt> </tt></big>
| <span style="font-size:larger;"><code> </code></span>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}
|}
Line 46: Line 43:
|+ '''Dashed lines:'''  
|+ '''Dashed lines:'''  
|-  
|-  
| <big><tt>F</tt></big>
| <span style="font-size:larger;"><code>F</code></span>
| style="border:1px solid gray;"| {{Familytree|F}}  
| style="border:1px solid gray;"| {{Familytree|F}}  
| <big><tt>V</tt></big>
| <span style="font-size:larger;"><code>V</code></span>
| style="border:1px solid gray;"| {{Familytree|V}}  
| style="border:1px solid gray;"| {{Familytree|V}}  
| <big><tt>7</tt></big>
| <span style="font-size:larger;"><code>7</code></span>
| style="border:1px solid gray;"| {{Familytree|7}}  
| style="border:1px solid gray;"| {{Familytree|7}}  
|-  
|-  
| <big><tt>D</tt></big>
| <span style="font-size:larger;"><code>D</code></span>
| style="border:1px solid gray;"| {{Familytree|D}}  
| style="border:1px solid gray;"| {{Familytree|D}}  
| <big><tt>%</tt></big>
| <span style="font-size:larger;"><code>%</code></span>
| style="border:1px solid gray;"| {{Familytree|%}}  
| style="border:1px solid gray;"| {{Familytree|%}}  
| <big><tt>C</tt></big>
| <span style="font-size:larger;"><code>C</code></span>
| style="border:1px solid gray;"| {{Familytree|C}}  
| style="border:1px solid gray;"| {{Familytree|C}}  
|-  
|-  
| <big><tt>L</tt></big>  
| <span style="font-size:larger;"><code>L</code></span>  
| style="border: 1px solid gray"| {{Familytree|L}}
| style="border: 1px solid gray"| {{Familytree|L}}
| <big><tt>A</tt></big>  
| <span style="font-size:larger;"><code>A</code></span>  
| style="border: 1px solid gray"| {{Familytree|A}}  
| style="border: 1px solid gray"| {{Familytree|A}}  
| <big><tt>J</tt></big>  
| <span style="font-size:larger;"><code>J</code></span>  
| style="border: 1px solid gray"| {{Familytree|J}}  
| style="border: 1px solid gray"| {{Familytree|J}}  
|-  
|-  
| <big><tt>~</tt></big>
| <span style="font-size:larger;"><code>~</code></span>
| style="border:1px solid gray;"| {{Familytree|~}}  
| style="border:1px solid gray;"| {{Familytree|~}}  
| <big><tt>:</tt></big>
| <span style="font-size:larger;"><code>:</code></span>
| style="border:1px solid gray;"| {{Familytree|:}}  
| style="border:1px solid gray;"| {{Familytree|:}}  
| <big><tt> </tt></big>
| <span style="font-size:larger;"><code> </code></span>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}  
|}  
Line 77: Line 74:
|+ '''Mixed (1):'''  
|+ '''Mixed (1):'''  
|-  
|-  
| <big><tt>r</tt></big>
| <span style="font-size:larger;"><code>r</code></span>
| style="border:1px solid gray;"| {{Familytree|r}}  
| style="border:1px solid gray;"| {{Familytree|r}}  
| <big><tt>y</tt></big>
| <span style="font-size:larger;"><code>y</code></span>
| style="border:1px solid gray;"| {{Familytree|y}}  
| style="border:1px solid gray;"| {{Familytree|y}}  
| <big><tt>n</tt></big>
| <span style="font-size:larger;"><code>n</code></span>
| style="border:1px solid gray;"| {{Familytree|n}}  
| style="border:1px solid gray;"| {{Familytree|n}}  
|-  
|-  
| <big><tt>]</tt></big>
| <span style="font-size:larger;"><code>]</code></span>
| style="border:1px solid gray;"| {{Familytree|]}}  
| style="border:1px solid gray;"| {{Familytree|]}}  
| <big><tt>#</tt></big>
| <span style="font-size:larger;"><code>#</code></span>
| style="border:1px solid gray;"| {{Familytree|#}}  
| style="border:1px solid gray;"| {{Familytree|#}}  
| <big><tt>[</tt></big>
| <span style="font-size:larger;"><code>[</code></span>
| style="border:1px solid gray;"| {{Familytree|[}}  
| style="border:1px solid gray;"| {{Familytree|[}}  
|-  
|-  
| <big><tt>c</tt></big>
| <span style="font-size:larger;"><code>c</code></span>
| style="border:1px solid gray;"| {{Familytree|c}}  
| style="border:1px solid gray;"| {{Familytree|c}}  
| <big><tt>h</tt></big>
| <span style="font-size:larger;"><code>h</code></span>
| style="border:1px solid gray;"| {{Familytree|h}}  
| style="border:1px solid gray;"| {{Familytree|h}}  
| <big><tt>j</tt></big>
| <span style="font-size:larger;"><code>j</code></span>
| style="border:1px solid gray;"| {{Familytree|j}}  
| style="border:1px solid gray;"| {{Familytree|j}}  
|-  
|-  
| <big><tt>~</tt></big>
| <span style="font-size:larger;"><code>~</code></span>
| style="border:1px solid gray;"| {{Familytree|~}}  
| style="border:1px solid gray;"| {{Familytree|~}}  
| <big><tt>!</tt></big>
| <span style="font-size:larger;"><code>!</code></span>
| style="border:1px solid gray;"| {{Familytree|!}}  
| style="border:1px solid gray;"| {{Familytree|!}}  
| <big><tt> </tt></big>
| <span style="font-size:larger;"><code> </code></span>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}  
|}  
Line 108: Line 105:
|+ '''Mixed (2):'''  
|+ '''Mixed (2):'''  
|-  
|-  
| <big><tt>p</tt></big>
| <span style="font-size:larger;"><code>p</code></span>
| style="border:1px solid gray;"| {{Familytree|p}}  
| style="border:1px solid gray;"| {{Familytree|p}}  
| <big><tt>u</tt></big>
| <span style="font-size:larger;"><code>u</code></span>
| style="border:1px solid gray;"| {{Familytree|u}}  
| style="border:1px solid gray;"| {{Familytree|u}}  
| <big><tt>q</tt></big>
| <span style="font-size:larger;"><code>q</code></span>
| style="border:1px solid gray;"| {{Familytree|q}}  
| style="border:1px solid gray;"| {{Familytree|q}}  
|-  
|-  
| <big><tt>}</tt></big>
| <span style="font-size:larger;"><code>}</code></span>
| style="border:1px solid gray;"| {{Familytree|} }}
| style="border:1px solid gray;"| {{Familytree|} }}
| <big><tt>*</tt></big>
| <span style="font-size:larger;"><code>*</code></span>
| style="border:1px solid gray;"| {{Familytree|*}}  
| style="border:1px solid gray;"| {{Familytree|*}}  
| <big><tt>{</tt></big>
| <span style="font-size:larger;"><code>{</code></span>
| style="border:1px solid gray;"| {{Familytree|{}}  
| style="border:1px solid gray;"| {{Familytree|{}}  
|-  
|-  
| <big><tt>b</tt></big>
| <span style="font-size:larger;"><code>b</code></span>
| style="border:1px solid gray;"| {{Familytree|b}}  
| style="border:1px solid gray;"| {{Familytree|b}}  
| <big><tt>t</tt></big>
| <span style="font-size:larger;"><code>t</code></span>
| style="border:1px solid gray;"| {{Familytree|t}}  
| style="border:1px solid gray;"| {{Familytree|t}}  
| <big><tt>d</tt></big>
| <span style="font-size:larger;"><code>d</code></span>
| style="border:1px solid gray;"| {{Familytree|d}}  
| style="border:1px solid gray;"| {{Familytree|d}}  
|-  
|-  
| <big><tt>-</tt></big>
| <span style="font-size:larger;"><code>-</code></span>
| style="border:1px solid gray;"| {{Familytree|-}}  
| style="border:1px solid gray;"| {{Familytree|-}}  
| <big><tt>:</tt></big>
| <span style="font-size:larger;"><code>:</code></span>
| style="border:1px solid gray;"| {{Familytree|:}}  
| style="border:1px solid gray;"| {{Familytree|:}}  
| <big><tt> </tt></big>
| <span style="font-size:larger;"><code> </code></span>
| style="border:1px solid gray;"| {{Familytree| }}  
| style="border:1px solid gray;"| {{Familytree| }}  
|}
|}


{{clr}}
{{clear}}
 
===New Line===


=== New line ===
A "_" indicates to start a new row.
A "_" indicates to start a new row.


===Boxes===
=== 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.
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.


Line 152: Line 147:
|Grandpop|y|Mema | |Grandma|_
|Grandpop|y|Mema | |Grandma|_
| |    | |!| | | | | | ! | |_
| |    | |!| | | | | | ! | |_
| |    | Dad |~|y|~| Mommy |_
| |    | Dad |~|y|~| Mom |_
| |    | | | | |!| | |  | |_
| |    | | | | |!| | |  | |_
| |    | | | | Me! | |  | |_
| |    | | | | Me! | |  | |_
Line 163: Line 158:
|Grandpop|y|Mema | |Grandma|_
|Grandpop|y|Mema | |Grandma|_
| |    | |!| | | | | | ! | |_
| |    | |!| | | | | | ! | |_
| |    | Dad |~|y|~| Mommy |_
| |    | Dad |~|y|~| Mom  |_
| |    | | | | |!| | |  | |_
| |    | | | | |!| | |  | |_
| |    | | | | Me! | |  | |_
| |    | | | | Me! | |  | |_
}}<noinclude>
}}
[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>
 
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly>
This template is dependent on [[Template:Familytree/element]].
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 20:29, 4 June 2023

{{Familytree/doc}} 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.