Difference between revisions of "Template:Has person"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
<!--define the name--> | <!--define the name--> | ||
− | {{#vardefine:full_name|{{#if:{{{first name|}}}{{{middle name|}}}{{{last name}}}{{{id|}}}|{{{first name|}}} {{{middle name|}}} {{{last name}}} {{{id|}}} | {{{name|}}} }} }}'''testing the variable {{#var: | + | {{#vardefine:full_name|{{#if:{{{first name|}}}{{{middle name|}}}{{{last name}}}{{{id|}}}|{{{first name|}}} {{{middle name|}}} {{{last name}}} {{{id|}}} | {{{name|}}} }} }}'''testing the variable {{#var:full_name}}''' |
<!--outline --> | <!--outline --> |
Revision as of 09:17, 17 February 2019
[[]][[Category:]]
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 surnamesemantic 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
testing the variable {{{last name}}}
{{#if
|alt exists |alt doesn't exist }}