Template:Wikidata/FamilyTree
Uses Lua: |
This template uses TemplateStyles: |
Empty templates
[edit]{{Wikidata/FamilyTree|entityId=}}
{{Wikidata/FamilyTree}}
{{Wikidata/FamilyTree|title=|title-background=lightgrey|invert=true|ancestors=4|descendants=0|years=|decorate=by-generation}}
{{Wikidata/FamilyTree|title=|title-background=|ancestors=|descendants=|years=}}
{{Wikidata/FamilyTree |entityId = |mode = |interleave = |invert = |title = |title-background = |max-height = |ancestors = |descendants = |years = |decorate = }}
Samples
[edit]{{Wikidata/FamilyTree|entityId=Q7200}}
{{Wikidata/FamilyTree|title=Family of {{Q|Q7200}}|entityId=Q7200}}
{{Wikidata/FamilyTree|entityId=Q7200|title={{Q|Q7200}} (inverted)|ancestors=4|descendants=0|compact=true|invert=1|decorate=by-generation}}
{{Wikidata/FamilyTree|entityId=Q63012|title=Vertical tree with scroll bars|title-background={{цвет|Германия}}|ancestors=3|descendants=3|mode=vertical}}
{{Wikidata/FamilyTree|entityId=Q185126|title=Parents incest|ancestors=4|descendants=0|invert=1|decorate=by-generation|years=0}}
{{Wikidata/FamilyTree|entityId=Q979180|title=Grand-grand parents incest|ancestors=4|descendants=0|invert=1|decorate=by-generation|years=0}}
Title of family tree box
[edit]The title in English by default is "Family tree of" followed by the label of the "entityID" at Wikidata.
For other languages, this defaults to the label of d:Q189977 that is currently "family tree". For languages that are not LTR, merely the label of the entity is displayed.
Depending on the language you are using, the tree at the beginning of this section shows the corresponding titles for Charlemagne (Q3044).
To define better titles for other languages, add a line similar to "|en=" in the template.
Parameters
[edit]family tree from Wikidata
Parameter | Description | Type | Status | |
---|---|---|---|---|
entityId | entityId | Идентификатор сущности Викиданных (если нужно отличный от текущей страницы); Wikidata item of the person in the center of the tree, defaults to item associated with the category
| String | optional |
title | title | Видимый заголовок
| Unknown | optional |
title-background | title-background | no description | Unknown | optional |
mode | mode | Режим отображения древа: горизонтальный или вертикальный; general layout of family tree
| Line | optional |
interleave | interleave | Использовать "прослаивание" поколений между собой, уменьшая "высоту" дерева (за счёт "ширины") | Boolean | optional |
invert | invert | Инвертировать направление дерева; in horizontal mode ancestors are displayed left, descendants on the right, invert=1 switches that
| Boolean | optional |
max-height | max-height | Максимальная высота содержимого до появления прокрутки
| Line | optional |
ancestors | ancestors | Количество поколений предков для отображения. Указание большого значения может привести к переполнению памяти. number of ancestors generations
| Number | optional |
descendants | descendants | Количество поколений потомков для отображения. Указание большого значения может привести к переполнению памяти.
| Number | optional |
years | years | Показывать или нет годы рождения и смерти
| Unknown | optional |
decorate | decorate | Правило окрашивания ячеек: none, by-generation
| String | optional |
descriptions | descriptions | display descriptions from Wikidata (can be long)
| Boolean | optional |
compact | compact | no description | Unknown | optional |
style | style | no description | Unknown | optional |
state | state | no description | Unknown | optional |
template-link | template-link | no description | Unknown | optional |
Maintenance
[edit]- Categories with the template
- Special:Search/Category: hastemplate:"Template:Wikidata/FamilyTree"
- Petscan:29293945
- Categories without the default title
- (the below are somewhat approximative and include some false positives or exclude some that shouldn't be)
- Special:Search/Category: hastemplate:"Template:Wikidata/FamilyTree" -"family tree of"
- Special:Search/Category: hastemplate:"Template:Wikidata/FamilyTree" insource:/title=/