Redigerer
Mal:Ahnentafel/dok
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
{{Documentation subpage}} {{Lua|Module:Ahnentafel}} {{Uses TemplateStyles|Template:Ahnentafel/styles.css}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> '''{{NAMESPACE}}:{{BASEPAGENAME}}''' is a family tree template that will handle an [[ahnentafel]] of up to 511 places (9 generations), but will also display between 2 and 8 generations. It is recommended to extend the chart to no more than 6 levels (63 nodes) to fit the content into prevalent desktop screen resolutions. The template presents genealogical data in the form of a graphical [[ahnentafel]] 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]]. == Usage == <syntaxhighlight lang="css" style="overflow: auto"> {{ahnentafel |collapsible=yes |collapsed=yes |ref= |float= |align= |boxstyle_1= |boxstyle_2= |boxstyle_3= |boxstyle_4= |boxstyle_5= |1= |2= ... }} </syntaxhighlight> The template accepts the following named parameters: ;<code>style</code>: [[Cascading Style Sheets|CSS]] style attributes to be applied to the entire table. ;<code>boxstyle</code>: CSS style attributes to be applied to the boxes containing the entries. ;<code>border</code>: Thickness of the borders around the boxes in pixels (default: 2). ;<code>boxstyle_1</code>, <code>boxstyle_2</code>, ...: CSS style attributes to be applied to the boxes in a given column. ;<code>border_1</code>, <code>border_2</code>, ...: Thickness of the borders around the boxes in a given column. ;<code>align</code>: Alignment of the chart: left, right, center ;<code>headnotes</code>: Adds optional text above the chart (most useful in collapsible mode) ;<code>footnotes</code>: Adds optional text below the chart (most useful in collapsible mode) Options for the collapsible outer container (if enabled) ;<code>collapsible</code>: set to <code>yes</code> to make the table collapsible ;<code>collapsed</code>: set to <code>no</code> to expand by default, and <code>yes</code> to collapse by default ;<code>title</code>: overrides the default container title when collapsible ;<code>ref</code>: adds an optional reference to the end of the title; use normal "ref" mark-up for a single footnote covering the whole table ;<code>float</code>: float the outer container: <code>left</code>, <code>right</code>, <code>none</code>, or <code>center</code> (default) ;<code>width</code>: 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 <code>border</code> parameter(s). == Blank template == Blank template for five generations: <syntaxhighlight lang="css" style="overflow: auto"> {{ahnentafel |collapsible=yes |collapsed=yes |align=center |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; |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. }} </syntaxhighlight> {{ahnentafel |collapsible=yes |collapsed=yes |align=center |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; |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. }} == Tracking categories == * {{clc|Pages using ahnentafel with style}} * {{clc|Pages using ahnentafel with boxstyle}} * {{clc|Pages using ahnentafel with border}} * {{clc|Pages using ahnentafel with unknown parameters}} == See also == *[[Wikipedia:Family trees]] — for alternatives *{{tlx|ahnentafel-tree}} uses {{tlx|Tree list}} and will handle up to an ahnentafel of 511 places (9 generations), but will also display as little as one generation. *{{tlx|chart}} – can be used to build a bottom up, top down or right to left ahnentafel chart see [[Wikipedia:Family trees#Chart template|Family trees § Chart template]] {{Graph, chart and plot templates}} <includeonly>{{sandbox other|| <!-- ADD CATEGORIES BELOW THIS LINE --> [[Category:Ahnentafel formatting templates]] [[Category:Templates that add a tracking category]] }}</includeonly>
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon