Difference between revisions of "Template:Person stub"
Jump to navigation
Jump to search
(28 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><!--set defaults--> | + | <includeonly><!--set defaults-->{{#if:{{{include infobox|}}}|{{#vardefine:showinfobox |{{lc: {{{include infobox}}} }} }}|{{#vardefine:showinfobox|false}} }}{{#if:{{{include sketch|}}} |{{#vardefine:showsketch |{{lc: {{{include sketch}}} }} }}|{{#vardefine:showsketch |false}} }}{{#if:{{{include infobox|}}}|{{#vardefine:showinfobox |{{lc: {{{include infobox|}}} }} }}|{{#vardefine:showinfobox|false}} }}{{#if:{{{include research log|}}} |{{#vardefine:showresearchlog|{{lc: {{{include research log}}} }} }}|{{#vardefine:showresearchlog|true}} }}{{#if:{{{include related pages|}}}|{{#vardefine:showrelatedpages|{{lc: {{{include related pages}}} }} }}|{{#vardefine:showrelatedpages|true}} }}{{#if:{{{include metadata|}}}|{{#vardefine:showmetadata|{{lc: {{{include matadata}}} }} }}|{{#vardefine:showmetdata|false}} }}{{#if:{{{include factbox|}}}|{{vardefine:showfactbox|{{lc: {{{include factbox|}}} }} }}|{{#vardefine:showfactbox|false}} }}<!--infobox -->{{#ifeq: {{#var:showinfobox}}|true |
− | {{#if:{{{include infobox|}}}| | ||
− | <!--infobox -->{{#ifeq: {{#var:showinfobox}}|true | ||
|<!--then-->{{Infobox person | |<!--then-->{{Infobox person | ||
| name = {{{name|}}} | | name = {{{name|}}} | ||
Line 13: | Line 11: | ||
| resting_place = {{{buried at|}}} | | resting_place = {{{buried at|}}} | ||
| occupation = {{{occupation|}}} | | occupation = {{{occupation|}}} | ||
− | | spouse = {{{spouse|}}} | + | | spouse = [[{{{spouse|}}}]] |
| residence = {{{residence list|}}} | | residence = {{{residence list|}}} | ||
| children = {{{child list|}}} | | children = {{{child list|}}} | ||
| mother = {{#if: {{{mother|}}}|{{has mother|{{{mother|}}} }}|<!--do nothing--> }} | | mother = {{#if: {{{mother|}}}|{{has mother|{{{mother|}}} }}|<!--do nothing--> }} | ||
| father = {{#if: {{{father|}}}|{{has father|{{{father|}}} }}|<!--do nothing--> }} | | father = {{#if: {{{father|}}}|{{has father|{{{father|}}} }}|<!--do nothing--> }} | ||
− | }} | + | }}{{#ifexist: |
− | |<!--else do nothing-->}} | + | |<!--else do nothing-->}}{{sketch |
− | {{sketch | ||
|name = {{{name|}}} | |name = {{{name|}}} | ||
|gen = {{{gen|}}} | |gen = {{{gen|}}} | ||
Line 45: | Line 42: | ||
|spouse father = {{{spouse father|}}} | |spouse father = {{{spouse father|}}} | ||
|spouse mother = {{{spouse mother|}}} | |spouse mother = {{{spouse mother|}}} | ||
− | }} | + | |alt sketch = {{{alt sketch|}}} |
+ | }} | ||
{{#if: {{{child table|}}} | {{#if: {{{child table|}}} | ||
|==Children== | |==Children== | ||
Line 55: | Line 53: | ||
{{{child table|}}} | {{{child table|}}} | ||
{{child table/footer}} | {{child table/footer}} | ||
− | |<!--don't show child table--> }} | + | |<!--don't show child table--> }} | <!--do nothing-->}} |
{{#if:{{{include content|}}}|{{{content}}}|<!--do nothing--> }} | {{#if:{{{include content|}}}|{{{content}}}|<!--do nothing--> }} | ||
+ | {{#ifexist:{{BASEPAGENAME}}/Working Notes|==Working Notes== | ||
+ | [[{{BASEPAGENAME}}/Working Notes]]|<!--Show nothing-->}} | ||
+ | {{#if: {{#ask: [[has person::{{PAGENAME}}]]|format=gallery}}|==Gallery== | ||
+ | {{#ask: [[has person::{{PAGENAME}}]]|format=gallery}}|<!--do nothing --> }} | ||
{{#ifeq:{{#var:showresearchlog}}|true|{{Research log}}|<!--do nothing--> }} | {{#ifeq:{{#var:showresearchlog}}|true|{{Research log}}|<!--do nothing--> }} | ||
− | {{#ifeq:{{#var:showrelatedpages}}|true|{{Related pages}}|<!--do nothing--> }} | + | {{#ifeq:{{#var:showrelatedpages}}|true|{{Related pages |show people={{{show people|}}} }}|<!--do nothing--> }} {{#ifeq:{{#var:showmetadata}}|true|{{meta data}}|<!--do nothing--> }} |
− | {{#ifeq:{{#var:showmetadata}}|true|{{meta data}}|<!--do nothing--> }} | + | ==References== |
− | {{#ifeq:{{#var:showfactbox}}|true|__SHOWFACTBOX__|<!--do nothing-->}}</includeonly>< | + | <references />{{#ifeq:{{#var:showfactbox}}|true|__SHOWFACTBOX__|<!--do nothing-->}}</includeonly><!--{{#if: {{{first name|}}}{{{middle name|}}}{{{last name|}}}{{{suffix|}}}{{{id|}}} | {{is person |first name={{{first name|}}} |middle name={{{middle name|}}} |last name={{{last name|}}} |suffix={{{suffix|}}} |id={{{id|}}} }} | {{is person |name={{{ROOTPAGENAME}} |surname={{get surname|{{ROOTPAGENAME}} }} }} }}--> |
− | {{#if: {{{first name|}}}{{{middle name|}}}{{{last name|}}}{{{suffix|}}}{{{id|}}} | {{is person |first name={{{first name|}}} |middle name={{{middle name|}}} |last name={{{last name|}}} |suffix={{{suffix|}}} |id={{{id|}}} }} | {{is person |name={{{ROOTPAGENAME}} surname={{get surname|{{ROOTPAGENAME}} }} }} }} | + | [[Category:{{get surname|{{ROOTPAGENAME}} }}]][[Category:Individual]]<noinclude>{{documentation}}</noinclude> |
− | [[Category:{{get surname|{{ROOTPAGENAME}} }}]][[Category:Individual]] |
Latest revision as of 07:34, 25 June 2021
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.