Difference between revisions of "Template:Job"
(try to fix image for jobs) |
(Add location param and better handling of "?" for job title) |
||
Line 8: | Line 8: | ||
|next= Date the job was next held (For handling gaps in appointments) ''([[Property:Next]])'' | |next= Date the job was next held (For handling gaps in appointments) ''([[Property:Next]])'' | ||
|description=Human readable clarification ''([[Property:Description]])'' | |description=Human readable clarification ''([[Property:Description]])'' | ||
− | |{{ | + | |{{GREEN|appointer}}=Pagename of the person who appointed this job holder ''([[Property:Has appointer]])'' |
+ | |{{GREEN|location}}=Where the job was based | ||
|acting=Yes (For acting appointees) | |acting=Yes (For acting appointees) | ||
|{{BLUE|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. | |{{BLUE|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. | ||
Line 43: | Line 44: | ||
|label5=Appointed by | |label5=Appointed by | ||
|data5={{ArrayMapListLink|{{{appointer|}}}}} | |data5={{ArrayMapListLink|{{{appointer|}}}}} | ||
− | |label7=Preceded by | + | |label6=Appointed by |
− | |data7={{#if: {{{title|}}}| {{#if: {{{start|}}}|{{#ask: [[Next::{{{start|}}}]][[Has jobTitle::{{{title|}}}]] }}{{#ask: [[End::{{date-1|{{{start|}}}}}]][[Has jobTitle::{{{title|}}}]] }}{{#ask: [[End::{{{start|}}}]][[Has jobTitle::{{{title|}}}]] }} }} }} | + | |data6={{ArrayMapListLink|{{{location|}}}}} |
+ | |label7=Preceded by|data7={{#if: {{{title|}}}|{{#switch: {{{title|}}} | ||
+ | |?= | ||
+ | |??= | ||
+ | |???= | ||
+ | |default {{#if: {{{start|}}}|{{#ask: [[Next::{{{start|}}}]][[Has jobTitle::{{{title|}}}]] }}{{#ask: [[End::{{date-1|{{{start|}}}}}]][[Has jobTitle::{{{title|}}}]] }}{{#ask: [[End::{{{start|}}}]][[Has jobTitle::{{{title|}}}]] }} }} }} }} | ||
|label9=Succeeded by | |label9=Succeeded by | ||
|data9={{#if: {{{title|}}}| {{#if: {{{next|}}}|{{#ask: [[Start::{{{next|}}}]][[Has jobTitle::{{{title|}}}]] }}|{{#if: {{{end|}}}|{{#ask: [[Start::{{date+1|{{{end|}}}}}]][[Has jobTitle::{{{title|}}}]] }}{{#ask: [[Start::{{{end|}}}]][[Has jobTitle::{{{title|}}}]] }} }} }} }} | |data9={{#if: {{{title|}}}| {{#if: {{{next|}}}|{{#ask: [[Start::{{{next|}}}]][[Has jobTitle::{{{title|}}}]] }}|{{#if: {{{end|}}}|{{#ask: [[Start::{{date+1|{{{end|}}}}}]][[Has jobTitle::{{{title|}}}]] }}{{#ask: [[Start::{{{end|}}}]][[Has jobTitle::{{{title|}}}]] }} }} }} }} | ||
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 00:55, 17 December 2015
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
|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)
}}