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 2: Line 2:
 
[[{{#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-->}}{{#!:|}}{{{alt|}}}]]|<!--no name no alt-->[[{{#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-->}}]]}}}}
 
[[{{#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-->}}{{#!:|}}{{{alt|}}}]]|<!--no name no alt-->[[{{#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-->}}]]}}}}
  
{{#if:{{{surname|}}}|<!--surname is provided-->[[Category:{{{surname|}}}]]{{#set:has surname={{{surname|}}}}}|<!--surname not provided>{{#if:{{{alt|}}}|<!--alt exists-->{{#if:<!--has three words-->{{#explode:{{{alt}}}| |2}}|<!--show third word-->{{#explode:{{{alt}}}| |2}}|<!--has less than three words show the second word-->{{#explode:{{{alt|}}}| |1}} }}|<!--no alt-->{{#if:<!--has three words-->{{#explode:{{{name}}}| |2}}|<!--show third word-->{{#explode:{{{name}}}| |2}}|<!--has less than three words show the second word-->{{#explode:{{{name|}}}| |1}} }}}} }}
+
{{#if:{{{surname|}}}|<!--surname is provided-->[[Category:{{{surname|}}}]]{{#set:has surname={{{surname|}}}}}|<!--surname not provided>{{#if:{{{alt|}}}|<!--alt exists-->{{#if:<!--has three words-->{{#explode:{{{alt}}}| |2}}|<!--show third word-->{{#explode:{{{alt}}}| |2}}|<!--has less than three words show the second word-->{{#explode:{{{alt|}}}| |1}} }}|<!--no alt-->{{#if:<!--has three words-->{{#explode:{{{name}}}| |2}}|<!--show third word-->{{#explode:{{{name}}}| |2}}|<!--has less than three words show the second word-->{{#explode:{{{name|}}}| |1}} }}}}

Revision as of 14:27, 25 January 2019

[[]]