Difference between revisions of "Template:Ahnentafel-chart/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>PBS
(→‎Examples: top_down example)
blackwiki>Cedar101
(→‎Examples: replace <nowiki> with <source>)
Line 33: Line 33:
 
===Examples===
 
===Examples===
  
<nowiki>{{chart top|collapsed=no|width=100%|Bottom up (default) third generation family tree (ahnentafel 7)}}</nowiki>
+
<source lang="text">{{chart top|collapsed=no|width=100%|Bottom up (default) third generation family tree (ahnentafel 7)}}
<nowiki>{{</nowiki>Ahnentafel-chart
+
{{Ahnentafel-chart
|1=subject
+
|1=subject
|2=father
+
|2=father
|3=mother
+
|3=mother
|4=paternal grandfather
+
|4=paternal grandfather
|5=paternal grandmother
+
|5=paternal grandmother
|6=maternal grandfather
+
|6=maternal grandfather
|7=maternal grandmother
+
|7=maternal grandmother
}}
+
}}
<nowiki>{{chart bottom}}</nowiki>
+
{{chart bottom}}
 +
</source>
 
  {{chart top|collapsed=no|width=100%|Bottom up (default) third generation family tree (ahnentafel 7)}}
 
  {{chart top|collapsed=no|width=100%|Bottom up (default) third generation family tree (ahnentafel 7)}}
 
  {{Ahnentafel-chart
 
  {{Ahnentafel-chart
Line 56: Line 57:
 
  {{chart bottom}}
 
  {{chart bottom}}
  
<nowiki>{{chart top|collapsed=no||width=100%|Top down third generation family tree (ahnentafel 7}}</nowiki>
+
<source lang="css">
<nowiki>{{</nowiki>Ahnentafel-chart
+
{{chart top|collapsed=no||width=100%|Top down third generation family tree (ahnentafel 7}}
|top_down=yes
+
{{Ahnentafel-chart
|boxstyle_1=background-color: #bfc;
+
|top_down=yes
|boxstyle_2=background-color: #9fe;
+
|boxstyle_1=background-color: #bfc;
|boxstyle_3=background-color: #ffc;
+
|boxstyle_2=background-color: #9fe;
|1=subject
+
|boxstyle_3=background-color: #ffc;
|2=father
+
|1=subject
|3=mother |4=paternal grandfather |5=paternal grandmother |6=maternal grandfather |7=maternal grandmother
+
|2=father
}}
+
|3=mother |4=paternal grandfather |5=paternal grandmother |6=maternal grandfather |7=maternal grandmother
<nowiki>{{chart bottom}}</nowiki>
+
}}
 +
{{chart bottom}}
 +
</source>
 
  {{chart top|collapsed=no||width=100%|Top down third generation family tree (ahnentafel 7)}}
 
  {{chart top|collapsed=no||width=100%|Top down third generation family tree (ahnentafel 7)}}
 
  {{Ahnentafel-chart
 
  {{Ahnentafel-chart
Line 80: Line 83:
 
  {{chart bottom}}
 
  {{chart bottom}}
  
<nowiki>{{chart top|collapsed=no|width=100%|Family tree with numbers (ahnentafel 31)}}</nowiki>
+
<source lang="css">
{{</nowiki>Ahnentafel-chart
 
|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.
 
<nowiki>}}</nowiki>
 
<nowiki>{{chart bottom}}</nowiki>
 
 
 
 
{{chart top|collapsed=no|width=100%|Family tree with numbers (ahnentafel 31)}}
 
{{chart top|collapsed=no|width=100%|Family tree with numbers (ahnentafel 31)}}
 
{{Ahnentafel-chart
 
{{Ahnentafel-chart
Line 111: Line 99:
 
}}
 
}}
 
{{chart bottom}}
 
{{chart bottom}}
 
+
</source>
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 05:42, 20 May 2019

Usage

Continental European style family tree of Sigmund Christoph von Waldburg-Zeil-Trauchburg

The template displays a Continental European style family tree: "bottom up" or "top down". Entries are added using ahnentafel numbering.

Parameters

{{Ahnentafel-chart
|1=subject
|2=father
|3=mother
|4=grandfather
...
31=great-great-grandmother
}}

N.B. Although this template will create a table up to great-great-grandparents (ahnentafel 31) it will be wider than easily represented on most screens and/or printers so consider using {{Ahnentafel}} or {{Ahnentafel-tree}} instead.

Optional parameters:

boxstyle_1=background-color:#fcc;
boxstyle_2=background-color:#fb9;
boxstyle_3=background-color:#ffc;
boxstyle_4=background-color:#bfc;
boxstyle_5=background-color:#9fe;
top_down= — inverses the "bottom up" template to be a "top down"
style_chart= — add style attritions to the table

Style works on the entries on each line

style_1=style — eg. style_1=font-style: italic; font-weight:bold;
....
style_31=style

Examples

{{chart top|collapsed=no|width=100%|Bottom up (default) third generation family tree (ahnentafel 7)}}
{{Ahnentafel-chart
|1=subject
|2=father
|3=mother
|4=paternal grandfather
|5=paternal grandmother
|6=maternal grandfather
|7=maternal grandmother
}}
{{chart bottom}}
Bottom up (default) third generation family tree (ahnentafel 7)
  1. REDIRECT Template:Tree chart/start


  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Template:Tree chart

Template:Tree chart
Template:Tree chart
Template:Tree chart
Template:Tree chart

  1. REDIRECT Template:Tree chart/end


  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.
{{chart top|collapsed=no||width=100%|Top down third generation family tree (ahnentafel 7}}
{{Ahnentafel-chart
|top_down=yes
|boxstyle_1=background-color: #bfc;
|boxstyle_2=background-color: #9fe;
|boxstyle_3=background-color: #ffc;
|1=subject
|2=father
|3=mother |4=paternal grandfather |5=paternal grandmother |6=maternal grandfather |7=maternal grandmother
}}
{{chart bottom}}
  1. REDIRECT Template:Tree chart/start


  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Template:Tree chart

 Template:Tree chart
Template:Tree chart
Template:Tree chart
Template:Tree chart

  1. REDIRECT Template:Tree chart/end


  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.
{{chart top|collapsed=no|width=100%|Family tree with numbers (ahnentafel 31)}}
{{Ahnentafel-chart
|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.
}}
{{chart bottom}}