Template

Difference between revisions of "Person"

From Lacey Green History

m (Reverted edits by Admin (talk) to last revision by Caroline)
Tag: Rollback
Line 16: Line 16:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude>
+
</noinclude><includeonly>{| class="wikitable" style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 50em; float: right; clear: right; text-align:left"
 +
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 +
|-
 +
! Forename
 +
| [[givenname::{{{Forename|}}}]]
 +
|-
 +
! Surname
 +
| [[surname::{{{Surname|}}}]]
 +
|-
 +
! Sex
 +
| [[sex::{{{Sex|}}}]]
 +
|-
 +
! Year of Birth
 +
| [[BirthYear::{{{Year of Birth|}}}]]
 +
|-
 +
{{#if: {{{Date of Death|}}} |
 +
{{#!:
 +
|-
 +
! Date of Death
 +
| [[deathdate::{{{Date of Death|}}} ]] |
 +
}}
 +
}}
 +
|-
 +
! Partners:
 +
| {{#genealogy:partners}}
 +
{{#if: {{{Partner|}}} | {{#genealogy:partner | {{{Partner}}} }} }}
 +
|-
 +
! Father
 +
| {{#if: {{{Father|}}} | {{#genealogy:parent | {{{Father}}} }} }}
 +
|-
 +
! Mother
 +
| {{#if: {{{Mother|}}} | {{#genealogy:parent | {{{Mother}}} }} }}
 +
|- style="vertical-align:top;"
 +
! Children:
 +
| {{#genealogy:children}}
 +
|- style="vertical-align:top;"
 +
! Siblings:
 +
| {{#genealogy:siblings}}
 +
|}
 +
{{#set:
 +
mother={{{Mother|}}}
 +
|father={{{Father|}}}
 +
|partner={{{Partner|}}}
 +
}}
 +
 
 +
{{#if: {{{Family|}}} | [[Category:{{{Family}}}]] }}
 +
[[Category:Person]]
 +
[[Category:Person]]
 +
</includeonly>

Revision as of 12:47, 9 June 2023

This is the "Person" template. It should be called in the following format:

{{Person
|Forename=
|Surname=
|Sex=
|Year of Birth=
|Year of Death=
|Father=
|Mother=
|Partner=
|PositionsHeld=
}}

Edit the page to see the template text.