Template:Chart2/doc

The Chart2 family of templates are for rendering simple family trees consisting of boxes and connecting lines based on an ASCII art-like syntax. The trees are displayed as HTML tables using CSS attributes, and may contain arbitrary wiki markup within the boxes.

Example usage
This code: Produces this:

Parameters
The Chart2 template produces one row in a family tree table. The template accepts up to 80 unnamed parameters describing the contents of the table. Each parameter specifies a tile or content.


 * Tiles are line drawing symbols consisting of horizontal and vertical lines and various corners and crossings thereof. Tiles are specified using three-character combinations that more or less approximate the shape of the tile in appearance.  A special case of a tile is the empty tile, specified by three spaces.  A table of supported tiles is given below.


 * Content can contain arbitrary wiki markup. Content is specified using additional named parameters appended to the template call.  Each box is one tile wide and normally has no border.  Content can have any name that is a valid template parameter name, although punctuation characters should be avoided to prevent conflicts with tile symbols.

Style attributes
The appearance of the boxes may be controlled by the optional template parameters border and boxstyle. The former sets the width of the box border in pixels, while the latter can be used to append arbitrary CSS declarations directly to the box style attributes. For example, the following code:

produces a result like this:

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

which produces the output:

The chart2/start template also accepts an optional style parameter that can be used to set CSS styles for the entire table.

Content width
The width of a content area can be varied to improve the appearance of the table, by using the width_NAME parameter for any content area.