Difference between revisions of "Template:Person stub"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly><!--set defaults--> | <includeonly><!--set defaults--> | ||
− | {{#if:{{{include infobox|}}} | + | {{#if:{{{include infobox|}}}|<!--then-->{{#vardefine:showinfobox|{{{include infobox}}} }}|<!--else-->{{#vardefine:showinfobox|false}} }}{{#if:{{{include sketch|}}}|{{#vardefine:showsketch|{{{include sketch}}} }}|{{#vardefine:showsketch|false}} }}{{#if:{{{include infobox|}}}|{{#vardefine:showinfobox|{{{include infobox|}}} }}|{{#vardefine:showinfobox|false}} }}{{#if:{{{include research log|}}}|{{#vardefine:showresearchlog|{{{include research log}}} }}|{{#vardefine:showresearchlog|true}} }}{{#if:{{{include related pages|}}}|{{#vardefine:showrelatedpages|{{{includerelatedpages}}} }}|{{#vardefine:showrelatedpages|true}} }}{{#if:{{{include metadata|}}}|{{#vardefine:showmetadata|{{{include matadata}}} }}|{{#vardefine:showmetdata|false}} }}{{#if:{{{include factbox|}}}|{{vardefine:showfactbox|{{{include factbox|}}} }}|{{#vardefine:showfactbox|false}} }} |
− | |<!--then-->{{#vardefine:showinfobox|{{{include infobox}}} }} | + | <!--infobox -->{{#ifeq: {{#var:showinfobox}}|true |
− | |<!--else-->{{#vardefine:showinfobox|false}} }} | ||
− | |||
− | {{#if:{{{include sketch|}}}|{{#vardefine:showsketch|{{{include sketch}}} }}|{{#vardefine:showsketch|false}} }} | ||
− | {{#if:{{{include infobox|}}}|{{#vardefine:showinfobox|{{{include infobox|}}} }}|{{#vardefine:showinfobox|false}} }} | ||
− | {{#if:{{{include research log|}}}|{{#vardefine:showresearchlog|{{{include research log}}} }}|{{#vardefine:showresearchlog|true}} }} | ||
− | {{#if:{{{include related pages|}}}|{{#vardefine:showrelatedpages|{{{includerelatedpages}}} }}|{{#vardefine:showrelatedpages|true}} }} | ||
− | {{#if:{{{include metadata|}}}|{{#vardefine:showmetadata|{{{include matadata}}} }}|{{#vardefine:showmetdata|false}} }} | ||
− | {{#if:{{{include factbox|}}}|{{vardefine:showfactbox|{{{include factbox|}}} }}|{{#vardefine:showfactbox|false}} }} | ||
− | <!--infobox --> | ||
− | {{#ifeq: {{#var:showinfobox}}|true | ||
|<!--then-->{{Infobox person | |<!--then-->{{Infobox person | ||
| name = {{{name|}}} | | name = {{{name|}}} | ||
Line 29: | Line 19: | ||
| father = {{#if: {{{father|}}}|{{has father|{{{father|}}} }}|<!--do nothing--> }} | | father = {{#if: {{{father|}}}|{{has father|{{{father|}}} }}|<!--do nothing--> }} | ||
}} | }} | ||
− | |<!--else do nothing-->}} | + | |<!--else do nothing-->}}{{#ifeq: {{#var:showsketch}}|true| |
− | |||
− | {{#ifeq: {{#var:showsketch}}|true| | ||
{{sketch | {{sketch | ||
|name = {{{name|}}} | |name = {{{name|}}} |
Revision as of 11:35, 4 December 2020
Person Stub (including sketch and infobox):
{{person stub |include infobox = true |include sketch = true |include research log = true |include related pages = true |show people = true |include metada = true |include fact box = true |include content = true |pronoun = he/she |name = {{BASEPAGENAME}} |image file = (copy image name i.e. File. foo.jpg) |image caption = |birth name = (if different from name) |born on = |born at = |died on = |died at = |buried at = |occupation = |spouse = (no formatting) |residence list = fully formatted list of residences |child list = |child table = fully formatted list of children see [[Template:Child table/child]] |father gen = |mother gen = |generation number = |child header note = |mother = |father = |gen = |alt = (optional, see [[template:person stub]]) |first = (optional, see [[template:person stub]]) |middle = (optional, see [[template:person stub]]) |last = (optional, see [[template:person stub]]) |id = (optional, see [[template:person stub]]) |link = (optional, see [[template:person stub]]) |surname = (optional, see [[template:person stub]]) |male line = |married at = |married on = |spouse born at = |spouse born on = |spouse died at = |spouse died on = |spouse father = (no formatting) |spouse mother = (no formatting) |content = content to be displayed |alt sketch = }}
- uses Template:Related pages no arguments needed.
- uses Template:Sketch
- uses Template:Infobox Person
Templates
This template uses the following templates.
[[{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.