Difference between revisions of "Template:Person"

From Wikispooks
Jump to navigation Jump to search
(interests parameter)
(birth date)
Line 20: Line 20:
 
|caption=Caption for the image
 
|caption=Caption for the image
 
|alt=Alt text for the image
 
|alt=Alt text for the image
|birth date = <nowiki>{{Birth date and age|YYYY|MM|DD}}</nowiki>
+
|birth date= Date of birth
|death date = <nowiki>{{Death date and age|YYYY|MM|DD}}</nowiki>
+
|death date= Date of death
 
----
 
----
 
|box_width  = To modify the box width
 
|box_width  = To modify the box width
 
----
 
----
 
''Others from the wikipedia-derived template''
 
''Others from the wikipedia-derived template''
<small>|born        = location of birth, |died        = location of death, |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 </small>
+
<!--
 +
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.
 +
 
 +
<small>|birth date  = <nowiki>{{Birth date and age|YYYY|MM|DD}}</nowiki> (incompatible format)<br/>
 +
|death date  = <nowiki>{{Death date and age|YYYY|MM|DD}}</nowiki> (incompatible format)<br/>
 +
-->
 +
|born        = location of birth, |died        = location of death, |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 </small>
 
}}
 
}}
 
</poem></noinclude><includeonly>[[Constitutes::Person| ]]{{Description|{{{description|}}}}}{{ArrayMapProperty|{{{constitutes|}}}|constitutes}}{{ArrayMapProperty|{{{interests|}}}|Has interest}}
 
</poem></noinclude><includeonly>[[Constitutes::Person| ]]{{Description|{{{description|}}}}}{{ArrayMapProperty|{{{constitutes|}}}|constitutes}}{{ArrayMapProperty|{{{interests|}}}|Has interest}}
{{ArrayMapProperty|{{{ON constitutes|}}}|ON constitutes}}{{#if: {{{death date|}}}  | [[Died on::{{{death date}}}| ]] }}{{ArrayMapProperty|{{{exposed|}}}|Exposed}}{{ArrayMapProperty|{{{inspired|}}}|Inspired}}<div style="vertical-align:top; width:300px; align:right; border:1pt solid #9a9a9a; padding:1%; float:right; clear:right;">
+
{{ArrayMapProperty|{{{ON constitutes|}}}|ON constitutes}}{{#if: {{{birth date|}}}  | [[Born on::{{{birth date}}}| ]] }}{{#if: {{{death date|}}}  | [[Died on::{{{death date}}}| ]] }}{{ArrayMapProperty|{{{exposed|}}}|Exposed}}{{ArrayMapProperty|{{{inspired|}}}|Inspired}}<div style="vertical-align:top; width:300px; align:right; border:1pt solid #9a9a9a; padding:1%; float:right; clear:right;">
 
</div>{{SMWDefaultMarkup}}</includeonly>
 
</div>{{SMWDefaultMarkup}}</includeonly>

Revision as of 07:58, 1 February 2014

This template is for Wikispooks pages about people. It should be the first item on the page.
It is still provisional, very much a work in progress. Contributions welcome.
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
|authority= (See Wikipedia on this)
|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)
|image=Address of an image
|created= |created2= |created3=... Title of books they authored
|caption=Caption for the image
|alt=Alt text for the image
|birth date= Date of birth
|death date= Date of death


|box_width = To modify the box width


Others from the wikipedia-derived template

|born = location of birth, |died = location of death, |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
}}