Difference between revisions of "Template:Family"
(Created page with "<noinclude>Header for a family page. * Unnamed parameters: parent names interleaved with FamilySearch ID numbers, for linking * ''surname'': family's surname for sorting; defa...") |
|||
| Line 1: | Line 1: | ||
<noinclude>Header for a family page. | <noinclude>Header for a family page. | ||
| − | * Unnamed parameters: parent names interleaved with FamilySearch ID numbers, for linking | + | * Unnamed parameters: parent names interleaved with FamilySearch ID numbers, for linking (supports up to 6 parents) |
* ''surname'': family's surname for sorting; defaults to the last word in the page name | * ''surname'': family's surname for sorting; defaults to the last word in the page name | ||
* ''child family'': name of a child's own family page; multiple children may be separated by commas | * ''child family'': name of a child's own family page; multiple children may be separated by commas | ||
| − | * ''ancestor family'': families in which the parents are children, separated by commas | + | * ''ancestor family'': families to link to in which the parents are children, separated by commas |
* ''photo'': name of a file to display at the top (e.g., ''File:Family Picture.jpg'') | * ''photo'': name of a file to display at the top (e.g., ''File:Family Picture.jpg'') | ||
| + | Adds the [[:Category:Family]] tag and sets [[Property:Surname]], [[Property:Child Family]], and [[Property:Descendant Family]]. | ||
</noinclude><includeonly>[[Category:Family|{{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}}]]{{#set: | </noinclude><includeonly>[[Category:Family|{{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}}]]{{#set: | ||
| Surname={{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}} | | Surname={{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}} | ||
| Descendant Family={{PAGENAME}} | | Descendant Family={{PAGENAME}} | ||
| − | }}{{For Each|{{{child family|}}} | + | }}{{For Each|{{{child family|}}}|,|| |
| template=Family/Set Descendants | | template=Family/Set Descendants | ||
}} | }} | ||
Revision as of 20:21, 14 June 2015
Header for a family page.
- Unnamed parameters: parent names interleaved with FamilySearch ID numbers, for linking (supports up to 6 parents)
- surname: family's surname for sorting; defaults to the last word in the page name
- child family: name of a child's own family page; multiple children may be separated by commas
- ancestor family: families to link to in which the parents are children, separated by commas
- photo: name of a file to display at the top (e.g., File:Family Picture.jpg)
Adds the Category:Family tag and sets Property:Surname, Property:Child Family, and Property:Descendant Family.