Template:Familytree/doc: Difference between revisions
m (1 revision) |
Bongolium500 (talk | contribs) No edit summary |
||
(13 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{ | '''{{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. | ||
== 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:''' | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>,</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|,}} | | style="border:1px solid gray;"| {{Familytree|,}} | ||
| < | | <span style="font-size:larger;"><code>v</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|v}} | | style="border:1px solid gray;"| {{Familytree|v}} | ||
| < | | <span style="font-size:larger;"><code>.</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|.}} | | style="border:1px solid gray;"| {{Familytree|.}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>)</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|)}} | | style="border:1px solid gray;"| {{Familytree|)}} | ||
| < | | <span style="font-size:larger;"><code>+</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|+}} | | style="border:1px solid gray;"| {{Familytree|+}} | ||
| < | | <span style="font-size:larger;"><code>(</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|(}} | | style="border:1px solid gray;"| {{Familytree|(}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>`</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|`}} | | style="border:1px solid gray;"| {{Familytree|`}} | ||
| < | | <span style="font-size:larger;"><code>^</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|^}} | | style="border:1px solid gray;"| {{Familytree|^}} | ||
| < | | <span style="font-size:larger;"><code>'</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|'}} | | style="border:1px solid gray;"| {{Familytree|'}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>-</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|-}} | | style="border:1px solid gray;"| {{Familytree|-}} | ||
| < | | <span style="font-size:larger;"><code>!</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|!}} | | style="border:1px solid gray;"| {{Familytree|!}} | ||
| < | | <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:''' | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>F</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|F}} | | style="border:1px solid gray;"| {{Familytree|F}} | ||
| < | | <span style="font-size:larger;"><code>V</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|V}} | | style="border:1px solid gray;"| {{Familytree|V}} | ||
| < | | <span style="font-size:larger;"><code>7</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|7}} | | style="border:1px solid gray;"| {{Familytree|7}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>D</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|D}} | | style="border:1px solid gray;"| {{Familytree|D}} | ||
| < | | <span style="font-size:larger;"><code>%</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|%}} | | style="border:1px solid gray;"| {{Familytree|%}} | ||
| < | | <span style="font-size:larger;"><code>C</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|C}} | | style="border:1px solid gray;"| {{Familytree|C}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>L</code></span> | ||
| style="border: 1px solid gray"| {{Familytree|L}} | | style="border: 1px solid gray"| {{Familytree|L}} | ||
| < | | <span style="font-size:larger;"><code>A</code></span> | ||
| style="border: 1px solid gray"| {{Familytree|A}} | | style="border: 1px solid gray"| {{Familytree|A}} | ||
| < | | <span style="font-size:larger;"><code>J</code></span> | ||
| style="border: 1px solid gray"| {{Familytree|J}} | | style="border: 1px solid gray"| {{Familytree|J}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>~</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|~}} | | style="border:1px solid gray;"| {{Familytree|~}} | ||
| < | | <span style="font-size:larger;"><code>:</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|:}} | | style="border:1px solid gray;"| {{Familytree|:}} | ||
| < | | <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):''' | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>r</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|r}} | | style="border:1px solid gray;"| {{Familytree|r}} | ||
| < | | <span style="font-size:larger;"><code>y</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|y}} | | style="border:1px solid gray;"| {{Familytree|y}} | ||
| < | | <span style="font-size:larger;"><code>n</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|n}} | | style="border:1px solid gray;"| {{Familytree|n}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>]</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|]}} | | style="border:1px solid gray;"| {{Familytree|]}} | ||
| < | | <span style="font-size:larger;"><code>#</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|#}} | | style="border:1px solid gray;"| {{Familytree|#}} | ||
| < | | <span style="font-size:larger;"><code>[</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|[}} | | style="border:1px solid gray;"| {{Familytree|[}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>c</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|c}} | | style="border:1px solid gray;"| {{Familytree|c}} | ||
| < | | <span style="font-size:larger;"><code>h</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|h}} | | style="border:1px solid gray;"| {{Familytree|h}} | ||
| < | | <span style="font-size:larger;"><code>j</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|j}} | | style="border:1px solid gray;"| {{Familytree|j}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>~</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|~}} | | style="border:1px solid gray;"| {{Familytree|~}} | ||
| < | | <span style="font-size:larger;"><code>!</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|!}} | | style="border:1px solid gray;"| {{Familytree|!}} | ||
| < | | <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):''' | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>p</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|p}} | | style="border:1px solid gray;"| {{Familytree|p}} | ||
| < | | <span style="font-size:larger;"><code>u</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|u}} | | style="border:1px solid gray;"| {{Familytree|u}} | ||
| < | | <span style="font-size:larger;"><code>q</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|q}} | | style="border:1px solid gray;"| {{Familytree|q}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>}</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|} }} | | style="border:1px solid gray;"| {{Familytree|} }} | ||
| < | | <span style="font-size:larger;"><code>*</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|*}} | | style="border:1px solid gray;"| {{Familytree|*}} | ||
| < | | <span style="font-size:larger;"><code>{</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|{}} | | style="border:1px solid gray;"| {{Familytree|{}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>b</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|b}} | | style="border:1px solid gray;"| {{Familytree|b}} | ||
| < | | <span style="font-size:larger;"><code>t</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|t}} | | style="border:1px solid gray;"| {{Familytree|t}} | ||
| < | | <span style="font-size:larger;"><code>d</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|d}} | | style="border:1px solid gray;"| {{Familytree|d}} | ||
|- | |- | ||
| < | | <span style="font-size:larger;"><code>-</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|-}} | | style="border:1px solid gray;"| {{Familytree|-}} | ||
| < | | <span style="font-size:larger;"><code>:</code></span> | ||
| style="border:1px solid gray;"| {{Familytree|:}} | | style="border:1px solid gray;"| {{Familytree|:}} | ||
| < | | <span style="font-size:larger;"><code> </code></span> | ||
| style="border:1px solid gray;"| {{Familytree| }} | | style="border:1px solid gray;"| {{Familytree| }} | ||
|} | |} | ||
{{ | {{clear}} | ||
=== 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|~| | | | | Dad |~|y|~| Mom |_ | ||
| | | | | | |!| | | | |_ | | | | | | | |!| | | | |_ | ||
| | | | | | Me! | | | |_ | | | | | | | Me! | | | |_ | ||
Line 163: | Line 158: | ||
|Grandpop|y|Mema | |Grandma|_ | |Grandpop|y|Mema | |Grandma|_ | ||
| | | |!| | | | | | ! | |_ | | | | |!| | | | | | ! | |_ | ||
| | | Dad |~|y|~| | | | | Dad |~|y|~| Mom |_ | ||
| | | | | | |!| | | | |_ | | | | | | | |!| | | | |_ | ||
| | | | | | Me! | | | |_ | | | | | | | Me! | | | |_ | ||
}} | }} | ||
[[ | |||
[[Category: | 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.
,
|
|
v
|
|
.
|
| |||||||||||||||
)
|
|
+
|
|
(
|
| |||||||||||||||
`
|
|
^
|
|
'
|
| |||||||||||||||
-
|
|
!
|
|
|
|
F
|
|
V
|
|
7
|
| |||||||||||||||
D
|
|
%
|
|
C
|
| |||||||||||||||
L
|
|
A
|
|
J
|
| |||||||||||||||
~
|
|
:
|
|
|
|
r
|
|
y
|
|
n
|
| |||||||||||||||
]
|
|
#
|
|
[
|
| |||||||||||||||
c
|
|
h
|
|
j
|
| |||||||||||||||
~
|
|
!
|
|
|
|
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.