Difference between revisions of "Template:Person"

From PKC
Jump to navigation Jump to search
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Template:Person
One can simply copy the following template code to present the data about a Person.
|First Name=
<syntaxhighlight language=md>
|Last Name=
{{Person
|Age=
|first=
|Gender=
|last=
|Phone Number=
|wp-link=
|Email=
|birthday=
|died=
|gender=
|email=
|description=
|wikidata=
}}
}}
</syntaxhighlight>
</noinclude>
</noinclude>


{{Infobox person
|first={{{first}}}
|last={{{last}}}
|gender={{{gender}}}
|wikidata={{{wikidata}}}
|wp-link={{{wp-link}}}
|description={{{description}}}
|birthday={{{birthday}}}
|died={{{died}}}
}}


{|class=wikitable
This person's name is {{#If: {{{wp-link}}}|[[wikipedia:{{{wp-link}}}|{{{first}}} {{{last}}}]]|{{{first}}} {{{last}}}|}}.
|'''1. [[First Name]]'''
|colspan = 3|
{{{First Name}}}
|-
|'''2. [[Last Name]]'''
|colspan = 3|
{{{Last Name}}}
|-
|'''3. [[Age]]'''
|colspan = 3|
{{{Age}}}
|-
|style = "width:300px"|'''4. [[Outputs]]'''||style = "width:300px"|'''5. [[Process]]'''||style = "width:300px"|'''6. [[Inputs]]'''
|-
|
 
{{{Gender}}}
 
|
{{{Email}}}


|
{{#If: {{{description}}}|
{{{Phone Number}}}
==Short Bio==
|-
<p>
|}
{{{description}}}
</p>|No Biographic information provided...}}


<noinclude>
<noinclude>
Line 63: Line 60:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"age": {
"aliases": [
"age"
],
"label": "Age",
"description": "The age of a person in years",
"example": "20",
"type": "number"
},
},
"gender": {
"gender": {
Line 82: Line 70:
"example": "Female",
"example": "Female",
"type": "string"
"type": "string"
}
},
"Description": {
"aliases": [
"Description",
"Short Bio"
],
"label": "Description",
"description": "Some text describing the person",
"example": "This person is a mathematician.",
"type": "unbalanced-wikitext",
"suggested": true
},
"birthday": {
"aliases": [
"Birth Date"
],
"label": "birthday",
"description": "The date of the person's birth",
"example": "1/1/2000",
"type": "date",
"default": "1/1/2000"
},
"wp-link": {
"aliases": [
"Wikipedia Page",
"Wikipedia Entry"
],
"label": "wp-link",
"description": "The corresponding page on Wikipedia",
"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 88: Line 117:
"first",
"first",
"last",
"last",
"age",
"birthday",
"gender",
"gender",
"Phone Number",
"Phone Number",
"Email"
"Email",
"Description",
"wp-link",
"description",
"died",
"wikidata"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
[[Category:Person]]

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