Help:Family trees: Difference between revisions

Content deleted Content added
This ws an untagged guideline page -- it should be proposed, discussed and without objection added to the Manual of style - I have no objection given due process
→‎Tree chart template: too many brackets
 
(165 intermediate revisions by 62 users not shown)
Line 1:
{{Wikipedia how to|shortcut1=H:FT}}
{{proposal}}
 
This page aims to assist Wikipedians working with biographical articles containing [[family tree]]s.
There are several ways to create family trees for display on Wikipedia. These examples are taken from a discussion on the Village pump in March/April 2005 (see [[Wikipedia talk:Family trees|Talk page]]).
 
The most common way is to display a family tree on Wikipedia is as an [[ahnentafel]] by [[Template: Ahnentafel]]. However, there are other options.
== Ahnentafel ==
 
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.
 
# [[Prince William of Wales|HRH, Prince William of Wales]] (born [[21 June 21]], [[1982]])
# [[Charles, Prince of Wales|HRH The Prince Charles, Prince of WalesIII]] (born [[14 November 14]], [[1948]])
# [[Princess Diana|Diana, Princess of Wales]] née Lady Diana Spencer ([[1 July 1]],1961 [[1961]]-[[August 31]], [[August 1997]])
# [[Prince Philip|HRH Prince Philip, Duke of Edinburgh]] (born10 [[June 10]],1921 – [[1921]]9 April 2021)
# [[Elizabeth II of the United Kingdom|HM Queen Elizabeth II of the United Kingdom]] (born21 [[April 21]],1926 [[1926]]– 8 September 2022)
# [[EdwardJohn Spencer, 8th Earl Spencer]] ([[24 January 24]], [[1924]]-[[March 29]], [[March 1992]])
# [[Frances Shand Kydd|The Hon Mrs Shand Kydd]] née The Hon Frances Burke Roche ([[January 20]], [[January 1936]]-[[June 3]], [[June 2004]])
# ...
# [[Prince Andrew of Greece|HRH Prince Andrew of Greece and Denmark]] ([[January 20]], [[1882]]-[[December 3]], [[1944]])
# [[Princess Alice of Battenberg|HRH Princess Andrew of Greece and Denmark]] née HSH Princess Alice of Battenberg ([[February 25]], [[1885]]-[[December 5]], [[1969]])
# [[George VI of the United Kingdom|HM King George VI of the United Kingdom]] ([[December 14]], [[1895]]-[[February 6]], [[1952]])
# [[Elizabeth Bowes-Lyon|HM Queen Elizabeth the Queen Mother]] née Lady Elizabeth Bowes-Lyon ([[August 4]], [[1900]]-[[March 30]], [[2002]])
# [[Albert Spencer, 7th Earl Spencer]] ([[May 23]], [[1892]]-[[June 9]], [[1975]])
# [[Cynthia Spencer, Countess Spencer]] née Lady Cynthia Hamilton ([[August 16]], [[1897]]-[[December 4]], [[1972]])
# [[Edmund Burke Roche, 4th Baron Fermoy]] ([[May 15]], [[1885]]-[[July 8]], [[1955]]
# [[Ruth Burke Roche, Baroness Fermoy]] née Miss Ruth Gill ([[October 2]], [[1908]]-[[July 6]], [[1993]]
 
Ahnentafels can be displayed as horizontal trees using the templates {{[[Template:Ahnentafel2|Ahnentafel2Ahnentafel]]}} to {{[[Template:Ahnentafel6|Ahnentafel6]]}}; see for example [[User:Ilmari Karonen/sandbox/olga tree]].
 
<syntaxhighlight lang="wikitext">
== Ancestry chart (left to right) ==
{{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]]'''
|2. [[Charles III|Charles III of the United Kingdom]]
|3. [[Diana, Princess of Wales|Lady Diana Spencer]]
|4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]]
|5. [[Elizabeth II|Elizabeth II of the United Kingdom]]
|6. [[John Spencer, 8th Earl Spencer]]
|7. [[Frances Shand Kydd|The Honourable Frances Roche]]
|8. [[Prince Andrew of Greece and Denmark]]
|9. [[Princess Alice of Battenberg]]
|10. [[George VI|George VI of the United Kingdom]]
|11. [[Queen Elizabeth The Queen Mother|Lady Elizabeth Bowes-Lyon]]
|12. [[Albert Spencer, 7th Earl Spencer]]
|13. [[Cynthia Spencer, Countess Spencer|Lady Cynthia Hamilton]]
|14. [[Maurice Roche, 4th Baron Fermoy]]
|15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]
}}</syntaxhighlight>
 
{{ahnentafel
This is how ancestry charts are often displayed in the U.S.:
|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]]'''
|2. [[Charles III|Charles III of the United Kingdom]]
|3. [[Diana, Princess of Wales|Lady Diana Spencer]]
|4. [[Prince Philip, Duke of Edinburgh|Prince Philip of Greece and Denmark]]
|5. [[Elizabeth II|Elizabeth II of the United Kingdom]]
|6. [[John Spencer, 8th Earl Spencer]]
|7. [[Frances Shand Kydd|The Honourable Frances Roche]]
|8. [[Prince Andrew of Greece and Denmark]]
|9. [[Princess Alice of Battenberg]]
|10. [[George VI|George VI of the United Kingdom]]
|11. [[Queen Elizabeth The Queen Mother|Lady Elizabeth Bowes-Lyon]]
|12. [[Albert Spencer, 7th Earl Spencer]]
|13. [[Cynthia Spencer, Countess Spencer|Lady Cynthia Hamilton]]
|14. [[Maurice Roche, 4th Baron Fermoy]]
|15. [[Ruth Roche, Baroness Fermoy|Ruth Gill]]
}}
 
Ancestry trees are usually displayed collapsed; to display them expanded add the parameter: <code>|collapsed=no</code> to {{tlx|ahnentafel}}
{{Cquote|<nowiki>{{tree|Albert of Saxe-Coburg-Gotha|Ernest I von Saxe-Coburg-Gotha|Louise of Saxe-Coburg-Altenburg|Franz Friedrich of Saxe-Coburg-Saalfeld|Augusta von Reuss-Ebersdorf|August II of Saxe-Gotha-Altenburg|Louise Charlotte of Mecklenburg|Ernst Friedrich of Saxe-Coburg-Saalfeld|Sophia Antonia of Brunswick-Wolfenbüttel|Henry XXIV Reuss zu Ebersdorf|Karoline Ernestine zu Erbach-Schönberg|Ernst II of Saxe-Gotha|Maria Charlotte Amalie of Saxe-Meiningen|Friedrich Franz I of Mecklenburg-Schwerin|Louise of Saxe-Gotha}}</nowiki>}} produces:
 
== Tree chart template ==
{{tree|Albert of Saxe-Coburg-Gotha|Ernest I von Saxe-Coburg-Gotha|Louise of Saxe-Coburg-Altenburg|Franz Friedrich of Saxe-Coburg-Saalfeld|Augusta von Reuss-Ebersdorf|August II of Saxe-Gotha-Altenburg|Louise Charlotte of Mecklenburg|Ernst Friedrich of Saxe-Coburg-Saalfeld|Sophia Antonia of Brunswick-Wolfenbüttel|Henry XXIV Reuss zu Ebersdorf|Karoline Ernestine zu Erbach-Schönberg|Ernst II of Saxe-Gotha|Maria Charlotte Amalie of Saxe-Meiningen|Friedrich Franz I of Mecklenburg-Schwerin|Louise of Saxe-Gotha}}
{{Main|Template:Tree chart}}
[[Template:Tree chart]] can be used to construct simple (or incredibly complex: see [[Japanese imperial family tree]]) using an ASCII art-like syntax:
 
