Difference between revisions of "Template:Person"

From Wikispooks
Jump to navigation Jump to search
(better docs)
(guess unspecified name as PAGENAME)
Line 1: Line 1:
<noinclude>[[category:Object Templates]]{{TemplateProblem|This template is still suitable for use, but has multiple issues being worked on.}}
+
<noinclude>[[category:Object Templates]]
 
'''This template is for Wikispooks pages about people'''. It should be the first item on the page.<br/>
 
'''This template is for Wikispooks pages about people'''. It should be the first item on the page.<br/>
 
{{BLUE|The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).}}<br/>
 
{{BLUE|The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).}}<br/>
Line 5: Line 5:
 
''All sections are optional.''
 
''All sections are optional.''
 
<poem>
 
<poem>
{{person  
+
{{person
 
|{{BLUE|image}}=Address of an image ''([[Property:Has image]])''
 
|{{BLUE|image}}=Address of an image ''([[Property:Has image]])''
 
|caption=Caption for the image
 
|caption=Caption for the image
Line 23: Line 23:
 
|{{GREEN|employment}}=List of jobs the person has (had) - See [[template:job]] for details -  ''([[Property:has employer]])''
 
|{{GREEN|employment}}=List of jobs the person has (had) - See [[template:job]] for details -  ''([[Property:has employer]])''
 
|box_width= To modify the box width
 
|box_width= To modify the box width
|authority= (See [http://en.wikipedia.org/wiki/Help:Authority_control Wikipedia on this]) {{RED|Not implemented as yet}}
 
 
|{{GREEN|created}}= Titles of books they authored {{RED|Not implemented as yet}}
 
|{{GREEN|created}}= Titles of books they authored {{RED|Not implemented as yet}}
''Others from the wikipedia-derived template''
+
|authority= (See [http://en.wikipedia.org/wiki/Help:Authority_control Wikipedia on this]) {{RED|Not implemented as yet, and may never be}}
<!--
+
''Others from the wikipedia-derived template''<!--
 
Displaying age would be nice here, but needs some work on templates, since the input format ("Date") is less predictable than YYYY|MM|DD so
 
Displaying age would be nice here, but needs some work on templates, since the input format ("Date") is less predictable than YYYY|MM|DD so
 
the standard WP template will not work reliably. SMW should provide a solution, but it might be ugly.
 
the standard WP template will not work reliably. SMW should provide a solution, but it might be ugly.
Line 46: Line 45:
 
<!-- Wikipedia standard parameters-->  
 
<!-- Wikipedia standard parameters-->  
 
| honorific_prefix          = {{{honorific_prefix|}}}
 
| honorific_prefix          = {{{honorific_prefix|}}}
| name                      = {{{name|}}}
+
| name                      = {{#if: {{{name|}}}|{{{name}}}|{{{PAGENAME}}}}}
 
| honorific_suffix          = {{{honorific_suffix|}}}
 
| honorific_suffix          = {{{honorific_suffix|}}}
 
| native_name              = {{{native_name|}}}
 
| native_name              = {{{native_name|}}}

Revision as of 14:24, 28 February 2014

This template is for Wikispooks pages about people. It should be the first item on the page.
The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).
Usage: All sections are optional.

{{person
|image=Address of an image (Property:Has image)
|caption=Caption for the image
|alt=Alt text for the image
|description= <500 character summary, (Property:Description)
|website = URL of the person's homepage, (Property:Has website)
|wikipedia = URL of the person's Wikipedia page (Property:Has wikipediaPage)
|constitutes = What the person constitutes (Property:Constitutes)
|ON_constitutes = What the person ON constitutes (Property:ON_constitutes)
|exposed = Pagename(s) of what this person exposed (Whistleblowers only) (Property:Exposed)
|inspired = Pagenames(s) of people this person inspired (Property:Inspired)
|interests= Area(s) of interest (Property:Has interest)
|birth_date= Date of birth (Property:Born on)
|birth_place= birth location
|death_date= Date of death (Property:Died on)
|death_place = death location
|employment=List of jobs the person has (had) - See template:job for details - (Property:has employer)
|box_width= To modify the box width
|created= Titles of books they authored Not implemented as yet
|authority= (See Wikipedia on this) Not implemented as yet, and may never be
Others from the wikipedia-derived template
|death cause, |body discovered, |resting place, |residence, |nationality, |citizenship, |other names, |education, |alma mater, |occupation , |years active, |employer , |organization, |known for, |notable works, |influences, |title, |term, |predecessor, |successor, |party, |movement, |boards, |religion, |criminal charge, |criminal penalty, |criminal status, |spouse, |partner, |children, |parents, |relatives, |awards
}}