Difference between revisions of "Template:Person"

From PKC
Jump to navigation Jump to search
 
(12 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|first=
|first=
|last=
|last=
|person-link=
|wp-link=
|birthday=
|birthday=
|died=
|gender=
|gender=
|email=
|email=
|description=
|description=
|wikidata=
}}
}}
</syntaxhighlight>
</syntaxhighlight>
Line 18: Line 20:
|last={{{last}}}
|last={{{last}}}
|gender={{{gender}}}
|gender={{{gender}}}
|wikipage={{{wikipage}}}
|wikidata={{{wikidata}}}
|wp-link={{{wp-link}}}
|description={{{description}}}
|description={{{description}}}
|birthday={{{birthday}}}
|birthday={{{birthday}}}
|died={{{died}}}
}}
}}


This person's name is: {{{first}}} {{{last}}}. {{#If: {{{wikipage}}}|[[wikipedia:{{{wikipage}}}|{{{wikipage}}}]]|No wiki page|}}
This person's name is {{#If: {{{wp-link}}}|[[wikipedia:{{{wp-link}}}|{{{first}}} {{{last}}}]]|{{{first}}} {{{last}}}|}}.


{{#If: {{{description}}}|
{{#If: {{{description}}}|
Line 30: Line 34:
{{{description}}}
{{{description}}}
</p>|No Biographic information provided...}}
</p>|No Biographic information provided...}}


<noinclude>
<noinclude>
Line 89: Line 92:
"default": "1/1/2000"
"default": "1/1/2000"
},
},
"wikipage": {
"wp-link": {
"aliases": [
"aliases": [
"Wikipedia Page",
"Wikipedia Page",
"Wikipedia Entry"
"Wikipedia Entry"
],
],
"label": "wikipedia page",
"label": "wp-link",
"description": "The corresponding page on Wikipedia",
"description": "The corresponding page on Wikipedia",
"type": "unbalanced-wikitext"
"type": "unbalanced-wikitext"
}
},
"description": {},
"died": {
"aliases": [
"Died"
],
"label": "died",
"description": "The date of announced death",
"example": "3 September 2006",
"type": "date"
},
"wikidata": {}
},
},
"description": "This is the template data for a person.",
"description": "This is the template data for a person.",
Line 108: Line 122:
"Email",
"Email",
"Description",
"Description",
"wikipage"
"wp-link",
"description",
"died",
"wikidata"
]
]
}
}

Latest revision as of 02:09, 15 June 2022

One can simply copy the following template code to present the data about a Person.

{{Person
|first=
|last=
|wp-link=
|birthday=
|died=
|gender=
|email=
|description=
|wikidata=
}}


Person
First Name {{{first}}}
Last Name {{{last}}}
Wikipedia [[wikipedia:{{{wp-link}}}|{{{wp-link}}}]]
wikidata [[wikidata:{{{wikidata}}}|{{{wikidata}}}]]
Gender {{{gender}}}
Birthday {{{birthday}}}
Died {{{died}}}


This person's name is [[wikipedia:{{{wp-link}}}|{{{first}}} {{{last}}}]].

Short Bio

{{{description}}}


This is the template data for a person.

Template parameters

ParameterDescriptionTypeStatus
First Namefirst first name

The first name or given name of a person

Example
Ben
Stringsuggested
Last Namelast last name

The family name or last name of a person

Example
Koo
Stringsuggested
birthdaybirthday Birth Date

The date of the person's birth

Default
1/1/2000
Example
1/1/2000
Dateoptional
gendergender sex Gender

The gender of a person

Example
Female
Stringoptional
Phone NumberPhone Number

no description

Unknownoptional
EmailEmail

no description

Unknownoptional
DescriptionDescription Description Short Bio

Some text describing the person

Example
This person is a mathematician.
Unbalanced wikitextsuggested
wp-linkwp-link Wikipedia Page Wikipedia Entry

The corresponding page on Wikipedia

Unbalanced wikitextoptional
descriptiondescription

no description

Unknownoptional
dieddied Died

The date of announced death

Example
3 September 2006
Dateoptional
wikidatawikidata

no description

Unknownoptional