本樹狀模板可以用在創建一個適合的結構與可以處理的樹狀圖,每個元素都會有一條線。這個模板可以顯示家族樹、後代與前代等,其組成模板包含:

獨立的階層必須在前面標星號。

參數 编辑

開始與結束模板 编辑

The outermost level of the tree is denoted by start and finish markers, using the templates {{Tree list}} and {{Tree list/end}}respectively. The tree is essentially a series of nested lists built with the asterisks ("*") between these two markers.

{{Tree list}}
* Content of the tree spanning multiple lines. Each line is preceded by one or more asterisks.
{{Tree list/end}}

樹狀分支 编辑

每個樹狀圖的分支,皆使用巢狀列表:

{{Tree list}}
*  A first level branch
** A second level branch
*** A third level branch
{{Tree list/end}}

結果:

  • A first level branch
    • A second level branch
      • A third level branch

最終分支 编辑

It will be noticed that the example above has a rouge link below the last entry. In order to display the final branches properly, it is necessary to use the template {{Tree list/final branch}} thus:

{{Tree list}}
*  A first level branch
** A second level branch
*** A third level branch
*** Another third level branch
*** {{Tree list/final branch}} The final third level branch
** Another second level branch
** {{Tree list/final branch}} The final second level branch
{{Tree list/end}}

which produces

  • A first level branch
    • A second level branch
      • A third level branch
      • Another third level branch
      • The final third level branch
    • Another second level branch
    • The final second level branch

未標籤分支 编辑

An unlabelled branch may be formed by using the {{Tree list/branching}} template or, if it is the final branch, the {{Tree list/final branching}} template.

{{Tree list}}
*  A first level branch
** {{Tree list/branching}}
*** A third level branch
*** Another third level branch
*** {{Tree list/final branch}} The final third level branch
** A second level branch
** {{Tree list/final branching}}                 <!--- This branch ends the second level --->
*** A third level branch
*** {{Tree list/final branch}} The final third level branch
{{Tree list/end}}

produces the following:

  • A first level branch
      • A third level branch
      • Another third level branch
      • The final third level branch
    • A second level branch
      • A third level branch
      • The final third level branch

舉例 编辑

家族樹 编辑

原始碼:

{{Tree list}}
*[[Image:Simple gold crown.svg|15px]] '''(1)''' [[Henry VII of England|Henry VII]] (1457–1509)
**[[Arthur, Prince of Wales]] (1486–1502)
**[[Margaret Tudor|Margaret, Queen of Scots]] (1489–1541)
***[[James, Duke of Rothesay]] (1507–1508)
***[[Arthur, Duke of Rothesay]] (1509–1510)
***[[Image:Simple silver crown.svg|15px]] [[James V of Scotland]] (1512–1542)
****{{Tree list/final branch}}[[Image:Simple silver crown.svg|15px]] [[Mary, Queen of Scots]] (1542–1587)
*****{{Tree list/final branch}}[[Image:Simple silver crown.svg|15px]] [[Image:Simple gold crown.svg|15px]] '''(7)''' [[James VI and I|James VI of Scotland and I of England]] (1566–1625)
******{{Tree list/final branch}}''From whom succeeding English, Scottish and British monarchs are descended.''
***[[Alexander Stewart, Duke of Ross]] (1514–1515)
***{{Tree list/final branch}}[[Margaret Douglas|Margaret Douglas, Countess of Lennox]] (1515–1578)
**[[Image:Simple gold crown.svg|15px]] '''(2)''' [[Henry VIII of England]] (1491–1547)
***[[Henry, Duke of Cornwall]] (1511–1511)
***[[Image:Simple gold crown.svg|15px]] '''(5)''' [[Mary I of England]] (1516–1558)
***[[Image:Simple gold crown.svg|15px]] '''(6)''' [[Elizabeth I of England]] (1533–1603)
***{{Tree list/final branch}}[[Image:Simple gold crown.svg|15px]] '''(3)''' [[Edward VI of England]]
**[[Elizabeth Tudor (daughter of Henry VII)|Elizabeth Tudor]] (1492–1495)
**[[Mary Tudor (queen consort of France)|Mary, Queen of France]] (1496–1533)
***Henry Brandon (1516–1522)
***[[Frances Grey, Duchess of Suffolk]] (1517–1547)
****[[Image:Simple gold crown.svg|15px]] '''(4)''' [[Lady Jane Grey]] (1536–1553)
****[[Lady Catherine Grey|Catherine Seymour, Countess of Hertford]] (1540–1568)
****[[Lady Mary Grey|Lady Mary Keyes]] (1545–1578)
****{{Tree list/final branch}}Elizabeth Stokes (1555–1556)
***[[Eleanor Clifford, Countess of Cumberland]] (1519–1547)
****{{Tree list/final branch}}''From whom are descended the [[Earl of Derby|Earls of Derby]].''
***{{Tree list/final branch}}[[Henry Brandon, 1st Earl of Lincoln]] (1523–1534)
**[[Edmund Tudor, Duke of Somerset]] (1499–1500) 
**{{Tree list/final branch}}[[Katherine Tudor (1503)|Katherine Tudor]] (1503–1503)
{{Tree list/end}}

結果:

演化樹 编辑

{{Tree list}}
*[[四足類|Tetrapoda]]
** {{Tree list/branching}}
*** Numerous extinct groups such as ''[[Eucritta]]''
*** {{Tree list/final branch}} '''[[滑体亚纲|Lissamphibia]]'''  including the ancestors of living amphibians
** {{Tree list/final branching}}
*** Numerous extinct groups similar to amphibians but with some reptilian characteristics such as the  [[Eoherpetontidae]], les [[Embolomeri]], [[Tokosaurus]], [[Chroniosuchidae]], [[Gephyrostegidae]], [[Solenodonsaurus]], [[Seymouriamorpha]], [[Westlothiana]], [[殼椎亞綱|Lepospondyli]]
*** {{Tree list/final branch}}[[大鼻龍科|Cotylosaur]]
**** [[Amniota]], including the ancestors of all the reptiles 
**** {{Tree list/final branch}} Other extinct taxa such as the  [[Diadectomorpha]] or the[[Tseajaiidae]], close to the reptiles
{{Tree list/end}}

結果: