Jump to content
Wikipedia The Free Encyclopedia

Template:Tree chart/start

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
Warning This template is used on approximately 9,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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

The above documentation is transcluded from Template:Tree chart/start/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /