Difference between revisions of "Template:Family"
| Line 2: | Line 2: | ||
* Unnamed parameters: parent names interleaved with FamilySearch ID numbers, for linking (supports up to 6 parents) | * 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 | + | * ''child family'': name of a child's own family page; multiple children may be separated by semicolons (;) |
| − | * '' | + | * ''grandparent family'': families to link to in which the parents are children, separated by semicolons (;) |
| − | * ''year'': Year of marriage or similar event; default is ''parent birth year''+25 or ''parent death year''-75 | + | * ''marriage year'': Year of marriage or similar event; default is ''parent birth year''+25 or ''parent death year''-75 |
| − | * ''parent birth year'': Earliest year of a parent's birth; default is ''parent death year''-100 or ''year''-25 | + | * ''parent birth year'': Earliest year of a parent's birth; default is ''parent death year''-100 or ''marriage year''-25 |
| − | * ''parent death year'': Latest year of a parent's death; default is ''parent birth year''+100 or ''year''+75 | + | * ''parent death year'': Latest year of a parent's death; default is ''parent birth year''+100 or ''marriage year''+75 |
* ''residence'': place where the family lived; multiple places separated by semicolons (;) | * ''residence'': place where the family lived; multiple places separated by semicolons (;) | ||
* ''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]], [[Property:Descendant Family]], [[Property:Year]], [[Property:Parent Birth Year]], [[Property:Parent Death Year]], and [[Property:Residence]]; creates link subobjects with [[Property:Child Link Family]], [[Property:Child Link Index]], [[Property:Grandparent Link Family]], [[Property:Grandparent Link Index]], [[Property:Residence Link Place]], and [[Property:Residence Link Index]]. | + | Adds the [[:Category:Family]] tag and sets [[Property:Surname]], [[Property:Child Family]], [[Property:Descendant Family]], [[Property:Marriage Year]], [[Property:Parent Birth Year]], [[Property:Parent Death Year]], and [[Property:Residence]]; creates link subobjects with [[Property:Child Link Family]], [[Property:Child Link Index]], [[Property:Grandparent Link Family]], [[Property:Grandparent Link Index]], [[Property:Residence Link Place]], and [[Property:Residence Link Index]]. |
</noinclude><includeonly>{{Family/Set Basic | </noinclude><includeonly>{{Family/Set Basic | ||
| surname={{#if:{{{surname|}}}|{{{surname}}}|{{#explode:{{PAGENAME}}| |-1}}}} | | surname={{#if:{{{surname|}}}|{{{surname}}}|{{#explode:{{PAGENAME}}| |-1}}}} | ||
| − | }}{{For Each|{{{child family|}}}| | + | }}{{For Each|{{{child family|}}}|;|| |
| template=Family/Set Child | | template=Family/Set Child | ||
| − | }}{{For Each|{{{grandparent family|}}}| | + | }}{{For Each|{{{grandparent family|}}}|;|| |
| template=Family/Set Grandparent | | template=Family/Set Grandparent | ||
}}{{For Each|{{{residence|}}}|;|| | }}{{For Each|{{{residence|}}}|;|| | ||
| Line 29: | Line 29: | ||
| {{Family/Parent Name| name={{{11}}} | familysearch={{{12|}}} }} | | {{Family/Parent Name| name={{{11}}} | familysearch={{{12|}}} }} | ||
}}}}}}}}}}}}}}}}}}}}{{Family/Years | }}}}}}}}}}}}}}}}}}}}{{Family/Years | ||
| − | | year={{{year|}}} | + | | marriage year={{{marriage year|}}} |
| parent birth year={{{parent birth year|}}} | | parent birth year={{{parent birth year|}}} | ||
| parent death year={{{parent death year|}}} | | parent death year={{{parent death year|}}} | ||
| Line 40: | Line 40: | ||
''Grandparents:'' | ''Grandparents:'' | ||
| − | |{{For Each|{{{grandparent family|}}}| | + | |{{For Each|{{{grandparent family|}}}|;| |
| template=Family/Link Line | | template=Family/Link Line | ||
}}}}{{Wrap| | }}}}{{Wrap| | ||
''Descendants:'' | ''Descendants:'' | ||
| − | |{{For Each|{{{child family|}}}| | + | |{{For Each|{{{child family|}}}|;| |
| template=Family/Descendant Tree | | template=Family/Descendant Tree | ||
}}}}</includeonly> | }}}}</includeonly> | ||
Revision as of 20:05, 25 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 semicolons (;)
- grandparent family: families to link to in which the parents are children, separated by semicolons (;)
- marriage year: Year of marriage or similar event; default is parent birth year+25 or parent death year-75
- parent birth year: Earliest year of a parent's birth; default is parent death year-100 or marriage year-25
- parent death year: Latest year of a parent's death; default is parent birth year+100 or marriage year+75
- residence: place where the family lived; multiple places separated by semicolons (;)
- 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, Property:Descendant Family, Property:Marriage Year, Property:Parent Birth Year, Property:Parent Death Year, and Property:Residence; creates link subobjects with Property:Child Link Family, Property:Child Link Index, Property:Grandparent Link Family, Property:Grandparent Link Index, Property:Residence Link Place, and Property:Residence Link Index.