Difference between revisions of "Template:Family"

From Green Family Wiki
Jump to: navigation, search
Line 8: Line 8:
 
* ''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 ''year''+75
 
* ''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]], and [[Property:Parent Death Year]].
+
Adds the [[:Category:Family]] tag and sets [[Property:Surname]], [[Property:Child Family]], [[Property:Descendant Family]], [[Property:Year]], [[Property:Parent Birth Year]], and [[Property:Parent Death Year]]; creates link subobjects with [[Property:Child Link Family]], [[Property:Child Link Index]], [[Property:Grandparent Link Family]], and [[Property:Grandparent Link Index]].
</noinclude><includeonly>[[Category:Family|{{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}}]]{{#set:
+
</noinclude><includeonly>{{Family/Set Basic
| Surname={{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}}
+
| surname={{#if:{{{surname|}}}|{{{surname}}}|{{Last Word|{{PAGENAME}}}}}}
| Descendant Family={{PAGENAME}}
 
 
}}{{For Each|{{{child family|}}}|,||
 
}}{{For Each|{{{child family|}}}|,||
| template=Family/Set Descendants
+
| template=Family/Set Child
 +
}}{{For Each|{{{grandparent family|}}}|,||
 +
| template=Family/Set Grandparent
 
}}
 
}}
 
{{#if:{{{photo|}}}
 
{{#if:{{{photo|}}}
Line 31: Line 32:
 
}}{{Wrap|
 
}}{{Wrap|
  
''Ancestors:''
+
''Grandparents:''
|{{For Each|{{{ancestor family|}}}|,|
+
|{{For Each|{{{grandparent family|}}}|,|
 
| template=Family/Link Line
 
| template=Family/Link Line
 
}}}}{{Wrap|
 
}}}}{{Wrap|

Revision as of 22:03, 18 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
  • 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 death year: Latest year of a parent's death; default is parent birth year+100 or year+75
  • 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, and Property:Parent Death Year; creates link subobjects with Property:Child Link Family, Property:Child Link Index, Property:Grandparent Link Family, and Property:Grandparent Link Index.