Difference between revisions of "Template:Job"
Jump to navigation
Jump to search
m (Text replacement - "|Description" to "|description") |
(Acting, Preceded by, Succeeded by) |
||
Line 3: | Line 3: | ||
<poem> | <poem> | ||
{{job | {{job | ||
− | |||
|{{BLUE|title}}=Pagename of the job, e.g. [[US President]] | |{{BLUE|title}}=Pagename of the job, e.g. [[US President]] | ||
− | |||
|start= Date it began | |start= Date it began | ||
|end= Date it ended | |end= Date it ended | ||
|description=Human readable clarification | |description=Human readable clarification | ||
+ | |acting=Yes (For acting appointees) | ||
+ | |{{BLUE|employer}}=Pagename of the employer ''([[Property:Has employer]])'' | ||
+ | |{{GREEN|deputies}}=Comma separated list of pagename(s) of the deputies ''([[Property:Has deputy]])'' ''(Experimental)'' | ||
}} | }} | ||
</poem> | </poem> | ||
Line 23: | Line 24: | ||
}}<!--- | }}<!--- | ||
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|{{ArrayMapListLink|{{{title|}}}}}|{{infobox |child = yes | + | -->{{Box|{{#ifeq: {{{acting|}}}|Yes|Acting }}{{ArrayMapListLink|{{{title|}}}}}|{{infobox |child = yes |
|header1=In office | |header1=In office | ||
|data2={{FormatDate|{{{start|}}}|{{{end|}}}}} | |data2={{FormatDate|{{{start|}}}|{{{end|}}}}} | ||
Line 31: | Line 32: | ||
|data4={{ArrayMapListLink|{{{deputies|}}}}} | |data4={{ArrayMapListLink|{{{deputies|}}}}} | ||
|below={{{description|}}} | |below={{{description|}}} | ||
+ | |label5=Preceded by | ||
+ | |data5={{#if: {{{title|}}}| {{#if: {{{start|}}}|{{#ask: [[End::{{{start|}}}]][[Has jobTitle::{{{title|}}}]] }} }} | ||
+ | |label6=Succeeded by | ||
+ | |data6={{#if: {{{title|}}}| {{#if: {{{end|}}}|{{#ask: [[Start::{{{end|}}}]][[Has jobTitle::{{{title|}}}]] }} }} | ||
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 06:03, 10 January 2015
This template is for use in the |employment category of Wikispooks pages about people, to be used once per stint of employment.
Usage:
{{job
|title=Pagename of the job, e.g. US President
|start= Date it began
|end= Date it ended
|description=Human readable clarification
|acting=Yes (For acting appointees)
|employer=Pagename of the employer (Property:Has employer)
|deputies=Comma separated list of pagename(s) of the deputies (Property:Has deputy) (Experimental)
}}