Template:Family tree

From Guild Wars Wiki
Jump to navigationJump to search

A template for generating family trees, e.g. the descendants of King Doric.

Usage[edit]

Input variables[edit]

parameters
Defaults to 10. Set this to the maximum number of parameters you intend to use.

Parameters[edit]

1, 2, 3...39, 40
Unnamed parameters. (Limited to number set by "parameters" variable.) Options:
  • ,
    A solid connector (right, below)
  • -
    A solid connector (left, right)
  • ^
    A solid connector (above, left, right)
  • .
    A solid connector (left, below)
  • v
    A solid connector (left, right, below)
  • !
    A solid connector (above, below)
  • y
    A dotted connector with a solid connector below (children of marriage/young)
  • ~
    A dotted connector (marriage)
  • +
    A cross connector (above, right, left, below)
  • #
    A cross connector, with the horizontal line dashed
  • (anything else)
    This produces {{#var:<parameter number>}} inside a block. Allows you to put text into the blocks.
  • <blank>
    A blank cell.
box-style
Add styling to the text blocks in a row. Defaults to "border:2px solid black; text-align:center;".
box-style-(number)
Add styling to specific text block in a row. Defaults to value of "box-style" parameter.
h-style
Add styling to the horizontal lines (# or ~ signs as described above) for the row. Defaults to "border-bottom: 1px dashed black;".
colspan
Offers the ability to change the number of columns spanned by the text block in the row. Using this parameter will affect all text blocks in the row. (Use multiples of 3, defaults to "6").
colspan-(number)
Offers ability to target specific cell with a colspan. Defaults to value of "colspan" parameter.

Example[edit]

See also: Imperial family tree
{{#if:
 {{#vardefine:parameters|12}}
 {{Family tree/textbox|JADON|'''[[King Jadon]]''' <br>*1030?♔?-1080AE?|Fled Kryta and abondoned the throne to the White Mantle during the Charr invasion in 1070 AE.}}
 {{Family tree/textbox|BEREA|♀'''[[Priestess Berea]]''' <br>*1030AE? <br>1080AE?|King Jadon's lover.}}
 {{Family tree/textbox|SALMA|♀'''[[Queen Salma]]''' <br>*1050?♕1079-1120AE?|Retook the Krytan throne from the White Mantle and was crowned Queen in 1079AE.}}
 {{Family tree/textbox|BAEDE|'''King Baede''' <br>*1180?♔?-1256AE}}
 {{Family tree/textbox|EDAIR|'''Prince Edair''' <br>*1210?♔?-1280AE?|Named as his father's successor upon his death in 1256 AE. But it has not been confirmed whether or not he actually became king.}}
 {{Family tree/textbox|EMILA|♀'''Princess Emilane''' <br>*1220?-1290AE?}}
 {{Family tree/textbox|RODER|'''King Roderick''' <br>*1200?♔?-1270AE?|Succeded the throne within 10 years after Baede's death, and said to have built the garden of the Upper City in Divinity's Reach around 1265 AE. Therefore, it is possible that he was King Baede's unnamed eldest son, and was crowned king ''instead'' of, or shortly after, Prince Edair.}}
}}
{| border="0" cellspacing="0" cellpadding="0" style="font:75% sans-serif"
{{family tree|   |   |   |   JADON   | y |   BEREA   }}
{{family tree|   |   |   |   |   |   | ! }}
{{family tree|   |   |   |   |   |   SALMA   }}
{{family tree|   |   |   |   |   |   | ! }}
{{family tree|   |   |   |   |   |   BAEDE   }}
{{family tree|   |   | , | - | - | - | + | - | - | - | . }}
{{family tree|   |   RODER   |   |   EDAIR   |   |   EMILA   }}
|}

Produces:

King Jadon
*1030?♔?-1080AE?
Fled Kryta and abondoned the throne to the White Mantle during the Charr invasion in 1070 AE.
Priestess Berea
*1030AE?
1080AE?
King Jadon's lover.
Queen Salma
*1050?♕1079-1120AE?
Retook the Krytan throne from the White Mantle and was crowned Queen in 1079AE.
King Baede
*1180?♔?-1256AE
King Roderick
*1200?♔?-1270AE?
Succeded the throne within 10 years after Baede's death, and said to have built the garden of the Upper City in Divinity's Reach around 1265 AE. Therefore, it is possible that he was King Baede's unnamed eldest son, and was crowned king instead of, or shortly after, Prince Edair.
Prince Edair
*1210?♔?-1280AE?
Named as his father's successor upon his death in 1256 AE. But it has not been confirmed whether or not he actually became king.
Princess Emilane
*1220?-1290AE?

Credits[edit]