Template:Tree chart/doc

From Dothack Wikipedia
Jump to navigation Jump to search

Lua error: Internal error: The interpreter has terminated with signal "11". Lua error: Internal error: The interpreter has terminated with signal "11". Lua error: Internal error: The interpreter has terminated with signal "11".

Usage

This template produces one row in a "family tree"-like chart consisting of boxes and connecting lines based loosely on an ASCII art-like syntax. It is meant to be used in conjunction with {{Tree chart/start}} and {{Tree chart/end}}. The chart is displayed as HTML tables using CSS attributes, and may contain arbitrary wiki markup within the boxes. This implementation was based on the now-deprecated {{family tree}} template.

Basic example

This code: <syntaxhighlight lang="wikitext">

Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

</syntaxhighlight>

produces this:

Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

This chart visually displays the information that I have a brother Joe and a little sister; my mom married my dad; and my dad's parents were Grandma and Grandpa; and my dad's parents had another child, Aunt Daisy. The code above produces a table of size 9 rows x 18 columns as shown below.

The table structure created using the example above
The table structure created using the example above

Collapsible basic example

This code uses {{chart top}}: <syntaxhighlight lang="wikitext">

An example family tree
Lua error: Internal error: The interpreter has terminated with signal "11". Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

</syntaxhighlight>

produces this:

An example family tree
Lua error: Internal error: The interpreter has terminated with signal "11". Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

This chart visually displays the information that I have a brother Joe and a little sister; my mom married my dad; and my dad's parents were Grandma and Grandpa; and my dad's parents had another child, Aunt Daisy.

Parameters

The template accepts any number of unnamed parameters with each parameter specifying a tile or a box.

  • Boxes can contain arbitrary wiki markup. The content of each box is specified using additional named parameters appended to the template call. Each box is three tiles wide and normally has a black border two pixels wide. Boxes can have any name that is a valid template parameter name, subject to a minimum of two alphabetical characters.
  • Tiles are line drawing symbols used to connect the boxes. They consist of various styles of horizontal and vertical lines along with corners and crossings as needed. Tiles are specified using their one- or two-character name: for the most common tiles, that character is more or less approximate to the tile's appearance. A special case of a tile is the empty tile, specified by a single space character. A table of available tiles is given below.
Solid lines:
! Lua error: Internal error: The interpreter has terminated with signal "11".
  , Lua error: Internal error: The interpreter has terminated with signal "11".
  v Lua error: Internal error: The interpreter has terminated with signal "11".
  . Lua error: Internal error: The interpreter has terminated with signal "11".
 
