Content deleted Content added
SMcCandlish (talk | contribs) hatnote fix |
→Tree chart template: too many brackets |
||
(55 intermediate revisions by 25 users not shown) | |||
Line 1:
{{Wikipedia how to|shortcut1=H:FT}}
This page aims to assist Wikipedians working with biographical articles containing [[family tree]]s.
The most common way is to display a family tree on Wikipedia is as an [[ahnentafel]] by [[Template: Ahnentafel]]. However, there are other options.
This page originated in examples taken from a discussion on the [[Wikipedia:Village pump|Village pump]] in March/April 2005 (see [[Wikipedia talk:Family trees|Talk page]]). It has since been updated to use later created templates.
== Ahnentafel ==
{{Main|Template:Ahnentafel
The simplest way to include a list of ancestors is the [[Ahnentafel]]. This is a standard for genealogists, but it is hard to understand for people who have not seen it before.
# [[
# [[Charles
# [[Diana, Princess of Wales]] née Lady Diana Spencer (1 July 1961 – 31 August 1997)
# [[
# [[Elizabeth II
# [[John Spencer, 8th Earl Spencer]] (24 January 1924 – 29 March 1992)
# [[Frances Shand Kydd|The Hon Mrs Shand Kydd]] née The Hon Frances Roche (20 January 1936 – 3 June 2004)
# ...
Ahnentafels can be displayed as horizontal trees using
<syntaxhighlight lang="wikitext">
{{ahnentafel
|collapsed=yes |align=center
|title=Ancestry of William, Prince of Wales
|boxstyle_1=background-color: #fcc;
|boxstyle_2=background-color: #fb9;
|boxstyle_3=background-color: #ffc;
|boxstyle_4=background-color: #bfc;
|1. '''[[William, Prince of Wales]]'''
|
|3. [[Diana, Princess of Wales|Lady Diana Spencer]]
|4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]]
Line 45:
|14. [[Maurice Roche, 4th Baron Fermoy]]
|15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]
}}</syntaxhighlight>
{{ahnentafel
|collapsed=no |align=center
|title=Ancestry of William, Prince of Wales
|boxstyle_1=background-color: #fcc;
|boxstyle_2=background-color: #fb9;
|boxstyle_3=background-color: #ffc;
|boxstyle_4=background-color: #bfc;
|1. '''[[William, Prince of Wales]]'''
|
|3. [[Diana, Princess of Wales|Lady Diana Spencer]]
|4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]]
Line 75 ⟶ 70:
|15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]
}}
Ancestry trees are usually displayed collapsed; to
==
{{Main|Template:Tree chart}}
[[Template:
<syntaxhighlight lang="wikitext">
{{Chart top|My family tree}}
{{Tree chart/start|align=center}}
{{Tree chart| | | | GRM |~|y|~| GRP | | GRM=Grandma|GRP=Grandpa}} {{Tree chart| | | | | | | |)|-|-|-|.| }}
{{Tree chart| | | MUM |y| DAD | |DAISY| MUM=Mum|DAD=Dad|DAISY=Aunt Daisy}}
{{Tree chart| |,|-|-|-|+|-|-|-|.| | | }}
{{Tree chart| JOE | | ME | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister
|boxstyle_ ME=background-color: #bfc;}}
{{Tree chart/end}}
{{chart bottom}}
</syntaxhighlight>
{{
{{Tree chart/start|align=center}}
{{Tree chart| | | | GRM |~|y|~| GRP | | GRM=Grandma|GRP=Grandpa}}
{{Tree chart| | | | | | | |)|-|-|-|.| }}
{{Tree chart| | | MUM |y| DAD | |DAISY| MUM=Mum|DAD=Dad|DAISY=Aunt Daisy}}
{{Tree chart| |,|-|-|-|+|-|-|-|.| | | }}
{{Tree chart| JOE | | ME | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister
|boxstyle_ ME=background-color: #bfc;}}
{{Tree chart/end}}
{{
{{tlx|
<syntaxhighlight lang="wikitext">
{{
{{Tree chart/start|align=center}}
{{Tree chart| |boxstyle=background-color: #bfc|Ah8|v|Ah9| |Ah10|v|Ah11| | | |Ah12|v|Ah13| | |Ah14|v|Ah15|
|Ah8=8. [[Prince Andrew of Greece and Denmark]] |Ah9=9. [[Princess Alice of Battenberg]]
|Ah10=10. [[George VI|George VI of the United Kingdom]] |Ah11=11. [[Queen Elizabeth The Queen Mother|Lady Elizabeth Bowes-Lyon]]
|Ah12=12. [[Albert Spencer, 7th Earl Spencer]] |Ah13=13. [[Cynthia Spencer, Countess Spencer|Lady Cynthia Hamilton]]
|Ah14=14. [[Maurice Roche, 4th Baron Fermoy]] |Ah15=15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]}}
{{Tree chart|boxstyle=background-color: #ffc;| | | |Ah4|-|-|v|-|-|Ah5| | | | | | | |Ah6|-|-|-|v|-|-|Ah7
|Ah4=4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]] |Ah5=5. [[Elizabeth II|Elizabeth II of the United Kingdom]]
|Ah6=6. [[John Spencer, 8th Earl Spencer]] |Ah7=7. [[Frances Shand Kydd|The Honourable Frances Roche]]
}}
{{Tree chart| | | | | | | | |!| | | | | | | | | | | | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #fb9;| | | | | | | |Ah2|-|-|-|-|-|-|-|v|-|-|-|-|-|-|-|-|Ah3
|Ah2=2. [[Charles
{{Tree chart| | | | | | | | | | | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #fcc;| | | | | | | | | | | | | | | | |Ah1 |Ah1=1.'''[[
{{Tree chart/end}}
{{
</syntaxhighlight>
Note: any letter number combination that is not reserved as a tile descriptor in {{tlx|Tree chart}} can be used. In this example Ah1...Ah15 is short for Ahnentafel1...Ahnentafel15
{{
{{Tree chart/start|align=center}}
{{Tree chart||boxstyle=background-color: #bfc|Ah8|v|Ah9| |Ah10|v|Ah11| || |Ah12|v|Ah13| ||Ah14|v|Ah15|
|Ah8=8. [[Prince Andrew of Greece and Denmark]] |Ah9=9. [[Princess Alice of Battenberg]]
|Ah10=10. [[George VI|George VI of the United Kingdom]] |Ah11=11. [[Queen Elizabeth The Queen Mother|Lady Elizabeth Bowes-Lyon]]
|Ah12=12. [[Albert Spencer, 7th Earl Spencer]] |Ah13=13. [[Cynthia Spencer, Countess Spencer|Lady Cynthia Hamilton]]
|Ah14=14. [[Maurice Roche, 4th Baron Fermoy]] |Ah15=15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]}}
{{Tree chart| | | | |!| | | | | | | |!| | | | | | | | | |!| | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #ffc;| | | |Ah4|-|-|v|-|-|Ah5| | | | | | | |Ah6|-|-|-|v|-|-|Ah7
|Ah4=4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]] |Ah5=5. [[Elizabeth II|Elizabeth II of the United Kingdom]]
|Ah6=6. [[John Spencer, 8th Earl Spencer]] |Ah7=7. [[Frances Shand Kydd|The Honourable Frances Roche]]
}}
{{Tree chart| | | | | | | | |!| | | | | | | | | | | | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #fb9;| | | | | | | |Ah2|-|-|-|-|-|-|-|v|-|-|-|-|-|-|-|-|Ah3
|Ah2=2. [[Charles
{{Tree chart| | | | | | | | | | | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #fcc;| | | | | | | | | | | | | | | | |Ah1 |Ah1=1.'''[[
{{Tree chart/end}}
{{
Trees using {{tlx|Tree chart}} are usually displayed collapsed to alter that so they display expanded add the parameter: <code>|collapsed=no</code> to {{tlx|Chart top}}
=== Ahnentafel-chart ===
A similar use of {{tlx|Tree chart}} can be used to construct a top down tree, but there is a template ({{tlx|Ahnentafel-chart}}) that can be used to display bottom-up or top-down family trees using {{tlx|Tree chart}} that is simpler to construct:
<syntaxhighlight lang="wikitext">
{{Chart top|width=100%|European style family tree bottom to top (William, Prince of Wales)}}
{{Ahnentafel-chart|top_down=1
|2=2. [[Charles III|Charles III of the United Kingdom]]
|3=3. [[Diana, Princess of Wales|Lady Diana Spencer]]
| | |8=8. [[Prince Andrew of Greece and Denmark]]
|9=9. [[Princess Alice of Battenberg]]
|10=10. [[George VI|George VI of the United Kingdom]]
|11=11. [[Queen Elizabeth The Queen Mother|Lady Elizabeth Bowes-Lyon]]
|12=12. [[Albert Spencer, 7th Earl Spencer]]
| }} {{
</syntaxhighlight>
{{Chart top|collapsed=no|width=100%|European style family tree bottom to top (William, Prince of Wales)}}
{{Ahnentafel-chart|top_down=1
|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. [[William, Prince of Wales]]
|2=2. [[Charles III|Charles III of the United Kingdom]]
|3=3. [[Diana, Princess of Wales|Lady Diana Spencer]]
|4=4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]]
|5=5. [[Elizabeth II|Elizabeth II of the United Kingdom]]
|6=6. [[John Spencer, 8th Earl Spencer]]
|7=7. [[Frances Shand Kydd|The Honourable Frances Roche]]
|8=8. [[Prince Andrew of Greece and Denmark]]
|9=9. [[Princess Alice of Battenberg]]
|10=10. [[George VI|George VI of the United Kingdom]]
|11=11. [[Queen Elizabeth The Queen Mother|Lady Elizabeth Bowes-Lyon]]
|12=12. [[Albert Spencer, 7th Earl Spencer]]
|13=13. [[Cynthia Spencer, Countess Spencer|Lady Cynthia Hamilton]]
|14=14. [[Maurice Roche, 4th Baron Fermoy]]
|15=15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]
}}
{{Chart bottom}}
For documentation and more examples see the documentation for {{tl|Ahnentafel-chart}}.
==Tree list==
Each branch of the tree is built using nested lists
<syntaxhighlight lang="wikitext">
{{hidden begin|border=1px #aaa solid|title=Demonstration tree|ta1=center}}
{{Tree list}}
Line 209 ⟶ 212:
*** A third level branch
*** Another third level branch
** Another second level branch
{{Tree list/end}}
{{Hidden end}}</
which produces
Line 222 ⟶ 223:
*** A third level branch
*** Another third level branch
** Another second level branch
{{Tree list/end}}
{{Hidden end}}
For an example see the following template link {{tlx|Houston family tree}}. For more details on this method see the following template link {{tlx|Tree list}}. The templates examples include "[[Template:Tree list#A family tree|Descendants of Herny VII of England]]" and "[[Template:Tree list#An ancestry tree|Ancestry of Prince William,
Trees using {{tlx|Tree list}} are usually displayed collapsed to alter that so they display expanded add the parameter: <
===Ahnentafel-tree===
The template {{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.
<syntaxhighlight lang="wikitext">
{{Ahnentafel-tree
|title=Parents of subject
|1=''subject''
|2=''father''
|3=''mother''
}}
</syntaxhighlight>
{{Ahnentafel-tree
|title=Parents of subject
|expanded=on
|color_1=#bfc;
|color_2=#9fe;
|1=''subject''
|2=''father''
|3=''mother''
}}
== Tables ==
Line 272 ⟶ 291:
''Myrcella'' Stone Storm
Although this method was common on Wikipedia in the past, [[ASCII]] trees are [[deprecated]] for two reasons. Large fix-width ASCII templates can cause formating problems on small screens. Secondly because the tables rely on fixed width fonts,
When this section was originally written an example in article space provided: [[Family tree of the Greek gods]]. The last ASCII version of that table had problems with alignment (see [https://en.wikipedia.org/w/index.php?title=Family_tree_of_the_Greek_gods&oldid=95374094 Revision of 19 December 2006]). It was replaced with one based on the familytree templates (the forerunner of {{tl|chart}} templates) on [https://en.wikipedia.org/w/index.php?title=Family_tree_of_the_Greek_gods&oldid=97492352 31 December 2006].
Line 296 ⟶ 315:
==See also==
* [[Wikipedia:Graphs and charts]]
* [[Wikipedia:WikiProject Genealogy]]
{{Wikipedia technical help|collapsed}}
|