Template:Treelist/doc

Syntax
Every input happens in pairs: a index for the lines, and a text value. Each is indicated using a "|" in front. The order that you put in each input is also the order they are displayed. The following syntax is used for that:


 * T creates a t-split (├)
 * L creates a turn (└)
 * 1 creates a blank space
 * 2 creates a vertical line (─)
 * s creates a split (┬)

You can combine these signs up to 4 layers.

Examples
creates the following (boring) display:

creates the following (boring) display:

It is also possible to put parts of the text on separate lines, like this:

Advanced!:

Technical stuff
This template simply invokes a repeated Template:Treelist/part. This template has two inputs: the first checks the value against a list of options and generates a index based on it. If there is a second input, it will place it behind it, and add a line break to allow the next line. The main template is simply a repeat of this template, with each pair of input-indexes assigned to the next instance of the part template.