Difference between revisions of "Template:Individual Summary"

From Crews Genealogy Wiki: focusing on the Wiregrass south, and related families
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#vardefine:subject | {{{subject}}} }}
 
{{#vardefine:subject | {{{subject}}} }}
 
{{#vardefine:pronoun | {{{pronoun}}} }}
 
{{#vardefine:pronoun | {{{pronoun}}} }}
{{#vardefine:first_name | {{#explode: {{#var:subject}} | | 0}} }}  
+
 
 +
{{#vardefine:first_name                 | {{#explode: {{#var:subject}} | | 0}} }}  
 
{{#vardefine:birth_date                | {{#show: {{#var:subject}} | ?was born on}} }}
 
{{#vardefine:birth_date                | {{#show: {{#var:subject}} | ?was born on}} }}
{{#vardefine:death_date | {{#show: {{#var:subject}} | ?died on}} }}
+
{{#vardefine:death_date                 | {{#show: {{#var:subject}} | ?died on}} }}
{{#vardefine:first_marriage_date        | {{#show: {{#var:subject}}       | ?was first married on}} }}
+
{{#vardefine:first_spouse              | {{#show: {{#var:subject}} | ?was first married to}} }}
{{#vardefine:first_spouse | {{#show: {{#var:subject}} | ?was first married to}} }}
+
{{#vardefine:second_spouse              | {{#show: {{#var:subject}} | ?was second married to}} }}
{{#vardefine:first_father-in-law | {{#show: {{#var:first_spouse}} | ?has father}} }}
+
{{#vardefine:third_spouse              | {{#show: {{#var:subject}} | ?was third married to}} }}
{{#vardefine:first_mother-in-law | {{#show: {{#var:first_spouse}}   | ?has mother}} }}
+
 
{{#vardefine:second_marriage_date | {{#show: {{#var:subject}} | ?was second married on}} }}
+
{{#vardefine:birth_section             
{{#vardefine:second_spouse | {{#show: {{#var:subject}}        | ?was second married to}} }}
+
|
{{#vardefine:second_father-in-law | {{#show: {{#var:second_spouse}} | ?has father}} }}
+
    {{#if: {{#var:birth_date}}                 
{{#vardefine:second_mother-in-law       | {{#show: {{#var:second_spouse}} | ?has mother}} }}
+
    |
{{#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) }} }} }}{{#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}} | }}. }} | }}{{#if: {{#var:second_spouse}} | {{#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}} | }}.  }} | }}[[{{#var:first_name}}]] {{#var:birth_section}} {{#var:first_marriage_section}}{{#var:conjuction}}{{#var:second_marriage_section}}
+
      {{#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) }} }} }}
 +
 
 +
{{#if: {{#var:first_spouse}}          
 +
|
 +
    {{#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}}
 +
          | }}
 +
    . }}
 +
| }}
 +
 
 +
{{#if: {{#var:second_spouse}}         
 +
|
 +
    {{#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: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    | }}
 +
}}
  
 +
==debug==
 
:subject:{{#var:subject}}
 
:subject:{{#var:subject}}
 
:pronoun:{{#var:pronoun}}
 
:pronoun:{{#var:pronoun}}
Line 23: Line 106:
 
:first father in law:{{#var:first_father-in-law}}
 
:first father in law:{{#var:first_father-in-law}}
 
:first mother in law:{{#var:first_mother-in-law}}
 
:first mother in law:{{#var:first_mother-in-law}}
 +
:second spouse:{{#var:second_spouse}}
 
:second md:{{#var:second_marriage_date}}
 
:second md:{{#var:second_marriage_date}}
:second s:{{#var:second_spouse}}
 
 
:second fil:{{#var:second_father-in-law}}
 
:second fil:{{#var:second_father-in-law}}
 
:second mil{{#var:second_mother-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}}
 +
 +
==test section==
 +
{{Individual Summary |subject=Elizabeth Hickox |pronoun=she}}
 +
 +
 +
{{#var:birth_section}} {{#var:first_marriage_section}} {{#var: third_marriage_section}}

Latest revision as of 20:56, 30 January 2018







{{#if: |




debug

subject:{{{subject}}}
pronoun:{{{pronoun}}}
first name:{{{subject}}}
birth date:
death date:
first marriage date:
first spouse:
first father in law:
first mother in law:
second spouse:
second md:
second fil:
second mil
third spouse:
third md:
third fil:
third mil
bith section: [[{{{subject}}}|{{{subject}}}]] (unknown-unknown)
first marriage section:
second marriage section:
third marriage section:

test section

{{#if: John Matthews |




debug

subject:Elizabeth Hickox
pronoun:she
first name:Elizabeth
birth date:1829
death date:
first marriage date:30 January 1847
first spouse:John Matthews
first father in law:<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>
first mother in law:<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>
second spouse:
second md:
second fil:
second mil
third spouse:
third md:
third fil:
third mil
bith section: Elizabeth, b. 1829,
first marriage section: first married [[John Matthews]]
              , child of [[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>]] 
                   and [[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>]], 
         on 30 January 1847
    . 
second marriage section:
third marriage section:

test section

Template loop detected: Template:Individual Summary


Elizabeth, b. 1829, first married [[John Matthews]]

              , child of [[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>]] 
                   and [[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>]], 
         on 30 January 1847
    .  


Elizabeth, b. 1829, first married [[John Matthews]]

              , child of [[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>]] 
                   and [[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>]], 
         on 30 January 1847
    .