Шаблон:Tree list

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску
Документация

Это семейство шаблонов может использоваться для создания надлежащим образом структурированного и доступного дерева, в котором каждый элемент находится в отдельной строке. Оно может использоваться для отображения семейного дерева, дерева преемственности трона, и т. д. Они включают в себя:

  • {{Tree list}}

Уровни отступа обозначаются звездочками

Синтаксис[править код]

Начало и конец дерева[править код]

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

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

produces

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

Unlabelled branches[править код]

An unlabelled branch may be formed by using the {{Tree list/branching}} template.

{{Tree list}}
*  A first level branch
** {{Tree list/branching}}
*** A third level branch
*** Another third level branch
*** The final third level branch
** A second level branch
** {{Tree list/branching}}                 <!--- This branch ends the second level --->
*** A third level 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

Примеры[править код]

A family tree[править код]

Code :

{{Tree list}}
*[[Image:Simple gold crown.svg|15px]] '''(1)''' [[Генрих VII (король Англии)|Генрих VII]] (1457–1509)
**[[Артур, принц Уэльский]] (1486–1502)
**[[Маргарита Тюдор]] (1489–1541)
***Джеймс (1507—1508)
***Артур (1509—1510)
***[[Image:Simple silver crown.svg|15px]] [[Яков V]] (1512–1542)
****[[Image:Simple silver crown.svg|15px]] [[Мария Стюарт]] (1542–1587)
*****[[Image:Simple silver crown.svg|15px]] [[Image:Simple gold crown.svg|15px]] '''(7)''' [[Яков I (король Англии)|Яков I]] (1566–1625)
******''От которого происходят все последующие монархи Англии, Шотландии и Великобритании.''
***Александр (1514—1515)
***[[Дуглас, Маргарита|Маргарита Дуглас, графиня Леннокс]] (1515–1578)
**[[Image:Simple gold crown.svg|15px]] '''(2)''' [[Генрих VIII]] (1491 - 1547)
***Генри (р. и ум 1511)
***[[Image:Simple gold crown.svg|15px]] '''(5)''' [[Мария I (королева Англии)]] (1516–1558)
***[[Image:Simple gold crown.svg|15px]] '''(6)''' [[Елизавета I]] (1533–1603)
***[[Image:Simple gold crown.svg|15px]] '''(3)''' [[Эдуард VI]]
**Елизавета (1492–1495)
**[[Мария Тюдор (королева Франции)]] (1496–1533)
***Генри (11 марта 1516—1522)
***[[Брэндон, Фрэнсис|Фрэнсис Грей, герцогиня Саффолк]] (1517–1547)
****[[Image:Simple gold crown.svg|15px]] '''(4)''' [[Грей, Джейн]] (1536–1553)
****[[Грей, Катерина]] (1540–1568)
****[[Грей, Мария]] (1545–1578)
****Элизабет Стоукс (1555–1556)
***[[Брэндон, Элеонора|Элеонора Клиффорд, графиня Камберленд]] (1519–1547)
****''От которой происходят все последующие [[Граф Дерби|Графы Дерби]].''
***[[Генри Брэндон, граф Линкольн]] (1523–1534)
**[[Эдмунд Тюдор, герцог Сомерсет]] (1499–1500) 
**Екатерина (1503–1503)
{{Tree list/end}}

which gives

A cladogram[править код]

{{Tree list}}
*[[Tetrapoda]]
** {{Tree list/branching}}
*** Numerous extinct groups such as ''[[Eucritta]]''
*** '''[[Lissamphibia]]'''  including the ancestors of living amphibians
** {{Tree list/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]]
*** [[Captorhinidae|Cotylosaur]]
**** [[Amniota]], including the ancestors of all the reptiles 
**** Other extinct taxa such as the  [[Diadectomorpha]] or the[[Tseajaiidae]], close to the reptiles
{{Tree list/end}}

which gives