Template:Infobox individual/marriages: Difference between revisions

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search
No edit summary
No edit summary
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox | child = yes
<includeonly>{{#get_db_data:db=tng_db
| titlestyle = background: {{Roleclass colour|{{lc:{{#iferror:{{#external_value:TNGrole}}}}}}|3}}; font-size:100%;
  |from=tng_children LEFT JOIN tng_people ON tng_children.personID=tng_people.personID
| title      = {{TNGfamily|{{{TNGfamilyID}}}}}
  |where=tng_children.familyID='{{{TNGfamilyID}}}'
  |order by=tng_people.birthdate ASC
  |data={{{TNGfamilyID}}}childID=tng_children.personID,{{{TNGfamilyID}}}childlastname=tng_people.lastname,{{{TNGfamilyID}}}childfirstname=tng_people.firstname,{{{TNGfamilyID}}}childbirthdate=tng_people.birthdate,{{{TNGfamilyID}}}childdeathdate=tng_people.deathdate}}<!--
 
-->{{Infobox | child = yes
| headerstyle = background: {{Colour style|{{lc:{{#iferror:{{#external_value:TNGrole}}}}}}|3}}; font-size:100%;
| header2= {{TNGfamily|{{{TNGfamilyID}}}|bio}}
| label4    = Spouse
| label4    = Spouse
|  data4    = {{#switch:{{lc:{{#iferror:{{#external_value:TNGgender}}}}}}|
|  data4    = {{#switch:{{lc:{{#iferror:{{#external_value:TNGgender}}}}}}|
   |male  |m = {{TNGperson|{{{TNGwife|}}}|biobd}}
   |female|f = {{#iferror:{{TNGperson|{{{TNGhusband|}}}|biobd}}|Unknown}}
   |female|f = {{TNGperson|{{{TNGhusband|}}}|biobd}}
   |male  |m = {{#iferror:{{TNGperson|{{{TNGwife|}}}|biobd}}|Unknown}}
   |#default = {{TNGperson|{{{TNGwife|}}}|biobd}}
   |#default = {{#iferror:{{TNGperson|{{{TNGwife|}}}|biobd}}|Unknown}}
   }}
   }}
| label5  = Married
 
|  data5   = {{#if:{{{TNGmarrdate|}}}{{{TNGmarrplace|}}}|{{br separated entries|1={{{TNGmarrdate|}}}|2={{#if:{{{TNGmarrplace|}}}|<span class="birthplace">{{{TNGmarrplace|}}}</span>}}}}}}
| label5  = Nationality
}}
|  data5     = {{#switch:{{lc:{{#iferror:{{#external_value:TNGgender}}}}}}|
<!--
  |female|f = {{#iferror:{{TNGnationality|{{{TNGhusband|}}}|flag}}}}
{{ Count | base=1 }}
  |male  |m = {{#iferror:{{TNGnationality|{{{TNGwife|}}}|flag}}}}
{{!}}-
  |#default = {{#iferror:{{TNGnationality|{{{TNGwife|}}}|flag}}}}
{{!}} class="fn" colspan="2" {{Individual infobox/style|sub_sub_header_bar|{{lc:{{#iferror:{{#external_value:TNGrole}}}}}}}} {{!}} {{TNGfamily|{{{TNGfamilyID}}}}}
  }}
{{!}}-
 
! style="padding-right: 1em;" {{!}} Spouse
| label6  = Married
{{!}} {{!}}-
|  data6  = {{#if:{{{TNGmarrdate|}}}{{{TNGmarrplace|}}}|{{br separated entries|1={{{TNGmarrdate|}}}|2={{#if:{{{TNGmarrplace|}}}|{{{TNGmarrplace|}}}}}}}}}
{{#if:{{{TNGmarrdate|}}}|
 
! style="padding-right: 1em;" {{!}} Married
|  data8  = {{#if:{{#iferror:{{#external_value:{{{TNGfamilyID}}}childID}}}}|<hr/>}}
{{!}} {{{TNGmarrdate}}}
 
}}
| label9  = Children:
{{!}}-
|  data9  = {{#if:{{#iferror:{{#external_value:{{{TNGfamilyID}}}childID}}}}|&nbsp;}}
{{#if:{{{TNGmarrplace|}}}|
 
! style="padding-right: 1em;" {{!}} Married place
|  data10  = {{#if:{{#iferror:{{#external_value:{{{TNGfamilyID}}}childID}}}}|{{#display_external_table:template=Infobox individual/children|data=childID={{{TNGfamilyID}}}childID,childlastname={{{TNGfamilyID}}}childlastname,childfirstname={{{TNGfamilyID}}}childfirstname,childbirthdate={{{TNGfamilyID}}}childbirthdate,childdeathdate={{{TNGfamilyID}}}childdeathdate}}}}&nbsp;<hr/>
{{!}} {{{TNGmarrplace}}}
}}</includeonly>{{main other|<!--
}}
-->{{#if:{{{TNGwife|}}}|[[Category:{{TNGperson|{{{TNGwife|}}}|lastname}}]]}}<!--
{{#get_db_data:db=tng_db
-->{{#if:{{{TNGhusband|}}}|[[Category:{{TNGperson|{{{TNGhusband|}}}|lastname}}]]}}<!--
  |from=tng_children LEFT JOIN tng_people ON tng_children.personID=tng_people.personID
-->{{#if:{{{box_width|}}}|[[Category:Infobox person using boxwidth parameter]]}}<!--
  |where=tng_children.familyID='{{{TNGfamilyID}}}'
-->{{#if:{{{occupation|}}}|[[Category:{{{occupation}}}]]}}<!--
  |order by=tng_people.birthdate ASC
-->{{#if:{{{hon prefix|}}}{{{hon_prefix|}}}{{{hon suffix|}}}{{{hon_suffix|}}}|[[Category:Biographies with honorific prefix or suffix]]}}<!--
  |data={{{TNGfamilyID}}}childID=tng_children.personID,{{{TNGfamilyID}}}childlastname=tng_people.lastname,{{{TNGfamilyID}}}childfirstname=tng_people.firstname,{{{TNGfamilyID}}}childbirthdate=tng_people.birthdate,{{{TNGfamilyID}}}childdeathdate=tng_people.deathdate}}
-->[[Category:Articles with hCards]]
{{!}}-
}}<noinclude>
{{#if:{{#iferror:{{#external_value:{{{TNGfamilyID}}}childID}}}}|
! style="padding-right: 1em; border-top: {{Individual infobox/style|section_border}}" {{!}} Children
{{!}}style="padding-right: 1em; border-top: {{Individual infobox/style|section_border}}" {{!}} {{#display_external_table:template=Individual infobox/children|data=childID={{{TNGfamilyID}}}childID,childlastname={{{TNGfamilyID}}}childlastname,childfirstname={{{TNGfamilyID}}}childfirstname,childbirthdate={{{TNGfamilyID}}}childbirthdate,childdeathdate={{{TNGfamilyID}}}childdeathdate}} }}-->
</includeonly><noinclude>
[[Category:Data retrieval templates]]
[[Category:Data retrieval templates]]
[[Category:People infobox templates| ]]
[[Category:People infobox templates| ]]
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 05:59, 11 October 2014

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}