Шаблон: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

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

It will be noticed that the example above has extraneous links 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

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

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)
****{{Tree list/final branch}}[[Image:Simple silver crown.svg|15px]] [[Мария Стюарт]] (1542–1587)
*****{{Tree list/final branch}}[[Image:Simple silver crown.svg|15px]] [[Image:Simple gold crown.svg|15px]] '''(7)''' [[Яков I (король Англии)|Яков I]] (1566–1625)
******{{Tree list/final branch}}''От которого происходят все последующие монархи Англии, Шотландии и Великобритании.''
***Александр (1514—1515)
***{{Tree list/final branch}}[[Дуглас, Маргарита|Маргарита Дуглас, графиня Леннокс]] (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)
***{{Tree list/final branch}}[[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)
****{{Tree list/final branch}}Элизабет Стоукс (1555–1556)
***[[Брэндон, Элеонора|Элеонора Клиффорд, графиня Камберленд]] (1519–1547)
****{{Tree list/final branch}}''От которой происходят все последующие [[Граф Дерби|Графы Дерби]].''
***{{Tree list/final branch}}[[Генри Брэндон, граф Линкольн]] (1523–1534)
**[[Эдмунд Тюдор, герцог Сомерсет]] (1499–1500) 
**{{Tree list/final branch}}Екатерина (1503–1503)
{{Tree list/end}}

which gives

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

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

which gives