- Lua error: Internal error: The interpreter has terminated with signal "11".
  ) Lua error: Internal error: The interpreter has terminated with signal "11".
  + Lua error: Internal error: The interpreter has terminated with signal "11".
  ( Lua error: Internal error: The interpreter has terminated with signal "11".
 
` Lua error: Internal error: The interpreter has terminated with signal "11".
  ^ Lua error: Internal error: The interpreter has terminated with signal "11".
  ' Lua error: Internal error: The interpreter has terminated with signal "11".
 
Dashed lines:
: Lua error: Internal error: The interpreter has terminated with signal "11".
  F Lua error: Internal error: The interpreter has terminated with signal "11".
  V Lua error: Internal error: The interpreter has terminated with signal "11".
  7 Lua error: Internal error: The interpreter has terminated with signal "11".
 
~ Lua error: Internal error: The interpreter has terminated with signal "11".
  D Lua error: Internal error: The interpreter has terminated with signal "11".
  % Lua error: Internal error: The interpreter has terminated with signal "11".
  C Lua error: Internal error: The interpreter has terminated with signal "11".
 
L Lua error: Internal error: The interpreter has terminated with signal "11".
  A Lua error: Internal error: The interpreter has terminated with signal "11".
  J Lua error: Internal error: The interpreter has terminated with signal "11".
 
Dotted lines:
Q Lua error: Internal error: The interpreter has terminated with signal "11".
  S Lua error: Internal error: The interpreter has terminated with signal "11".
  M Lua error: Internal error: The interpreter has terminated with signal "11".
  T Lua error: Internal error: The interpreter has terminated with signal "11".
 
P Lua error: Internal error: The interpreter has terminated with signal "11".
  H Lua error: Internal error: The interpreter has terminated with signal "11".
  R Lua error: Internal error: The interpreter has terminated with signal "11".
  G Lua error: Internal error: The interpreter has terminated with signal "11".
 
Y Lua error: Internal error: The interpreter has terminated with signal "11".
  W Lua error: Internal error: The interpreter has terminated with signal "11".
  Z Lua error: Internal error: The interpreter has terminated with signal "11".
 
Dashes hrzntl solid vrtcl:
fy Lua error: Internal error: The interpreter has terminated with signal "11".
y Lua error: Internal error: The interpreter has terminated with signal "11".
ye Lua error: Internal error: The interpreter has terminated with signal "11".
f Lua error: Internal error: The interpreter has terminated with signal "11".
t Lua error: Internal error: The interpreter has terminated with signal "11".
e Lua error: Internal error: The interpreter has terminated with signal "11".
fh Lua error: Internal error: The interpreter has terminated with signal "11".
h Lua error: Internal error: The interpreter has terminated with signal "11".
he Lua error: Internal error: The interpreter has terminated with signal "11".
Solid hrzntl dashes vrtcl:
dj Lua error: Internal error: The interpreter has terminated with signal "11".
j Lua error: Internal error: The interpreter has terminated with signal "11".
jc Lua error: Internal error: The interpreter has terminated with signal "11".
d Lua error: Internal error: The interpreter has terminated with signal "11".
* Lua error: Internal error: The interpreter has terminated with signal "11".
c Lua error: Internal error: The interpreter has terminated with signal "11".
di Lua error: Internal error: The interpreter has terminated with signal "11".
i Lua error: Internal error: The interpreter has terminated with signal "11".
ic Lua error: Internal error: The interpreter has terminated with signal "11".
Solid hrzntl dot vrtcl:
kr Lua error: Internal error: The interpreter has terminated with signal "11".
r Lua error: Internal error: The interpreter has terminated with signal "11".
rl Lua error: Internal error: The interpreter has terminated with signal "11".
k Lua error: Internal error: The interpreter has terminated with signal "11".
a Lua error: Internal error: The interpreter has terminated with signal "11".
l Lua error: Internal error: The interpreter has terminated with signal "11".
kq Lua error: Internal error: The interpreter has terminated with signal "11".
q Lua error: Internal error: The interpreter has terminated with signal "11".
ql Lua error: Internal error: The interpreter has terminated with signal "11".
Dashed hrzntl dot vrtcl:
kr2 Lua error: Internal error: The interpreter has terminated with signal "11".
r2 Lua error: Internal error: The interpreter has terminated with signal "11".
rl2 Lua error: Internal error: The interpreter has terminated with signal "11".
k2 Lua error: Internal error: The interpreter has terminated with signal "11".
a2 Lua error: Internal error: The interpreter has terminated with signal "11".
l2 Lua error: Internal error: The interpreter has terminated with signal "11".
kq2 Lua error: Internal error: The interpreter has terminated with signal "11".
q2 Lua error: Internal error: The interpreter has terminated with signal "11".
ql2 Lua error: Internal error: The interpreter has terminated with signal "11".
Dots hrzntl solid vrtcl:
om Lua error: Internal error: The interpreter has terminated with signal "11".
m Lua error: Internal error: The interpreter has terminated with signal "11".
mp Lua error: Internal error: The interpreter has terminated with signal "11".
o Lua error: Internal error: The interpreter has terminated with signal "11".
b Lua error: Internal error: The interpreter has terminated with signal "11".
p Lua error: Internal error: The interpreter has terminated with signal "11".
on Lua error: Internal error: The interpreter has terminated with signal "11".
n Lua error: Internal error: The interpreter has terminated with signal "11".
np Lua error: Internal error: The interpreter has terminated with signal "11".
Dots hrzntl dashes vrtcl:
om2 Lua error: Internal error: The interpreter has terminated with signal "11".
m2 Lua error: Internal error: The interpreter has terminated with signal "11".
mp2 Lua error: Internal error: The interpreter has terminated with signal "11".
o2 Lua error: Internal error: The interpreter has terminated with signal "11".
b2 Lua error: Internal error: The interpreter has terminated with signal "11".
p2 Lua error: Internal error: The interpreter has terminated with signal "11".
on2 Lua error: Internal error: The interpreter has terminated with signal "11".
n2 Lua error: Internal error: The interpreter has terminated with signal "11".
np2 Lua error: Internal error: The interpreter has terminated with signal "11".
Miscellaneous (grey background not available in, or changed from, familytree):
k3 Lua error: Internal error: The interpreter has terminated with signal "11".
T2 Lua error: Internal error: The interpreter has terminated with signal "11".
l3 Lua error: Internal error: The interpreter has terminated with signal "11".
l4 Lua error: Internal error: The interpreter has terminated with signal "11".
G2 Lua error: Internal error: The interpreter has terminated with signal "11".
b3 Lua error: Internal error: The interpreter has terminated with signal "11".
E Lua error: Internal error: The interpreter has terminated with signal "11".
K Lua error: Internal error: The interpreter has terminated with signal "11".
U Lua error: Internal error: The interpreter has terminated with signal "11".
X Lua error: Internal error: The interpreter has terminated with signal "11".
X2 Lua error: Internal error: The interpreter has terminated with signal "11".

Style attributes

The appearance of the boxes in a row may be controlled by the following optional template parameters:

  • border specifies the width of the box border in pixels,
  • boxstyle can be used to append arbitrary CSS declarations directly to the box style attributes. For example, the following code:

<syntaxhighlight lang="wikitext">

Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

</syntaxhighlight>

produces this chart:

Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

Style attributes can even be set for individual boxes within each row, as in the example below:

<syntaxhighlight lang="wikitext">

Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

</syntaxhighlight>

which produces this:

Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".Lua error: Internal error: The interpreter has terminated with signal "11".

red-outlined triangle containing exclamation point 'Note:' When specifying style attributes for individual named boxes, make sure the box names are aligned to the left side of the area reserved for them in the template call (as in "|RED  |" instead of "| RED |" in the example above), otherwise the template will end up looking for a style parameter with spaces in its name.

The {{Tree chart/start}} template also accepts an optional |style= parameter that can be used to set CSS styles for the entire diagram, and an optional |align= parameter to set the chart alignment.

See also