Template:Tree chart/start/doc
| 此頁面是Template:Tree chart/start的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 此Template文档被引用於約2,400個頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
Usage
[编辑]This template is meant to be used in conjunction with {{Tree chart}} and {{Tree chart/end}} to create various types of charts (such as family trees). See {{Tree chart}}'s documentation for help on how to actually make charts.
Parameters
[编辑]- style (optional) Can be used to set a basic CSS style for the entire chart.
- align (optional) Sets chart alignment: left, right or center.
Example
[编辑]The following example shows the use of two parameters. A summary is specified ("This is an example chart") and the whole chart's background color is set to blue. The example also shows how the chart's overall style can be overridden by more specific styles set by {{Tree chart}}. In this case, the color of the first row of cells is set to yellow using the features of the {{Tree chart}} template; see that template's documentation for details on how to specify the CSS of rows and individual cells of a chart.
{{Tree chart/start|style=background:blue;}}
{{Tree chart|border=1|boxstyle=background:yellow; | | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}}
{{Tree chart| | |,|-|^|-|.| | }}
{{Tree chart| | FOO | | BAR | |FOO=Box 3|BAR=Box 4}}
{{Tree chart/end}}
produces this chart:
| Box 1 | Box 2 | ||||||||||||||||
| Box 3 | Box 4 | ||||||||||||||||
See also
[编辑]- Wikipedia:Family trees
{{Tree chart/end}}{{chart top}}{{Tree chart}}{{chart bottom}}