Difference between revisions of "Template:Tree"

From ArchivesWiki
 
Line 1: Line 1:
 
<div style="{{#if: {{{border|}}} | width:98%; height:80vh; overflow:scroll; border:2px inset black; margin:auto | text-align:center }}">
 
<div style="{{#if: {{{border|}}} | width:98%; height:80vh; overflow:scroll; border:2px inset black; margin:auto | text-align:center }}">
 
{{#genealogy:tree|
 
{{#genealogy:tree|
|ancestors={{{ancestors|{{PAGENAME}}}}} | ancestor depth = {{{depth|}}}
+
|ancestors={{{ancestors|{{PAGENAME}}}}} | ancestor depth = {{{depth|1}}}
|descendants={{{descendants|{{PAGENAME}}}}} | descendant depth = {{{depth|}}}
+
|descendants={{{descendants|{{PAGENAME}}}}} | descendant depth = {{{depth|1}}}
 
}}
 
}}
 
</div>{{#if: {{{descendents|}}} | <p class="error">It's spelt 'descendants', with an 'a'.</p> }}<noinclude>{{documentation}}</noinclude>
 
</div>{{#if: {{{descendents|}}} | <p class="error">It's spelt 'descendants', with an 'a'.</p> }}<noinclude>{{documentation}}</noinclude>

Latest revision as of 23:55, 30 March 2020

Documentation

Usage

{{tree |depth= |border=
|ancestors=
|descendants=
}}