Andoza:Nasab/doc

Vikipediya, ochiq ensiklopediya

Usage[manbasini tahrirlash]

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[manbasini tahrirlash]

This code:

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

{{Nasab
|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):

{{Nasab|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[manbasini tahrirlash]