Difference between revisions of "Template:Job"

From Wikispooks
Jump to navigation Jump to search
(trim one next clause)
(WP icon where that property exists)
Line 31: Line 31:
 
}}<!---
 
}}<!---
 
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|[[image:employment.png|17px|link={{{title|}}}]]&nbsp;{{#ifeq: {{{acting|}}}|Yes|Acting&nbsp; }}{{ArrayMapListLink|{{{title|}}}}}|{{infobox |child = yes
+
-->{{Box|[[image:employment.png|17px|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 09:28, 14 August 2016

This template is for use in the |employment category of Wikispooks pages about people, to be used once per stint of employment. All the parameters are optional.
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)
}}