Difference between revisions of "Template:Person stub"

From Crews Genealogy Wiki: focusing on the Wiregrass south, and related families
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly><!--set defaults-->
 
<includeonly><!--set defaults-->
{{#if:{{{include infobox|}}}|{{#vardefine:showinfobox|{{{include infobox}}} }}|{{#vardefine:showinfobox|false}} }}
+
{{#if:{{{include infobox|}}}
 +
|<!--then-->{{#vardefine:showinfobox|{{{include infobox}}} }}
 +
|<!--else-->{{#vardefine:showinfobox|false}} }}
 +
 
 
{{#if:{{{include sketch|}}}|{{#vardefine:showsketch|{{{include sketch}}} }}|{{#vardefine:showsketch|false}} }}
 
{{#if:{{{include sketch|}}}|{{#vardefine:showsketch|{{{include sketch}}} }}|{{#vardefine:showsketch|false}} }}
 
{{#if:{{{include infobox|}}}|{{#vardefine:showinfobox|{{{include infobox|}}} }}|{{#vardefine:showinfobox|false}} }}
 
{{#if:{{{include infobox|}}}|{{#vardefine:showinfobox|{{{include infobox|}}} }}|{{#vardefine:showinfobox|false}} }}
Line 7: Line 10:
 
{{#if:{{{include metadata|}}}|{{#vardefine:showmetadata|{{{include matadata}}} }}|{{#vardefine:showmetdata|false}} }}
 
{{#if:{{{include metadata|}}}|{{#vardefine:showmetadata|{{{include matadata}}} }}|{{#vardefine:showmetdata|false}} }}
 
{{#if:{{{include factbox|}}}|{{vardefine:showfactbox|{{{include factbox|}}} }}|{{#vardefine:showfactbox|false}} }}
 
{{#if:{{{include factbox|}}}|{{vardefine:showfactbox|{{{include factbox|}}} }}|{{#vardefine:showfactbox|false}} }}
<!--infobox -->{{#ifeq: {{#var:showinfobox}}|true|
+
<!--infobox -->
 +
{{#ifeq: {{#var:showinfobox}}|true
 +
|<!--then->showinfobox={{#var:showinfobox}}
 
{{Infobox person
 
{{Infobox person
 
| name              = {{{name|}}}
 
| name              = {{{name|}}}
Line 24: Line 29:
 
| mother            = {{has mother|{{{mother|}}} }}
 
| mother            = {{has mother|{{{mother|}}} }}
 
| father            = {{has father|{{{father|}}} }}
 
| father            = {{has father|{{{father|}}} }}
}} | <!--do nothing-->}}
+
}}  
 +
| <!--else do nothing-->}}
 +
 
 
{{#ifeq: {{#var:showsketch}}|true|
 
{{#ifeq: {{#var:showsketch}}|true|
 
{{sketch
 
{{sketch

Revision as of 20:56, 3 December 2020

[[{Person stub surname=Stub|{Person stub surname=Stub]]Property "Is person" (as page type) with input value "{Person stub surname=Stub" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.