Difference between revisions of "Template:Job"
(renumber boxes for eaiser insertion of items later) |
|||
Line 33: | Line 33: | ||
|header1={{#if: {{{start|}}}{{{end|}}}|In office|Dates unknown}} | |header1={{#if: {{{start|}}}{{{end|}}}|In office|Dates unknown}} | ||
|data2={{FormatDate|{{{start|}}}|{{{end|}}}}} | |data2={{FormatDate|{{{start|}}}|{{{end|}}}}} | ||
− | | | + | |label4=Employer |
− | | | + | |data4={{ArrayMapListLink|{{{employer|}}}}} |
− | | | + | |label6=Deputy |
<!-- 2015-01-15: only display deputies when there is a start time and an end time --> | <!-- 2015-01-15: only display deputies when there is a start time and an end time --> | ||
− | | | + | |data6={{#if: {{{title|}}}| {{#if: {{#ask: [[-Has deputy::{{{title|}}}]]}}| {{#if: {{{start|}}}| {{#if: {{{end|}}}| |
{{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]|link=none}}]][[Start::> {{{start|}}}]][[Start::<<{{{end|}}}]] | {{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]|link=none}}]][[Start::> {{{start|}}}]][[Start::<<{{{end|}}}]] | ||
<!-- Below is too inclusive | <!-- Below is too inclusive | ||
Line 43: | Line 43: | ||
}}}}}}}} | }}}}}}}} | ||
|below={{{description|}}} | |below={{{description|}}} | ||
− | | | + | |label9=Boss |
<!-- 2016-04-02: Copy the above --> | <!-- 2016-04-02: Copy the above --> | ||
− | | | + | |data9={{#if: {{{title|}}}| {{#if: {{#ask: [[Has deputy::{{{title|}}}]]}}| {{#if: {{{start|}}}| {{#if: {{{end|}}}| |
{{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[Has deputy::{{{title|}}}]]|link=none}}]][[Start::> {{{start|}}}]][[Start::<<{{{end|}}}]] | {{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[Has deputy::{{{title|}}}]]|link=none}}]][[Start::> {{{start|}}}]][[Start::<<{{{end|}}}]] | ||
}} | }} | ||
}}}}}}}} | }}}}}}}} | ||
− | | | + | |label3=Appointed by |
− | | | + | |data13={{ArrayMapListLink|{{{appointer|}}}}} |
− | | | + | |label15=Location |
− | | | + | |data15={{ArrayMapListLink|{{{location|}}}}} |
− | | | + | |label18=Preceded by |
<!-- 2016-04-03: Shouldn't put self there --> | <!-- 2016-04-03: Shouldn't put self there --> | ||
− | | | + | |data18={{#if: {{{title|}}}|{{#switch: {{{title|}}} |
|?= | |?= | ||
|??= | |??= | ||
Line 64: | Line 64: | ||
|???= | |???= | ||
|{{#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}}]][[Next::{{{start|}}}]] }} }} }} }} }} | |{{#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}}]][[Next::{{{start|}}}]] }} }} }} }} }} | ||
− | | | + | |label19=Succeeded by |
<!-- 2016-04-03: Shouldn't put self there --> | <!-- 2016-04-03: Shouldn't put self there --> | ||
− | | | + | |data19={{#if: {{{title|}}}|{{#switch: {{{title|}}} |
|?= | |?= | ||
|??= | |??= |
Revision as of 14:27, 16 April 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)
}}