<syntaxhighlight lang="wikitext">
== Ancestry chart (bottom to top) ==
{{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>
 
{{Chart top|My family tree|collapsed=no}}
In (continental?) Europe, ancestry charts are more often shown bottom-to-top.
{{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}}
 
{{tlx|Tree chart}} can also be used to create a Continental European style bottom to top layout for an [[Ahnentafel]] tree, or just as easily a top down (not shown)
<!--copied from Template:Tree31-->
<syntaxhighlight lang="wikitext">
<!--==5 generation, bottom-to-top==-->
{{Chart top|width=100%|European style family tree bottom to top (William, Prince of Wales)}}
{{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 III|Charles III of the United Kingdom]]|Ah3=3. [[Diana, Princess of Wales|Lady Diana Spencer]]}}
{{Tree chart| | | | | | | | | | | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #fcc;| | | | | | | | | | | | | | | | |Ah1 |Ah1=1.'''[[William, Prince of Wales]]'''}}
{{Tree chart/end}}
{{Chart bottom}}
</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
{|border="1" cellpadding="5" cellspacing="0" align="center"
|-
|<center>{{{16}}}</center>
|<center>{{{17}}}</center>
|<center>{{{18}}}</center>
|<center>{{{19}}}</center>
|<center>{{{20}}}</center>
|<center>{{{21}}}</center>
|<center>{{{22}}}</center>
|<center>{{{23}}}</center>
|<center>{{{24}}}</center>
|<center>{{{25}}}</center>
|<center>{{{26}}}</center>
|<center>{{{27}}}</center>
|<center>{{{28}}}</center>
|<center>{{{29}}}</center>
|<center>{{{30}}}</center>
|<center>{{{31}}}</center>
|-
|colspan=2| <center>{{{8}}}</center>
|colspan=2| <center>{{{9}}}</center>
|colspan=2| <center>{{{10}}}</center>
|colspan=2| <center>{{{11}}}</center>
|colspan=2| <center>{{{12}}}</center>
|colspan=2| <center>{{{13}}}</center>
|colspan=2| <center>{{{14}}}</center>
|colspan=2| <center>{{{15}}}</center>
|-
|colspan=4| <center>{{{4}}}</center>
|colspan=4| <center>{{{5}}}</center>
|colspan=4| <center>{{{6}}}</center>
|colspan=4| <center>{{{7}}}</center>
|-
|colspan=8| <center>{{{2}}}</center>
|colspan=8| <center>{{{3}}}</center>
|-
|colspan=16| <center>{{{1}}}</center>
|-
|}
 
== ASCII art ==
 
{{Chart top|width=100%|European style family tree bottom to top (William, Prince of Wales)|collapsed=no}}
{{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 III|Charles III of the United Kingdom]]|Ah3=3. [[Diana, Princess of Wales|Lady Diana Spencer]]}}
{{Tree chart| | | | | | | | | | | | | | | | | |!}}
{{Tree chart|boxstyle=background-color: #fcc;| | | | | | | | | | | | | | | | |Ah1 |Ah1=1.'''[[William, Prince of Wales]]'''}}
{{Tree chart/end}}
{{Chart bottom}}
 
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
|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}}
</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==
{{Main|Template: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}}
* A first level branch
** A second level branch
*** A third level branch
*** Another third level branch
** Another second level branch
{{Tree list/end}}
{{Hidden end}}</syntaxhighlight>
 
which produces
{{hidden begin|border=1px #aaa solid|title=Demonstration tree|ta1=center|expanded=true}}
{{Tree list}}
* A first level branch
** A second level branch
*** 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, Duke of Cambridge]]".
 
Trees using {{tlx|Tree list}} are usually displayed collapsed to alter that so they display expanded add the parameter: <code>|expanded=true</code> to {{tlx|hidden begin}}
 
