Difference between revisions of "Chart/doc"
From Children of StarClan
< Template:Chart
(New page: This is a template for rendering simple diagrams consisting of boxes and connecting lines based loosely on an ASCII art-like syntax. The trees are displayed as HTML tables using [[...) |
(→Migration from familytree) |
||
Line 8: | Line 8: | ||
==Migration from familytree== | ==Migration from familytree== | ||
+ | The {{tl|chart}} template is largely compatible with the earlier {{tl|familytree}} template. However, to use the additional functionality offered with this template, diagrams must be updated to use {{tl|chart}} instead. Many {{tl|familytree}} diagrams can be altered to use {{tl|chart}} and its sub-templates simply by replacing the wikitext <tt>familytree</tt> with <tt>chart</tt>. A few of the "mixed" tiles had to be renamed, and {{tl|familytree}} diagrams using these tiles will have to make a few changes. Additionally, two new "mixed" tiles have been added, joining solid lines to dashed lines. The following table summarises the differences: | ||
+ | {| class="notwikitable" style="text-align:center;" border="1" cellspacing="0" cellpadding="3" | ||
+ | !Tile!!{{tl|familytree}}!!{{tl|chart}} | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|c}}{{chart/end}}||<tt>{</tt>||<tt>c</tt> | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|d}}{{chart/end}}||<tt>}</tt>||<tt>d</tt> | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|t}}{{chart/end}}||<tt>#</tt>||<tt>t</tt> | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|e}}{{chart/end}}||<tt>[</tt>||<tt>e</tt> | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|f}}{{chart/end}}||<tt>]</tt>||<tt>f</tt> | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|i}}{{chart/end}}|| ||<tt>i</tt> | ||
+ | |- | ||
+ | |{{chart/start}}{{chart|j}}{{chart/end}}|| ||<tt>j</tt> | ||
+ | |} | ||
+ | |||
+ | Lastly, if any uses of the {{tl|familytree}} template end with <tt>|}}</tt>, that vertical bar should be removed, leaving the last cell in that row containing either some text or a space. |
Revision as of 20:17, 5 August 2008
This is a template for rendering simple diagrams consisting of boxes and connecting lines based loosely 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. This implementation was based on the {{familytree}} template.
Example usage
Parameters
Style attributes
Migration from familytree
The {{chart}} template is largely compatible with the earlier {{familytree}} template. However, to use the additional functionality offered with this template, diagrams must be updated to use {{chart}} instead. Many {{familytree}} diagrams can be altered to use {{chart}} and its sub-templates simply by replacing the wikitext familytree with chart. A few of the "mixed" tiles had to be renamed, and {{familytree}} diagrams using these tiles will have to make a few changes. Additionally, two new "mixed" tiles have been added, joining solid lines to dashed lines. The following table summarises the differences:
Tile | {{familytree}} | {{chart}} | ||||
---|---|---|---|---|---|---|
{ | c | |||||
} | d | |||||
# | t | |||||
[ | e | |||||
] | f | |||||
i | ||||||
j |
Lastly, if any uses of the {{familytree}} template end with |}}, that vertical bar should be removed, leaving the last cell in that row containing either some text or a space.