Help:Family trees

From Constant Noble
Jump to navigation Jump to search

The Constant Noble site supports family trees through the use of Sam Wilson's Genealogy extension. Genealogy introduces an eponymous parser function, {{#genealogy:}}, which is used for genealogical data.

In building family trees, Genealogy fetches information supplied in the following calls from the {{Character box}} and Backstory {{Person}} infobox:

  • {{#genealogy:parent|Character:{{{Mother}}}}}
  • {{#genealogy:parent|Character:{{{Father}}}}}
  • {{#genealogy:partner|Character:{{{Spouse}}}}}

The resulting trees, powered by Mermaid graphics, are displayed via {{#genealogy:tree |ancestors=Character:Name |descendants=Character:Name |format=mermaid}} in their own namespace. They run horizontally in contrast to traditional vertically oriented ones, so keep in mind that the more relatives/children tracked, the more complicated the tree, and the longer the page will become unless the parser calls are patched with <div style="overflow-x: auto"></div>.

The first example below involves the ancestors of Devondra, the mid-19th-century "seventh daughter of a seventh daughter" in the Lavinier raccoon tree from Unspooled:

{{#genealogy:tree |ancestors=Character:Devondra |format=mermaid}}

This second example lists the descendants of Agatha, Alfred's distant relative from the tentative first volume of said series:

{{#genealogy:tree |descendants=Character:Agatha |format=mermaid}}

Listing the descendants of Belcourt-Lavinier forebear Geoffroy, for instance, will go through all generations up till his great-great-great-great-great-grandson Samson, and may get rather excessive in the long run. A compromise workaround is provided below for the Belcourt branch, where two prominent children of Guillaume and Mireille are mentioned through alternating means. (The Belcourt brothers and Lavinier sisters produced 29 children among them in a unique case of "septuple cousins", a variation on the "double cousins" concept; this is only reflected whenever the value for descendants is Hersilia, Romulus, Guillaume, Mireille, or one of the latter three's forebears.)

{{#genealogy:tree |ancestors=Character:Grégoire |descendants=Character:Béthune |format=mermaid}}

See also