Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Template:Family tree

From TWC Wiki
Revision as of 04:58, 20 July 2019 by Makanyane (talk | contribs)
Jump to navigationJump to search

Documentation

This is a template for rendering simple family trees or diagrams consisting of boxes and connecting lines based on an ASCII art-like syntax. The trees are displayed as HTML tables using Cascading Style Sheets attributes, and may contain arbitrary wiki markup within the boxes.


Example usage

This code:

 {{family tree/start |summary=I have a brother Joe and a little sister: my mom married my dad, and my dad's parents were Grandma and Grandpa; they had another child, Aunt Daisy.}}
 {{family tree | | | | GMa |~|y|~| GPa | | GMa=Gladys|GPa=Sydney}}
 {{family tree | | | | | | | |)|-|-|-|.| }}
 {{family tree | | | MOM |y| DAD | |DAISY| MOM=Mom|DAD=Dad|DAISY=[[Aunt Daisy]]}}
 {{family tree | |,|-|-|-|+|-|-|-|.| | | }}
 {{family tree | JOE | | ME  | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}
 {{family tree/end}}

Produces this:


 
 
 
Gladys
 
 
 
Sydney
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Mom
 
Dad
 
Aunt Daisy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
My brother Joe
 
Me!
 
My little sister