Difference between revisions of "Template:Job"

From Wikispooks
Jump to navigation Jump to search
(fixed height better for wider icons)
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|{{#ifexist: {{{title|}}}|{{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=x22px}}|[[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
+
-->{{Box|{{#ifexist: {{{title|}}}|{{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=x22px}}|[[image:Employment.png|20px|link={{{title|}}}]]}}&nbsp;{{#ifeq: {{{acting|}}}|Yes|Acting&nbsp;}}{{FormatCrumbTrail|{{{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:41, 19 November 2017

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