Template:Wp/pox/Ahnentafel/doc
The Ahnentafel template is a family tree template.
This template takes genealogical data in the form of an ahnentafel and presents it as a graphical ancestry tree (realized as an HTML table). The entries in the ahnentafel are given as numbered parameters to the template, and may contain arbitrary wikimarkup.
Blank template[edit source]
Blank template for {{ahnentafel-compact5}}, which includes five generations:
{{ahnentafel top|width=100%}}
{{ahnentafel-compact5
|style=font-size: 90%; line-height: 110%;
|align=center
|border=1
|boxstyle=padding-top: 0; padding-bottom: 0;
|boxstyle_1=background-color: #fcc;
|boxstyle_2=background-color: #fb9;
|boxstyle_3=background-color: #ffc;
|boxstyle_4=background-color: #bfc;
|boxstyle_5=background-color: #9fe;
|1=1.
|2=2.
|3=3.
|4=4.
|5=5.
|6=6.
|7=7.
|8=8.
|9=9.
|10=10.
|11=11.
|12=12.
|13=13.
|14=14.
|15=15.
|16=16.
|17=17.
|18=18.
|19=19.
|20=20.
|21=21.
|22=22.
|23=23.
|24=24.
|25=25.
|26=26.
|27=27.
|28=28.
|29=29.
|30=30.
|31=31.
}}
{{ahnentafel bottom}}
The template accepts the following named parameters:
style
- CSS style attributes to be applied to the entire table.
boxstyle
- CSS style attributes to be applied to the boxes containing the entries.
border
- Thickness of the borders around the boxes in pixels (default: 2).
boxstyle_1
,boxstyle_2
, ...- CSS style attributes to be applied to the boxes in a given column.
border_1
,border_2
, ...- Thickness of the borders around the boxes in a given column.
align
- Alignment of the chart: left, right, center
The column-specific style attributes are included after (and thus override) the generic ones, which are included after the default styles and the border thickness specified by the border
parameter(s).
See also[edit source]
- Wikipedia:Family trees — for alternatives
- Similar ahnentafel templates:
- Template:Tlx and Template:Tlx — confines the table in a box and helps with formatting, colouring etc.
- Template:Tlx — Four generations (an ahnentafel of 15 places)
- Template:Tlx — Five generations (an ahnentafel of 31 places), or less if less are provided.
- Template:Tlx — Six generations (an ahnentafel of 63 places), or less if less are provided.
- Template:Tlx uses Template:Tlx and will handle up to an ahnentafel of 511 places (9 generations), but will also display as little as one generation.
- Template:Tlx – can be used to build a bottom up, top down or right to left ahnentafel chart see Family trees § Chart template