See the documentation on Template:Familytree.