Jump to content

Template:Job: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Terje
m add not use commas
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 21: Line 21:
}}
}}
</poem>
</poem>
</noinclude><includeonly>[[Has posting::{{{title|}}}| ]]{{#subobject:
</noinclude><includeonly>{{#subobject:
|Constitutes=Posting
|Constitutes=Posting
|Has image={{#show: {{FULLPAGENAME}} ?Has image |link=none}}
|Has image=
|Has jobTitle={{{title|}}}
|Has jobTitle={{{title|}}}
|Has employer={{{employer|}}}
|Has employer={{{employer|}}}
Line 39: Line 39:
}}<!---
}}<!---
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: {{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=x22px}}|{{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}}]]}}{{ArrayMapRefs|{{{ref|}}}}}|{{infobox |child = yes
-->{{Box|{{#ifexist: {{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=x22px}}|{{Display image of|pagename={{{title|}}}|link={{{title|}}}|size=x22px}}|[[image:Employment.png|20px|link={{{title|}}}]]}}&nbsp;{{#ifeq: {{{acting|}}}|Yes|Acting&nbsp;}}{{ArrayMapListLink|{{{title|}}}}}{{#if: |&nbsp;[[image:wikipedia-icon.png|22px|link=]]}}{{ArrayMapRefs|{{{ref|}}}}}|{{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|}}}}}
Line 46: Line 46:
|label4=Deputy
|label4=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 -->
|data4={{#if: {{{title|}}}| {{#if: {{#ask: [[-Has deputy::{{{title|}}}]]}}| {{#if: {{{start|}}}| {{#if: {{{end|}}}|  
|data4={{#if: {{{title|}}}| {{#if: | {{#if: {{{start|}}}| {{#if: {{{end|}}}|  
{{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]|link=none}}]][[Start::> {{{start|}}}]][[Start::<<{{{end|}}}]]
 
<!-- Below is too inclusive
OR      [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[-Has deputy::{{{title|}}}]]|link=none}}]][[Start::<<{{{start|}}}]][[End::>>{{{end|}}}]] --> }}
}}}}}}}}
}}}}}}}}
|below={{{description|}}}
|below={{{description|}}}
|label5=Boss
|label5=Boss
<!-- 2016-04-02: Copy the above -->
<!-- 2016-04-02: Copy the above -->
|data5={{#if: {{{title|}}}| {{#if: {{#ask: [[Has deputy::{{{title|}}}]]}}|  {{#if: {{{start|}}}| {{#if: {{{end|}}}|  
|data5={{#if: {{{title|}}}| {{#if: |  {{#if: {{{start|}}}| {{#if: {{{end|}}}|  
{{#ask: [[Constitutes::Posting]][[Has jobTitle::{{#ask: [[Has deputy::{{{title|}}}]]|link=none}}]][[Start::> {{{start|}}}]][[Start::<<{{{end|}}}]]
 
}}
}}}}}}}}
}}}}}}}}
|label6=Appointed by
|label6=Appointed by
Line 74: Line 71:
|??=
|??=
|???=
|???=
|{{#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}}]]}} }} }} }} }}
| }} }} }} }}
|label13=Succeeded&nbsp;by
|label13=Succeeded&nbsp;by
<!-- 2016-04-03: Shouldn't put self there -->
<!-- 2016-04-03: Shouldn't put self there -->
Line 81: Line 78:
|??=
|??=
|???=
|???=
|{{#if: {{{next|}}}|{{#ask: [[Start::{{{next|}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }}|{{#if: {{{end|}}}|{{#switch: {{{end|}}}
|{{#if: {{{next|}}}||{{#if: {{{end|}}}|{{#switch: {{{end|}}}
|?=
|?=
|??=
|??=
|???=
|???=
|{{#ask: [[Start::{{date+1|{{{end|}}}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }}{{#ask: [[Start::{{{end|}}}]][[Has jobTitle::{{{title|}}}]][[-Has subobject::!{{FULLPAGENAME}}]] }} }} }} }} }} }}
| }} }} }} }} }}
}}
}}
}}</includeonly>
}}</includeonly>

Latest revision as of 22:34, 24 September 2026

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: <poem> {{#subobject: |Constitutes=Posting |Has image= |Has jobTitle= |Has employer= |Start_by=Date by which it had begun (Property:Start_by) Not yet implemented |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) |Display date=Date it began (Property:Start) - Date it ended (Property:End) |Has deputy=|+sep=, |Has appointer=|+sep=, |Has nominator=|+sep=, |Has location=|+sep=, |description=Human readable clarification (Property:Description) }}

File:Employment.png 

In office
Date it began (Property:Start) - Date it ended (Property:End)
Human readable clarification (Property:Description)

</poem>