Template:Familytree/element: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
mNo edit summary
No edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 2: Line 2:
{{#ifexpr: {{#len:{{{1}}}}} <= 1 |
{{#ifexpr: {{#len:{{{1}}}}} <= 1 |
<!-- -->{{#ifeq: {{{1}}}|_|</tr><tr>|
<!-- -->{{#ifeq: {{{1}}}|_|</tr><tr>|
<!-- --><td style="margin:0;padding:0;">
<!-- --><td class="family-tree-table-cell">
<!--    --><table style="border-spacing:0;margin:0;padding:0;"><tr>
<!--    --><table class="family-tree-line-table"><tr>
<!--      --><td style="width:0.5em; height:0.5em;
<!--      --><td class="family-tree-line
<!--          -->{{#switch: {{{1}}} <!-- top line -->
<!--          -->{{#switch: {{{1}}} <!-- top line -->
<!--            -->|)|+|(|`|^|'|!=border-right:1px solid  black;
<!--            -->|)|+|(|`|^|'|!=family-tree-line-solid-right  
<!--            -->|D|%|C|L|A|J|:=border-right:1px dashed black;
<!--            -->|D|%|C|L|A|J|:=family-tree-line-dashed-right  
<!--            -->|]|#|[|c|h|j|!=border-right:1px solid  black;
<!--            -->|]|#|[|c|h|j|!=family-tree-line-solid-right  
<!--            -->|}|*|{|b|t|d|:=border-right:1px dashed black;
<!--            -->|}|*|{|b|t|d|:=family-tree-line-dashed-right  
<!--          -->|}}
<!--          -->|}}
<!--          -->{{#switch: {{{1}}} <!-- left line -->
<!--          -->{{#switch: {{{1}}} <!-- left line -->
<!--            -->|v|.|+|(|^|'|-=border-bottom:1px solid  black;
<!--            -->|v|.|+|(|^|'|-=family-tree-line-solid-bottom  
<!--            -->|V|7|%|C|A|J|~=border-bottom:1px dashed black;
<!--            -->|V|7|%|C|A|J|~=family-tree-line-dashed-bottom  
<!--            -->|y|n|#|[|h|j|~=border-bottom:1px dashed black;
<!--            -->|y|n|#|[|h|j|~=family-tree-line-dashed-bottom  
<!--            -->|u|q|*|{|t|d|-=border-bottom:1px solid  black;
<!--            -->|u|q|*|{|t|d|-=family-tree-line-solid-bottom  
<!--          -->|}}">&nbsp;</td>
<!--          -->|}}">&nbsp;</td>
<!--      --><td style="width:0.5em; height:0.5em;
<!--      --><td class="family-tree-line
<!--          -->{{#switch: {{{1}}} <!-- right line -->
<!--          -->{{#switch: {{{1}}} <!-- right line -->
<!--            -->|,|v|)|+|`|^|-=border-bottom:1px solid  black;
<!--            -->|,|v|)|+|`|^|-=family-tree-line-solid-bottom  
<!--            -->|F|V|D|%|L|A|~=border-bottom:1px dashed black;
<!--            -->|F|V|D|%|L|A|~=family-tree-line-dashed-bottom  
<!--            -->|r|y|]|#|c|h|~=border-bottom:1px dashed black;
<!--            -->|r|y|]|#|c|h|~=family-tree-line-dashed-bottom  
<!--            -->|p|u|}|*|b|t|-=border-bottom:1px solid  black;
<!--            -->|p|u|}|*|b|t|-=family-tree-line-solid-bottom  
<!--          -->|}}">&nbsp;</td>
<!--          -->|}}">&nbsp;</td>
<!--      --></tr><tr>
<!--      --></tr><tr>
<!--      --><td style="width:0.5em; height:0.5em;
<!--      --><td class="family-tree-line
<!--          -->{{#switch: {{{1}}} <!-- bottom line -->
<!--          -->{{#switch: {{{1}}} <!-- bottom line -->
<!--            -->|,|v|.|)|(|+|!=border-right:1px solid  black;
<!--            -->|,|v|.|)|(|+|!=family-tree-line-solid-right  
<!--            -->|F|V|7|D|C|%|:=border-right:1px dashed black;
<!--            -->|F|V|7|D|C|%|:=family-tree-line-dashed-right  
<!--            -->|r|y|n|]|[|#|!=border-right:1px solid  black;
<!--            -->|r|y|n|]|[|#|!=family-tree-line-solid-right  
<!--            -->|p|u|q|}|{|*|:=border-right:1px dashed black;
<!--            -->|p|u|q|}|{|*|:=family-tree-line-dashed-right  
<!--          -->|}}">&nbsp;</td>
<!--          -->|}}">&nbsp;</td>
<!--      --><td style="width:0.5em; height:0.5em;">&nbsp;</td>
<!--      --><td class="family-tree-line">&nbsp;</td>
<!--    --></tr></table>
<!--    --></tr></table>
<!-- --></td>
<!-- --></td>
<!-- -->}}
<!-- -->}}
| <!-- multi-character params -->
| <!-- multi-character params -->
<!-- --><td style="background-color:#FFEBCD; padding: 0.2em;text-align: center;" colspan="3">{{{1}}}</td>
<!-- --><td class="family-tree-element" colspan="3">{{{1}}}</td>
}}
}}
</includeonly><noinclude>{{Documentation}}</noinclude>
</includeonly><noinclude>{{documentation}}[[Category:Genealogy templates]]</noinclude>

Latest revision as of 20:32, 4 June 2023

Instructions for {{Familytree/element}}
This is a main element in the Template:Familytree template. The only parameter is the char to convert. These can be seen at Template:Familytree/doc.