Difference between revisions of "Template:Job"

From Wikispooks
Jump to navigation Jump to search
(Add |nominator)
Line 12: Line 12:
 
|description=Human readable clarification ''([[Property:Description]])''
 
|description=Human readable clarification ''([[Property:Description]])''
 
|{{GREEN|appointer}}=Pagename of the person who appointed this job holder ''([[Property:Has appointer]])''
 
|{{GREEN|appointer}}=Pagename of the person who appointed this job holder ''([[Property:Has appointer]])''
 +
|{{GREEN|nominator}}=Pagename of the person who nominated this job holder ''([[Property:Has nominator]])''
 
|{{GREEN|location}}=Where the job was based ''([[Property:Has location]])''
 
|{{GREEN|location}}=Where the job was based ''([[Property:Has location]])''
 
|acting=Yes (For acting appointees)
 
|acting=Yes (For acting appointees)
Line 30: Line 31:
 
|Has deputy={{{deputies|}}}|+sep=,
 
|Has deputy={{{deputies|}}}|+sep=,
 
|Has appointer={{{appointer|}}}|+sep=,
 
|Has appointer={{{appointer|}}}|+sep=,
 +
|Has nominator={{{nominator|}}}|+sep=,
 
|Has location={{{location|}}}|+sep=,
 
|Has location={{{location|}}}|+sep=,
 
|description={{#if: {{{description|}}}|{{{description}}}|{{#ifeq: {{{acting|}}}|Yes|''Acting'' }}}}
 
|description={{#if: {{{description|}}}|{{{description}}}|{{#ifeq: {{{acting|}}}|Yes|''Acting'' }}}}
Line 55: Line 57:
 
|label6=Appointed by
 
|label6=Appointed by
 
|data6={{ArrayMapListLink|{{{appointer|}}}}}
 
|data6={{ArrayMapListLink|{{{appointer|}}}}}
|label7=Location
+
|label8=Nominated by
|data7={{ArrayMapListLink|{{{location|}}}}}
+
|data8={{ArrayMapListLink|{{{nominator|}}}}}
|label8=Preceded by
+
|label10=Location
 +
|data10={{ArrayMapListLink|{{{location|}}}}}
 +
|label12=Preceded by
 
<!-- 2016-04-03: Shouldn't put self there -->
 
<!-- 2016-04-03: Shouldn't put self there -->
|data8={{#if: {{{title|}}}|{{#switch: {{{title|}}}
+
|data12={{#if: {{{title|}}}|{{#switch: {{{title|}}}
 
|?=
 
|?=
 
|??=
 
|??=
Line 68: Line 72:
 
|???=
 
|???=
 
|{{#ask: [[Next::{{{start|}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }}{{#ask: [[End::{{date-1|{{{start|}}}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }}{{#ask: [[End::{{{start|}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]]}} }} }} }} }}
 
|{{#ask: [[Next::{{{start|}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }}{{#ask: [[End::{{date-1|{{{start|}}}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }}{{#ask: [[End::{{{start|}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]]}} }} }} }} }}
|label9=Succeeded&nbsp;by
+
|label13=Succeeded&nbsp;by
 
<!-- 2016-04-03: Shouldn't put self there -->
 
<!-- 2016-04-03: Shouldn't put self there -->
|data9={{#if: {{{title|}}}|{{#switch: {{{title|}}}
+
|data13={{#if: {{{title|}}}|{{#switch: {{{title|}}}
 
|?=
 
|?=
 
|??=
 
|??=

Revision as of 11:26, 5 March 2018

This template is for use in the |employment category of Wikispooks pages about people.
This to be used once per stint of employment. All the parameters are optional.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

Usage:

{{job
|title=Pagename of the job, e.g. US President
|start= Date it began (Property:Start)
|end= Date it ended (Property:End)
|next= Date the job was next held (For handling gaps in appointments) (Property:Next)
|description=Human readable clarification (Property:Description)
|appointer=Pagename of the person who appointed this job holder (Property:Has appointer)
|nominator=Pagename of the person who nominated this job holder (Property:Has nominator)
|location=Where the job was based (Property:Has location)
|acting=Yes (For acting appointees)
|employer=Pagename of the employer (Property:Has employer) - Generally this should be a group, not a person's name. Usually used for obscure jobs, since if the job already exists as a page, the information is redundant.
|deputies=Comma separated list of pagename(s) of the deputies (Property:Has deputy) (Experimental) (Should be auto generated)
}}