Line 1: |
Line 1: |
− | {{#vardefine:subject | Elizabeth Hickox }} <!-- will be passed from template later --> | + | {{#vardefine:subject | {{{subject}}} }} |
− | {{#vardefine:birth_date | {{#ask: {{#var:subject}} | ?was born on}} }}
| + | {{#vardefine:pronoun | {{{pronoun}}} }} |
− | {{#vardefine:death_date | {{#ask: {{{full_name}}} | ?died on}} }}
| |
− | {{#vardefine:marriage_date | {{#ask: {{{full_name}}} | ?was married on}} }} | |
− | {{#vardefine:spouse | {{#ask: {{{full_name}}} | ?was first married to }} }}
| |
− | {{#vardefine:father-in-law | {{#ask: {{#var:spouse}} | ?has father}} }}
| |
− | {{#vardefine:mother-in-law | {{#ask: {{#var:spouse}} | ?has mother}} }}
| |
| | | |
− | *{{#var:subject}}
| + | {{#vardefine:first_name | {{#explode: {{#var:subject}} | | 0}} }} |
− | *{{#var:birth_date}}
| + | {{#vardefine:birth_date | {{#show: {{#var:subject}} | ?was born on}} }} |
− | *{{#var:death_date}}
| + | {{#vardefine:death_date | {{#show: {{#var:subject}} | ?died on}} }} |
− | *{{#var:marriage_date}}
| + | {{#vardefine:first_spouse | {{#show: {{#var:subject}} | ?was first married to}} }} |
| + | {{#vardefine:second_spouse | {{#show: {{#var:subject}} | ?was second married to}} }} |
| + | {{#vardefine:third_spouse | {{#show: {{#var:subject}} | ?was third married to}} }} |
| | | |
| + | {{#vardefine:birth_section |
| + | | |
| + | {{#if: {{#var:birth_date}} |
| + | | |
| + | {{#if: {{#var:death_date}} |
| + | | |
| + | [[{{{subject}}}|{{#var:first_name}}]] ({{#var:birth_date}} - {{#var:death_date}}) | [[{{{subject}}}|{{#var:first_name}}]], b. {{#var:birth_date}}, }} | {{#if: {{#var:death_date}} | [[{{{subject}}}|{{#var:first_name}}]], d. {{#var:death_date}}, | [[{{{subject}}}|{{#var:first_name}}]] (unknown-unknown) }} }} }} |
| | | |
− | <!-- Birth Section -->
| + | {{#if: {{#var:first_spouse}} |
− | [[{{#var:subject}}]]{{#vardefine:birth_section | {{#if: {{#var:birth_date}} | {{#if: {{#var:death_date}} | ({{#var:birth_date}} - {{#var:death_date}}) | , born {{#var:birth_date}}, }} | {{#if: {{#var:death_date}} | , died {{#var:death_date}} | (unknown-unknown) }} }} }}
| + | | |
| + | {{#vardefine:first_marriage_date | {{#show: {{#var:subject}} | ?was first married on}} }} |
| + | {{#vardefine:first_father-in-law | {{#show: {{#var:first_spouse}} | ?has father}} }} |
| + | {{#vardefine:first_mother-in-law | {{#show: {{#var:first_spouse}} | ?has mother}} }} |
| + | {{#if: {{#var:first_spouse}} |
| + | | |
| + | {{#vardefine:first_marriage_section |
| + | | |
| + | {{#if: {{#var:first_spouse}} |
| + | | |
| + | first married [[{{#var:first_spouse}}]] |
| + | {{#if: {{#var:first_father-in-law}} |
| + | | |
| + | , child of [[{{#var:first_father-in-law}}]] |
| + | {{#if: {{#var:first_mother-in-law}} |
| + | | |
| + | and [[{{#var:first_mother-in-law}}]], | }} | |
| + | {{#if: {{#var:first_mother-in-law}} |
| + | | , child of [[{{#var:first_mother-in-law}}]], |
| + | | }} |
| + | }} |
| + | | }} |
| + | {{#if: {{#var:first_marriage_date}} |
| + | | |
| + | on {{#var:first_marriage_date}} |
| + | | }} |
| + | . }} |
| + | | }} |
| | | |
− | <!-- Marriage Section -->
| + | {{#if: {{#var:second_spouse}} |
− | {{#if: {{#var:marriage_date}} | married {{#if: {{#var:spouse}} | [[{{#var:husband}}]] | unknown}} | }} }} | + | | |
| + | {{#vardefine:second_marriage_date | {{#show: {{#var:subject}} | ?was second married on}} }} |
| + | {{#vardefine:second_spouse | {{#show: {{#var:subject}} | ?was second married to}} }} |
| + | {{#vardefine:second_father-in-law | {{#show: {{#var:second_spouse}} | ?has father}} }} |
| + | {{#vardefine:second_mother-in-law | {{#show: {{#var:second_spouse}} | ?has mother}} }} |
| + | {{#vardefine:second_marriage_section | |
| + | |
| + | {{#if: {{#var:second_spouse}} |
| + | | |
| + | {{#var:first_name}} next married [[{{#var:second_spouse}}]] |
| + | {{#if: {{#var:second_father-in-law}} |
| + | | |
| + | , child of [[{{#var:second_father-in-law}}]] {{#if: {{#var:second_mother-in-law}} |
| + | | |
| + | and [[{{#var:second_mother-in-law}}]], |
| + | }} |
| + | | |
| + | {{#if: {{#var:second_mother-in-law}} |
| + | | , child of [[{{#var:second_mother-in-law}}]], |
| + | | }} |
| + | {{#if: {{#var:second_marriage_date}} |
| + | | on {{#var:second_marriage_date}} |
| + | | }} |
| + | | |
| + | {{#vardefine:second_marriage_section | }} |
| + | . }} |
| + | | }} |
| | | |
− | {{#if:{{#var:father-in-law}} | son of [[{{#var:father-in-law}}]] | unknown father }} | + | {{#if: {{#var:third_spouse}} | |
| + | {{#vardefine:third_marriage_date | {{#show: {{#var:subject}} | ?was third married on}} }} |
| + | {{#vardefine:third_spouse | {{#show: {{#var:subject}} | ?was third married to}} }} |
| + | {{#vardefine:third_father-in-law | {{#show: {{#var:third_spouse}} | ?has father}} }} |
| + | {{#vardefine:third_mother-in-law | {{#show: {{#var:third_spouse}} | ?has mother}} }} |
| + | {{#vardefine:third_marriage_section | |
| + | {{#if: {{#var:third_spouse}} | {{#var:first_name}} next married [[{{#var:third_spouse}}]]{{#if: {{#var:third_father-in-law}} | , child of [[{{#var:third_father-in-law}}]] {{#if: {{#var:third_mother-in-law}} | and [[{{#var:third_mother-in-law}}]], | }} | {{#if: {{#var:third_mother-in-law}} | , child of [[{{#var:third_mother-in-law}}]], | }} }} | }} {{#if: {{#var:third_marriage_date}} | on {{#var:third_marriage_date}} | }}. }} | }} |
| + | | |
| + | {{#vardefine:second_marriage_date | }} |
| + | {{#vardefine:second_spouse | }} |
| + | {{#vardefine:second_father-in-law | }} |
| + | {{#vardefine:second_mother-in-law | }} |
| + | {{#vardefine:second_marriage_section | }} |
| + | {{#vardefine:third_marriage_date | }} |
| + | {{#vardefine:third_spouse | }} |
| + | {{#vardefine:third_father-in-law | }} |
| + | {{#vardefine:third_mother-in-law | }} |
| + | {#vardefine:third_marriage_section | }} |
| + | }} |
| | | |
− | {{#if:{{#var:mother-in-law}} | and [[{{#var:mother-in-law}}]] | unknown mother }} | + | ==debug== |
| + | :subject:{{#var:subject}} |
| + | :pronoun:{{#var:pronoun}} |
| + | :first name:{{#var:first_name}} |
| + | :birth date:{{#var:birth_date}} |
| + | :death date:{{#var:death_date}} |
| + | :first marriage date:{{#var:first_marriage_date}} |
| + | :first spouse:{{#var:first_spouse}} |
| + | :first father in law:{{#var:first_father-in-law}} |
| + | :first mother in law:{{#var:first_mother-in-law}} |
| + | :second spouse:{{#var:second_spouse}} |
| + | :second md:{{#var:second_marriage_date}} |
| + | :second fil:{{#var:second_father-in-law}} |
| + | :second mil{{#var:second_mother-in-law}} |
| + | :third spouse:{{#var:third_spouse}} |
| + | :third md:{{#var:third_marriage_date}} |
| + | :third fil:{{#var:third_father-in-law}} |
| + | :third mil{{#var:third_mother-in-law}} |
| + | :bith section: {{#var:birth_section}} |
| + | :first marriage section: {{#var:first_marriage_section}} |
| + | :second marriage section: {{#var:second_marriage_section}} |
| + | :third marriage section: {{#var: third_marriage_section}} |
| | | |
− | {{#var:section_a}} married {{#var:husband}} child of {{#ask: {{#var:husband}} | ?has father}} and {{#ask: {{#var:husband}} | ?has mother}} on 18 Jan 1853 in Wayne Co.Ga. Jesse was born in 1815 in Wayne Co.Ga. He died on 17 Jan 1900 in Pierce County, Georgia. | + | ==test section== |
| + | {{Individual Summary |subject=Elizabeth Hickox |pronoun=she}} |
| + | |
| + | |
| + | {{#var:birth_section}} {{#var:first_marriage_section}} {{#var: third_marriage_section}} |