Bản mẫu:Tree list/doc

This family of templates can be used to create a properly structured and accessible tree. This can be used to display family trees, succession to thrones, etc. They comprise:

Cú pháp

Bắt đầu và kết thúc của cây

The tree must include a start and finish, using the templates {{Tree list}} and {{Tree list/end}} respectively. The tree is essentially a series of nested lists built with the asterisk *.

{{Tree list}}* Here goes the content of the tree using asterisks.{{Tree list/end}}

The branches of the tree

Each branch of the tree is built using nested lists:

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

kết quả

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

Final branches

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}} like so:

{{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}}

trong đó kết quả

  • 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

Unlabelled branches

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}}

kết quả như sau:

  • 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

Các ví dụ

Một cây phả hệ

Mã :

{{Tree list}}*[[Hình:Simple gold crown.svg|15px]] '''(1)''' [[Henry VII của Anh|Henry VII]] (1457 - 1509)**[[Arthur, Thân vương xứ Wales]] (1486 - 1502)**[[Margaret Tudor|Margaret, Queen of Scots]] (1489 - 1541)***[[James, Duke of Rothesay]] (1507 - 1508)***[[Arthur, Duke of Rothesay]] (1509 - 1510)***[[Hình:Simple silver crown.svg|15px]] [[James V của Scotland]] (1512 - 1542)****{{Tree list/final branch}}[[Hình:Simple silver crown.svg|15px]] [[Mary I của Scotland]] (1542 - 1587)*****{{Tree list/final branch}}[[Hình:Simple silver crown.svg|15px]] [[Hình:Simple gold crown.svg|15px]] '''(7)''' [[James I của Anh|James VI of Scotland and I of England]] (1566 - 1625)******{{Tree list/final branch}}''From whom succeeeding English, Scottish and British monarchs are decended.''***[[Alexander Stewart, Duke of Ross]] (1514 - 1515)***{{Tree list/final branch}}[[Margaret Douglas|Margaret Douglas, Countess of Lennox]] (1515 - 1578)**[[Hình:Simple gold crown.svg|15px]] '''(2)''' [[Henry VIII của Anh]] (1491 - 1547)***[[Henry, Duke of Cornwall]] (1511 - 1511)***[[Hình:Simple gold crown.svg|15px]] '''(5)''' [[Mary I of England]] (1516 - 1558)***[[Hình:Simple gold crown.svg|15px]] '''(6)''' [[Elizabeth I của Anh]] (1533 - 1603)***{{Tree list/final branch}}[[Hình:Simple gold crown.svg|15px]] '''(3)''' [[Edward VI of England]]**[[Elizabeth Tudor (daughter of Henry VII)|Elizabeth Tudor]] (1492 - 1495)**[[Mary Tudor, Vương hậu Pháp|Mary, Queen of France]] (1496 - 1533)***Henry Brandon (1516 - 1522)***[[Frances Grey, Duchess of Suffolk]] (1517 - 1547)****[[Hình:Simple gold crown.svg|15px]] '''(4)''' [[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}}

trong đó đưa ra

  • (1) Henry VII (1457 - 1509)
    • Arthur, Thân vương xứ Wales (1486 - 1502)
    • Margaret, Queen of Scots (1489 - 1541)
    • (2) Henry VIII của Anh (1491 - 1547)
      • Henry, Duke of Cornwall (1511 - 1511)
      • (5) Mary I of England (1516 - 1558)
      • (6) Elizabeth I của Anh (1533 - 1603)
      • (3) Edward VI of England
    • Elizabeth Tudor (1492 - 1495)
    • Mary, Queen of France (1496 - 1533)
      • Henry Brandon (1516 - 1522)
      • Frances Grey, Duchess of Suffolk (1517 - 1547)
        • (4) Jane Grey (1536 - 1553)
        • Catherine Seymour, Countess of Hertford (1540 - 1568)
        • Lady Mary Keyes (1545 - 1578)
        • Elizabeth Stokes (1555 - 1556)
      • Eleanor Clifford, Countess of Cumberland (1519 - 1547)
        • From whom are descended the Earls of Derby
      • Henry Brandon, 1st Earl of Lincoln (1523 - 1534)
    • Edmund Tudor, Duke of Somerset (1499 - 1500)
    • Katherine Tudor (1503 - 1503)

A cladogram

{{Tree list}}*[[Tetrapoda]]** {{Tree list/branching}}*** De nombreux groupes éteints dont comme les ''[[Eucritta]]''*** {{Tree list/final branch}} '''[[Lissamphibia]]''' dont les ancêtres des amphibiens actuels** {{Tree list/final branching}}*** De nombreux groupes éteints qui rappellent les amphibiens avec des caractéristiques reptiliennes plus ou moins prononcées comme les [[Eoherpetontidae]], les [[Embolomeri]], [[Tokosauridae]], [[Chroniosuchidae]], [[Gephyrostegidae]], [[Solenodonsauridae]], [[Seymouriamorpha]], [[Westlothiana]], [[Lepospondyli]]*** {{Tree list/final branch}}[[Cotylosauria]]**** [[Amniota]], à l’origine tous « reptiliens »**** {{Tree list/final branch}} D’autres taxons frères éteint comme les [[Diadectomorpha]] ou les [[Tseajaiidae]] assez proche des reptiles{{Tree list/end}}
  • Tetrapoda
      • De nombreux groupes éteints dont comme les Eucritta
      • Lissamphibia dont les ancêtres des amphibiens actuels
      • De nombreux groupes éteints qui rappellent les amphibiens avec des caractéristiques reptiliennes plus ou moins prononcées comme les Eoherpetontidae, les Embolomeri, Tokosauridae, Chroniosuchidae, Gephyrostegidae, Solenodonsauridae, Seymouriamorpha, Westlothiana, Lepospondyli
      • Cotylosauria
        • Amniota, à l’origine tous « reptiliens »
        • D’autres taxons frères éteint comme les Diadectomorpha ou les Tseajaiidae assez proche des reptiles