Difference between revisions of "Template:Has person"

From Crews Genealogy Wiki: focusing on the Wiregrass south, and related families
Jump to navigation Jump to search
Line 4: Line 4:
 
{{#if:{{{surname|}}}|<!--has surname-->[[Category:{{{surname|}}}]]|<!--doesn't have surname-->{{#if:{{{alt|}}}|<!--no surname and alt exists-->{{#if:{{#explode:{{{name}}}| |2}}|<!--show third word-->[[Category:{{#explode:{{{name}}}| |2}}]]|<!--has less than three words show the second word-->[[Category:{{#explode:{{{name|}}}| |1}}]] }}|<!--no surname and no alt-->{{#if:{{#explode:{{{name}}}| |2}}|<!--show third word-->[[Category:{{#explode:{{{name}}}| |2}}]]|<!--has less than three words show the second word-->[[Category:{{#explode:{{{name|}}}| |1}}]] }} }} }}
 
{{#if:{{{surname|}}}|<!--has surname-->[[Category:{{{surname|}}}]]|<!--doesn't have surname-->{{#if:{{{alt|}}}|<!--no surname and alt exists-->{{#if:{{#explode:{{{name}}}| |2}}|<!--show third word-->[[Category:{{#explode:{{{name}}}| |2}}]]|<!--has less than three words show the second word-->[[Category:{{#explode:{{{name|}}}| |1}}]] }}|<!--no surname and no alt-->{{#if:{{#explode:{{{name}}}| |2}}|<!--show third word-->[[Category:{{#explode:{{{name}}}| |2}}]]|<!--has less than three words show the second word-->[[Category:{{#explode:{{{name|}}}| |1}}]] }} }} }}
  
 
+
{{#if:{{{name|}}}|{{#set:has name={{{name|}}}|{{#set:has person={{#if:{{{first name|}}}|{{{first name|}}}|<!--show nothing-->}}{{#if:{{{middle name|}}}|&ensp;{{{middle name|}}}|<!--show nothing-->}}{{#if:{{{last name|}}}|&ensp;{{{last name|}}}|<!--show nothing-->}}{{#if:{{{suffix|}}}|&ensp;{{{suffix|}}}|<!--show nothing-->}}{{#if: {{{id|}}}|&ensp;({{{id|}}})|<!--show nothing-->}} }} }}
{{#set:has person={{#if:{{{first name|}}}|{{{first name|}}}|<!--show nothing-->}}{{#if:{{{middle name|}}}|&ensp;{{{middle name|}}}|<!--show nothing-->}}{{#if:{{{last name|}}}|&ensp;{{{last name|}}}|<!--show nothing-->}}{{#if:{{{suffix|}}}|&ensp;{{{suffix|}}}|<!--show nothing-->}}{{#if: {{{id|}}}|&ensp;({{{id|}}})|<!--show nothing-->}} }}
 

Revision as of 08:52, 26 January 2019

[[]]

[[Category:]]

{{#if:|