Difference between revisions of "Template:Job"

From Wikispooks
Jump to navigation Jump to search
(fix desc)
(fix for nonexistant job)
Line 1: Line 1:
 
<noinclude>{{WStemplate
 
<noinclude>{{WStemplate
 
|categories=Semantic Templates
 
|categories=Semantic Templates
|summary=This template is for use in the {{!}}'''{{t|employment}} '''category of Wikispooks pages about people.
+
|summary=This template is for use in the {{!}}{{t|employment}} category of Wikispooks pages about people.
 
|description=This to be used once per stint of employment. All the parameters are optional.
 
|description=This to be used once per stint of employment. All the parameters are optional.
 
}}'''Usage:'''
 
}}'''Usage:'''
Line 34: Line 34:
 
}}<!---
 
}}<!---
 
Now display in suitable format to put in an the footer of an infobox
 
Now display in suitable format to put in an the footer of an infobox
-->{{Box|{{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=24px}}&nbsp;{{#ifeq: {{{acting|}}}|Yes|Acting&nbsp;}}{{ArrayMapListLink|{{{title|}}}}}{{#if: {{#show: {{{title|}}}| ?Has wikipediaPage2}}|&nbsp;[[image:wikipedia-icon.png|22px|link={{#show: {{{title|}}}| ?Has wikipediaPage2}}]]}}|{{infobox |child = yes
+
-->{{Box|{{#if: {{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=24px}}|{{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=24px}}|[[image:Employment.png|20px|link={{{title|}}}]]}}&nbsp;{{#ifeq: {{{acting|}}}|Yes|Acting&nbsp;}}{{ArrayMapListLink|{{{title|}}}}}{{#if: {{#show: {{{title|}}}| ?Has wikipediaPage2}}|&nbsp;[[image:wikipedia-icon.png|22px|link={{#show: {{{title|}}}| ?Has wikipediaPage2}}]]}}|{{infobox |child = yes
 
|header1={{#if: {{{start|}}}{{{end|}}}|In office|Dates unknown}}
 
|header1={{#if: {{{start|}}}{{{end|}}}|In office|Dates unknown}}
 
|data2={{FormatDate|{{{start|}}}|{{{end|}}}}}
 
|data2={{FormatDate|{{{start|}}}|{{{end|}}}}}

Revision as of 04:54, 11 October 2016

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)
|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)
}}