===Ahnentafel-tree===
The template {{tlx|ahnentafel-tree}} uses {{tlx|Tree list}} and will handle up to an ahnentafel of 511 places (9&nbsp;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 ==
:''Main [[Help:Table]]''
A family tree can also be displayed using [[Help:Table|tables]], by showing borders on selected cells ''(note that this does not work properly on all browsers)''.
 
This is a family tree using tables for [[House Tully]]:
{{Wikipedia:Family trees/House Tully 1}}
 
To fully understand how it works, this is the same table with ''all'' table borders:
{{Wikipedia:Family trees/House Tully 2}}
 
== ASCII art ==
Here is the family tree of [[House Baratheon]]:
 
Line 97 ⟶ 277:
''Myrcella'' Stone Storm
 
Alternatively you can render it using [[box-drawing characters]]:
(And see [[Family tree of the Greek gods]]).
 
[[#Steffon|Steffon]]━━┯━━? Eastermont
== Tables ==
┌────────┼──────────────────┐
│ │ │
[[House Lannister#Cersei|''Cersei'']]━━┯━━━[[#Robert|'''Robert''']] [[#Stannis|Stannis]]━━┯━━Selyse [[#Renly|Renly]]
[[House Lannister|Lannister]] │ │ │ Florent
│ │ │
┌────┬────┤ ├──────┐ │
│ │ │ │ │ │
'''Joffrey''' │ Tommen ''Mya'' Edric ''Shireen''
''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, their alignment is easily broken by inexperienced editors removing some of the leading spaces, or by characters having different widths. For example in the second tree above although it uses characters in the same place as those in the first one in this section, and there are slight misalignments because the charter widths of "=" and "─" are slightly different.
And another attempt. This time I have tried to use tables, for [[House Tully]]:
<table style="border-collapse:collapse">
<tr>
<td colspan=9/>
<td style="border-left:thin solid; border-top:thin solid;padding:1ex"/>
<td colspan= 8 style="border-top:thin solid"/>
<td style="border-right:thin solid; border-top:thin solid">
<td/>
</tr>
<tr>
<td/><td/><td/><td/><td/><td/><td/><td/>
<td colspan=3 rowspan=2 style="text-align:center;line-height:1">Hoster '''Tully'''<br><small>*242?</small></td>
<td style="padding:1ex"/>
<td/>
<td colspan=3 rowspan=2 style="text-align:center;line-height:1">''Minisa'' '''Whent'''<small><br>†273? in childbed</small></td>
<td/>
<td colspan=3 rowspan=2 style="text-align:center;line-height:1;padding-bottom:1ex">Brynden '''Tully'''<br>‘The Blackfish’<br><small>*247?</small></td>
</tr>
<tr>
<td/><td/><td/><td/><td/><td/><td/>
<td/>
<td style="padding:1ex;border-top: thin solid; border-right:thin solid"/>
<td style="padding:1ex; border-top: thin solid"/> <td/>
</tr>
<tr>
<td/><td/><td/><td/><td/><td/><td/><td/><td/>
<td style="padding:1ex;border-left:thin solid; border-top:thin solid"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid; border-right:thin solid"/>
<td style="border-top:thin solid; "/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid; border-right:thin solid"/>
<td style="padding:1ex"/>
</tr>
<tr>
<td/><td/>
<td colspan=4 rowspan=2 style="text-align:center;line-height:1">[[Eddard Stark|Eddard]] [[House Stark|'''Stark''']]<br><small>*262</small></td>
<td colspan=2 valign="bottom" style="text-align:center;font-size:smaller">282</td>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">''[[#Catelyn|Catelyn]]''<br><small>*268</small></td>
<td style="padding:1ex"/>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">''Lysa''<small><br>*270</td>
<td colspan=2 valign="bottom" style="text-align:center;font-size:smaller">282</td>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">Jon '''Arryn'''<br><small>*222? †297</small></td>
<td/>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">Edmure<small><br>*272</small></td>
</tr>
<tr>
<td/><td/>
<td style="padding=2ex;border-top:thin solid;border-right: thin solid">&nbsp;</td>
<td style="border-top:thin solid">
<td/>
<td style="padding=1ex;border-top:thin solid;border-right: thin solid"/>
<td style="border-top:thin solid">
</tr>
<tr>
</tr>
<tr>
<td style="padding:1ex"/>
<td style="padding:1ex;border-top:thin solid; border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid; border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid;border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid;border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid; border-right:thin solid"/>
<td style="padding:1ex"/>
<td/><td/><td/> <td style="border-right:thin solid"/>
<td style="padding:1ex:border-right:thin solid">
</tr>
<tr>
<td colspan=2 style="text-align:center; line-height:1">Robb<br><small>*283</small></td>
<td colspan=2 style="text-align:center; line-height:1">''Sansa''<br><small>*286</small></td>
<td colspan=2 style="text-align:center; line-height:1">''Arya''<br><small>*288</small></td>
<td colspan=2 style="text-align:center; line-height:1">Brandon<br><small>*290</small></td>
<td colspan=2 style="text-align:center; line-height:1">Rickon<br><small>*294</small></td>
<td/><td/><td/>
<td colspan=2 style="text-align:center; line-height:1">Robert<br><small>*291</small></td>
</tr>
</table>
 
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].
To understand how I did this, let me switch on ''all'' table borders:
 
If you wish to add a family tree to an article but only feel that you could do so using an ASCII layout then add it using ASCII. However it you add one, or come across an ASCII table in an article that has not been converted, then please ask for help at the [[Wikipedia:Help desk|Help desk]] for an editor to help you convert it to one of the alternative formats presented on this page.
<table border=1 style="border-collapse:collapse">
<tr>
<td colspan=9/>
<td style="border-left:thin solid; border-top:thin solid;padding:1ex"/>
<td colspan= 8 style="border-top:thin solid"/>
<td style="border-right:thin solid; border-top:thin solid">
<td/>
</tr>
<tr>
<td/><td/><td/><td/><td/><td/><td/><td/>
<td colspan=3 rowspan=2 style="text-align:center;line-height:1">Hoster '''Tully'''<br><small>*242?</small></td>
<td style="padding:1ex"/>
<td/>
<td colspan=3 rowspan=2 style="text-align:center;line-height:1">''Minisa'' '''Whent'''<small><br>†273? in childbed</small></td>
<td/>
<td colspan=3 rowspan=2 style="text-align:center;line-height:1;padding-bottom:1ex">Brynden '''Tully'''<br>‘The Blackfish’<br><small>*247?</small></td>
</tr>
<tr>
<td/><td/><td/><td/><td/><td/><td/>
<td/>
<td style="padding:1ex;border-top: thin solid; border-right:thin solid"/>
<td style="padding:1ex; border-top: thin solid"/> <td/>
</tr>
<tr>
<td/><td/><td/><td/><td/><td/><td/><td/><td/>
<td style="padding:1ex;border-left:thin solid; border-top:thin solid"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid; border-right:thin solid"/>
<td style="border-top:thin solid; "/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid; border-right:thin solid"/>
<td style="padding:1ex"/>
</tr>
<tr>
<td/><td/>
<td colspan=4 rowspan=2 style="text-align:center;line-height:1">[[Eddard Stark|Eddard]] [[House Stark|'''Stark''']]<br><small>*262</small></td>
<td colspan=2 valign="bottom" style="text-align:center;font-size:smaller">282</td>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">''[[#Catelyn|Catelyn]]''<br><small>*268</small></td>
<td style="padding:1ex"/>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">''Lysa''<small><br>*270</td>
<td colspan=2 valign="bottom" style="text-align:center;font-size:smaller">282</td>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">Jon '''Arryn'''<br><small>*222? †297</small></td>
<td/>
<td colspan=2 rowspan=2 style="text-align:center; line-height:1">Edmure<small><br>*272</small></td>
</tr>
<tr>
<td/><td/>
<td style="padding=2ex;border-top:thin solid;border-right: thin solid">&nbsp;</td>
<td style="border-top:thin solid">
<td/>
<td style="padding=1ex;border-top:thin solid;border-right: thin solid"/>
<td style="border-top:thin solid">
</tr>
<tr>
</tr>
<tr>
<td style="padding:1ex"/>
<td style="padding:1ex;border-top:thin solid; border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid; border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid;border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid;"/>
<td style="padding:1ex;border-top:thin solid;border-left:thin solid"/>
<td style="padding:1ex;border-top:thin solid; border-right:thin solid"/>
<td style="padding:1ex"/>
<td/><td/><td/> <td style="border-right:thin solid"/>
<td style="padding:1ex:border-right:thin solid">
</tr>
<tr>
<td colspan=2 style="text-align:center; line-height:1">Robb<br><small>*283</small></td>
<td colspan=2 style="text-align:center; line-height:1">''Sansa''<br><small>*286</small></td>
<td colspan=2 style="text-align:center; line-height:1">''Arya''<br><small>*288</small></td>
<td colspan=2 style="text-align:center; line-height:1">Brandon<br><small>*290</small></td>
<td colspan=2 style="text-align:center; line-height:1">Rickon<br><small>*294</small></td>
<td/><td/><td/>
<td colspan=2 style="text-align:center; line-height:1">Robert<br><small>*291</small></td>
</tr>
</table>
 
:Note that this does not work properly on all browsers.
 
== Image file ==
 
[[Image:WarRosesFamilyTree.png|thumb|right|400px|The houses of [[House of Lancaster|Lancaster]] and [[House of York|York]] during the [[Wars of the Roses]]]]
Complex families can be displayed in an image file. You can use an imagemap to create links to the individuals displayed in the family tree (see [[Counts of Hainaut family tree]], for example).
[[Image:Targtree2.png|thumb|left|400px|Family tree of [[House Targaryen]], from George R. R. Martin's "A Song of Ice and Fire" series.]]
 
A major disadvantage of this method is that if the initial image does not meet the requirements of the [[Wikipedia:Verifiability|Verifiability Policy]] it can be extremely difficult to add the necessary in-line citations to meet those requirements. This means that the whole tree may be removed and under the Verifiability Policy can not be restored to an article unless it meets the requirements of the policy (see [[WP:BURDEN|Responsibility for providing citations]]).
Complex families can be displayed in an image file.<br clear="both" />
 
==Other Template templates==
[[:Category:Genealogy templates]]
 
[[Template:Familytree]] can be used to construct simple table-based family trees using an ASCII art -like syntax:
 
{{familytree/start}}
{{familytree | | | | GRM |~|y|~| GRP | | GRM=Grandma|GRP=Grandpa}}
{{familytree | | | | | | | |)|-|-|-|.| }}
{{familytree | | | MUM |y| DAD | |DAISY| MUM=Mum|DAD=Dad|DAISY=[[Aunt Daisy]]}}
{{familytree | |,|-|-|-|+|-|-|-|.| | | }}
{{familytree | JOE | | ME | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}
{{familytree/end}}
 
== Family trees on Wikipedia ==
 
See:
* [[List of family trees]]
Line 302 ⟶ 312:
 
[[Category:Wikipedia how-to|Family trees]]
 
==See also==
* [[Wikipedia:Graphs and charts]]
* [[Wikipedia:WikiProject Genealogy]]
 
{{Wikipedia technical help|collapsed}}