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:
 
{{has person/doc}}
 
{{has person/doc}}
 
test: {{has person |name=jason crews}}
 
test: {{has person |name=jason crews}}
</noinclude>{{#if:{{{alt|}}}|[[has person::{{{name|}}}{{#!:|}}{{{alt}}}]]|[[has person::{{{name|}}}]]}}{{#set:has surname={{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}}}
+
</noinclude>{{#if:{{{alt|}}}|[[has person::{{{name|}}}{{#!:|}}{{{alt}}}]]|[[has person::{{{name|}}}]]}}[[Category:{{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}]]{{#set:has surname={{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}}}
 
 
update: [[Category:{{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}]]
 

Revision as of 22:52, 5 January 2019

The purpose of this template is to add a has person::name semantic property. It will split first and last names, and add a

has surname

semantic property.

Usage

{{has person |name={{{name}}} |alt={{{alt}}} }}
  • name = the full name of the individual i.e. john smith.
  • alt = alternate text to be displayed. i.e. john rather than john smith. (good for transcriptions)
  • first
  • middle
  • last
  • id
  • link
  • surname
  • gen

Templates Used

test: jason crews [[Category:]]