Template:Familytree/doc
From Tolkien Gateway
This is a template for rendering simple family trees consisting of boxes and connecting lines based on an ASCII art-like syntax. The trees are displayed as HTML tables using CSS attributes, and may contain arbitrary wiki markup within the boxes.
Example usage
This code:
{{familytree/start}} {{familytree | | | | Mama |~|y|~| GRP | | Mama=Mama|GRP=Grandpa}} {{familytree | | | | | | | |)|-|-|-|.| }} {{familytree | | | MOM |y| DAD | |DAISY| MOM=Mom|DAD=Dad|DAISY=Aunt Daisy}} {{familytree | |,|-|-|-|+|-|-|-|.| | | }} {{familytree | JOE | | ME | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}} {{familytree/end}}
Produces this:
Mama | Grandpa | ||||||||||||||||||||||||
Mom | Dad | Aunt Daisy | |||||||||||||||||||||||
My brother Joe | Me! | My little sister | |||||||||||||||||||||||