Template:Lineage
| This template uses Lua: |
Usage
This template produces a simple family tree. It's an alternative to Tree chart. The original template is template:Discendenza.
Insert four data for each person:
- personal id (a number)
- father id (a number, -1 for progenitor)
- name (wikitext)
- additional info (wikitext)
Additional parameters:
- show: use h (horizontal) for a simple family tree; v (vertical) for an indented list. Default value: h.
- align: use right to show the family on the right (only if show = h). Default value: center.
- width: width of the family tree (only if align = right). Default value: 300.
- caption: show a caption under the family tree (only if align = right)
Examples
This code:
{{Lineage
| 1|-1|Albert|text 1
| 2| 1|Ben|text 2
| 3| 1|Charles|text 3
| 4| 1|David|text 4
| 5| 1|Edith|text 5
| 6| 2|Frank|text 6
| 7| 2|George|married Prudence
| 8| 3|Irving|text 8
| 9| 4|Luigi|text 9
|10| 4|Mario|text 10
|11| 4|Nicolas|text 11
|12| 4|Orace|text 12
|13|10|Prudence|married George
|14|10|Quentin|text 14
}}
produces this:
| Albert text 1 | |||||||||||||
| Ben text 2 | Charles text 3 | David text 4 | Edith text 5 | ||||||||||
| Frank text 6 | George married Prudence | Irving text 8 | Luigi text 9 | Mario text 10 | Nicolas text 11 | Orace text 12 | |||||||
| Prudence married George | Quentin text 14 | ||||||||||||
This code produces the family tree on the right:
| Albert progenitor | |||||||
| Ben 1810-1870 | Charles 1812-1880 | ||||||
| David 1840 | Edith 1841 | Irving 1860-? | Laura 1862-? | ||||
| Franck 1870 | George | Harry | |||||
A short caption
{{Lineage
|align=right|width=400|caption=A short caption
| 1|-1|Albert|progenitor
| 2| 1|Ben|1810-1870
| 3| 1|Charles|1812-1880
| 4| 2|David|1840
| 5| 2|Edith|1841
| 6| 5|Franck|1870
| 9| 5|George|
|10| 5|Harry|
| 7| 3|Irving|1860-?
| 8| 3|Laura|1862-?
}}
A family as an indented list (show = v):
{{Lineage|show = v
| 1|-1|Albert|text 1
| 2| 1|Ben|text 2
| 3| 1|Charles|text 3
| 4| 1|David|text 4
| 5| 1|Edith|text 5
| 6| 2|Frank|text 6
| 7| 2|George|married Prudence
| 8| 3|Irving|text 8
| 9| 4|Luigi|text 9
|10| 4|Mario|text 10
|11| 4|Nicolas|text 11
|12| 4|Orace|text 12
|13|10|Prudence|married George
|14|10|Quentin|text 14
}}
| Albert - text 1 | ||||||
| Ben - text 2 | ||||||
| Frank - text 6 | ||||||
| George - married Prudence | ||||||
| Charles - text 3 | ||||||
| Irving - text 8 | ||||||
| David - text 4 | ||||||
| Luigi - text 9 | ||||||
| Mario - text 10 | ||||||
| Prudence - married George | ||||||
| Quentin - text 14 | ||||||
| Nicolas - text 11 | ||||||
| Orace - text 12 | ||||||
| Edith - text 5 | ||||||
See also
- Wikipedia:Family trees for other methods.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.