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
 
(121 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[{{#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-->}}]]
+
<includeonly><!--
   
+
-->{{#vardefine:full name|{{#if:{{{first name|}}}{{{middle name|}}}{{{last name|}}}{{{suffix|}}}{{{id|}}}|{{{first name|}}} {{{middle name|}}} {{{last name|}}} {{{suffix|}}} {{{id|}}} | {{{name|}}}{{{1|}}} }} }}<!--
{{#if:{{{name|}}}|{{#if:{{{alt|}}}|<!-name and alt exists-->|<!-name only-->}}| <!-no name->{{#if:{{{alt|}}}|<!-no name, yes 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-->}}]]}}}}
+
-->{{#switch: {{{link|}}}
 
+
|none={{#if: {{{alt|}}}{{{2|}}}|{{{alt|}}}{{{2|}}}|{{Split name |name={{#var:full name}} |gen={{{gen|}}} }} }}
{{{name|}}}{{#!:|}}{{{alt|}}}
+
|#default = {{#if: {{{alt|}}}{{{2|}}}|[[{{#var:full name}}|{{{alt|}}}{{{2|}}}]]|{{Split name |name={{#var:full name}} |gen={{{gen|}}} }} }}
 
+
}}<!--assign to surname category and set surname-->{{#set: has person={{#var:full name}} }}[[Category:{{get surname|{{#var:full name}} }}]]</includeonly><noinclude>{{documentation}}</noinclude>
 
 
surname when id is present
 

Latest revision as of 21:32, 18 December 2020