Hoppa till innehållet

Mall:Ahnentafel/dok

Från Wikipedia

Mall:Ahnentafel är en släktträdsmall som kommer att visa en antavla med upp till 511 personer (alltså 9 generationer), men kan även visa 2 till 8 generationer med. Det rekommenderas dock att bara gå upp till 6 generationer, så att innehållet ska passa vanliga skärmupplösningar.

Mallen presenterar genealogiska data i form av ett grafiskt antavlesläktträd (som en HTML-tabell). Inputen i mallen ges som numrerade parametrar till mallen och kan innehålla godtyckliga wikimarkup.

Användning

[redigera wikitext]
{{Ahnentafel
| collapsible = yes
| collapsed   = yes
| ref         = 
| float       = 
| align       = 
| boxstyle_1  = 
| boxstyle_2  = 
| boxstyle_3  = 
| boxstyle_4  = 
| boxstyle_5  = 
| 1           = 
| 2           = 
...
}}

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
headnotes
Adds optional text above the chart (most useful in collapsible mode)
footnotes
Adds optional text below the chart (most useful in collapsible mode)

Options for the collapsible outer container (if enabled)

collapsible
set to yes to make the table collapsible
collapsed
set to no to expand by default, and yes to collapse by default
title
overrides the default container title when collapsible
ref
adds an optional reference to the end of the title; use normal "ref" mark-up for a single footnote covering the whole table
float
float the outer container: left, right, none, or center (default)
width
overrides the default outer container width

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).

Blank mall

[redigera wikitext]

Blank mall för fem generationer:

{{Ahnentafel
<!----------- VALBAR CSS/STILVAL ----------->
| collapsible = yes
| collapsed   = yes
| align       = center
| ref         = <ref>de</ref>
| boxstyle_1  = background-color:#bfc;
| boxstyle_2  = background-color:#9fe;
| boxstyle_3  = background-color:#ffc;
| boxstyle_4  = background-color:#fcc;
| boxstyle_5  = background-color:#fb9;
| boxstyle_6  = background-color:#ffc;
<!------------ 1:A GENERATIONEN ------------>
| 1           = barnet
<!------------ 2:A GENERATIONEN ------------>
| 2           = far
| 3           = mor
<!------------ 3:E GENERATIONEN ------------>
| 4           = farfar
| 5           = farmor
| 6           = morfar
| 7           = mormor
<!------------ 4:E GENERATIONEN ------------>
| 8           = farfars far
| 9           = farfars mor
| 10          = farmors far
| 11          = farmors mor
| 12          = morfars far
| 13          = morfars mor
| 14          = mormors far
| 15          = mormors mor
<!------------ 5:E GENERATIONEN ------------>
| 16          = farfars farfar
| 17          = farfars farmor
| 18          = farfars morfar
| 19          = farfars mormor
| 20          = farmors farfar
| 21          = farmors farmor
| 22          = farmors morfar
| 23          = farmors mormor
| 24          = morfars farfar
| 25          = morfars farmor
| 26          = morfars morfar
| 27          = morfars mormor
| 28          = mormors farfar
| 29          = mormors farmor
| 30          = mormors morfar
| 31          = mormors mormor
<!------------ 6:E GENERATIONEN ------------>
| 32          = farfars farfars far
| 33          = farfars farfars mor
| 34          = farfars farmors far
| 35          = farfars farmors mor
| 36          = farfars morfars far
| 37          = farfars morfars mor
| 38          = farfars mormors far
| 39          = farfars mormors mor
| 40          = farmors farfars far
| 41          = farmors farfars mor
| 42          = farmors farmors far
| 43          = farmors farmors mor
| 44          = farmors morfars far
| 45          = farmors morfars mor
| 46          = farmors mormors far
| 47          = farmors mormors mor
| 48          = morfars farfars far
| 49          = morfars farfars mor
| 50          = morfars farmors far
| 51          = morfars farmors mor
| 52          = morfars morfars far
| 53          = morfars morfars mor
| 54          = morfars mormors far
| 55          = morfars mormors mor
| 56          = mormors farfars far
| 57          = mormors farfars mor
| 58          = mormors farmors far
| 59          = mormors farmors mor
| 60          = mormors morfars far
| 61          = mormors morfars mor
| 62          = mormors mormors far
| 63          = mormors mormors mor
}}
  1. ^ de