Template:Family tree

From Guild Wars 2 Wiki
Jump to: navigation, search

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

Usage[edit]

Input variables[edit]

parameters
Defaults to 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40. Specifying an alternative range of numbers, say 1-50, would produce an additional 10 columns. (A column in the case of this value represents how many parameters you need to feed into the template, so if you have a row with 24 unnamed parameters, set it to 24).

Parameters[edit]

1, 2, 3...39, 40
Unnamed parameters. (Limited to number set by "parameters" variable.)
Options:
Text input Symbol output
´
,
.
:
`
!
-
~
^
>
v
y
u
<
+
#
  • |XXX| or XXXXX (X = any other input) produces {{#var:<parameter number>}} inside a block. Allows you to put text into the blocks.
  • |   | produces a blank cell.
box-style
box-style-1, box-style-2, etc.
Affects all styling applied to a text label box.
border
Affects only the borders around text blocks for the one row. Defaults to "2px solid black".
h-style
h-style-1, h-style-2, etc.
Affects only the horizontal lines produced by the # or ~ signs described above for the one row. Defaults to "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").
text-align
Changes text alignment for the text block(s) in the row. Defaults to "center".

Example[edit]

See also: Tyrian royalty family tree
{{#arraymap:
parameters=1,2,3,4,5,6,7,8,9,10,11
JADON=[[gw1:King Jadon|King Jadon]] <br><small>'''*1030AE'''
BEREA=[[gw1:Priestess Berea|Priestess Berea]] <br><small> '''*1030AE'''
SALMA=[[gw1:Queen Salma|Queen Salma]] <br><small>'''*1050AE'''
BAEDE=[[King Baede]]<br><small> '''*1180AE'''
RODER=[[King Roderick]] <br><small>'''*1200AE'''
EDAIR=[[Prince Edair]] <br><small>'''*1210AE'''
EMILA=[[Princess Emilane]] <br><small>'''*1220AE'''
|\n|@@@|{{#vardefine:{{#explode:@@@|=}}|{{#explode:@@@|=|1}}}}}}
{| 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
*1030AE
Priestess Berea
*1030AE
Queen Salma
*1050AE
King Baede
*1180AE
King Roderick
*1200AE
Prince Edair
*1210AE
Princess Emilane
*1220AE

See also[edit]

Credits[edit]