Difference between revisions of "Template:Has person"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
<!--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|}}} }} }} | + | {{#vardefine:full name|{{#if:{{{first name|}}}{{{middle name|}}}{{{last name|}}}{{{suffix|}}}{{{id|}}}|{{{first name|}}} {{{middle name|}}} {{{last name|}}} {{{suffix|}}} {{{id|}}} | {{{name|}}} }} }} {{#var:full name}} |
<!--outline --> | <!--outline --> | ||
{{#switch: {{{link|}}} | {{#switch: {{{link|}}} | ||
|<!--link = none-->none = {{#if {{{alt|}}} | |<!--link = none-->none = {{#if {{{alt|}}} | ||
− | |alt | + | |{{{alt|}}} |
− | | | + | |{{#var:full name}} }} |
|<!--link != none -->#default = {{#if {{{alt|}}} | |<!--link != none -->#default = {{#if {{{alt|}}} | ||
|alt exists | |alt exists | ||
|alt doesn't exist }} | |alt doesn't exist }} | ||
}} | }} | ||
+ | |||
+ | <!--assign to surname categoy and set surname--> | ||
+ | [[Category:{{get surname|{{#var:full name}} }}]] |
Revision as of 09:40, 17 February 2019
{{#if
|alt exists |alt doesn't exist }}
[[Category:]]