Template:Family/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{collapsible op...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- | {{High-use}} | ||
{{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 between 3 places (2 generations) and 511 places (9 generations). | ||
===See also== | 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= | |||
|... | |||
|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 four 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; | |||
|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. | |||
}} | |||
</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; | |||
|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. | |||
}} | |||
== 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|| | <includeonly>{{sandbox other|| | ||
<!-- | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category: | [[Category:Ahnentafel formatting templates]] | ||
[[Category:Templates that add a tracking category]] | |||
}}</includeonly> | }}</includeonly> |
Latest revision as of 09:20, 20 July 2024
This is a documentation subpage for Template:Family. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This template uses Lua: |
null
Template:Family is a family tree template that will handle an ahnentafel of between 3 places (2 generations) and 511 places (9 generations).
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
{{ahnentafel
|collapsible=yes
|collapsed=yes
|ref=
|float=
|align=
|boxstyle_1=
|boxstyle_2=
|boxstyle_3=
|boxstyle_4=
|...
|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, andyes
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
, orcenter
(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 template
Blank template for four generations:
{{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;
|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.
}}
Ancestors of Family/doc | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Tracking categories
- Category:Pages using ahnentafel with style (35)
- Category:Pages using ahnentafel with boxstyle (35)
- Category:Pages using ahnentafel with border (35)
- Category:Pages using ahnentafel with unknown parameters (1)
See also
- Wikipedia:Family trees — for alternatives
{{ahnentafel-tree}}
uses{{Tree list}}
and will handle up to an ahnentafel of 511 places (9 generations), but will also display as little as one generation.{{chart}}
– can be used to build a bottom up, top down or right to left ahnentafel chart see Family trees § Chart template