Difference between revisions of "Template:Job"

From Wikispooks
Jump to navigation Jump to search
("|link=none" for deputy internal SMW query)
Line 38: Line 38:
 
<!-- 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 -->
 
|data4={{#if: {{{title|}}}| {{#if: {{#ask: [[-Has deputy::{{{title|}}}]]}}| {{#if: {{{start|}}}| {{#if: {{{end|}}}|  
 
|data4={{#if: {{{title|}}}| {{#if: {{#ask: [[-Has deputy::{{{title|}}}]]}}| {{#if: {{{start|}}}| {{#if: {{{end|}}}|  
{{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]}}]][[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
OR      [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]}}]][[Start::<<{{{start|}}}]][[End::>>{{{end|}}}]] --> }}
+
OR      [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]|link=none}}]][[Start::<<{{{start|}}}]][[End::>>{{{end|}}}]] --> }}
 
}}}}}}}}
 
}}}}}}}}
 
|below={{{description|}}}
 
|below={{{description|}}}

Revision as of 09:30, 14 April 2016

Bug1.jpg This template has problems: This has some problems displaying the auto generated fields: Boss & Deputy. Please submit details here to help diagnose and fix the problem. Use the discussion page to see the debate about this.


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