Difference between revisions of "Template:Job"
(trim one next clause) |
m (add not use commas) |
||
(15 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>{{WStemplate |
− | '''Usage:''' | + | |categories=Semantic Templates |
+ | |summary=This template is for use in the {{!}}{{t|employment}} category of Wikispooks pages about people. | ||
+ | |description=This to be used once per stint of employment. All the parameters are optional. | ||
+ | }}'''Usage:''' | ||
<poem> | <poem> | ||
{{job | {{job | ||
− | |{{BLUE|title}}=Pagename of the job, e.g. [[US President]] | + | |{{BLUE|title}}=Pagename of the job, e.g. [[US President]]. The current standard practice is not to use commas in the title. |
|start= Date it began ''([[Property:Start]])'' | |start= Date it began ''([[Property:Start]])'' | ||
+ | |start_by= Date by which it had begun ''([[Property:Start_by]])'' {{RED|Not yet implemented}} | ||
|end= Date it ended ''([[Property:End]])'' | |end= Date it ended ''([[Property:End]])'' | ||
|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|appointer}}=Pagename of the person who appointed this job holder ''([[Property:Has appointer]])'' | ||
+ | |{{GREEN|nominator}}=Pagename of the person who nominated this job holder ''([[Property:Has nominator]])'' | ||
|{{GREEN|location}}=Where the job was based ''([[Property:Has location]])'' | |{{GREEN|location}}=Where the job was based ''([[Property:Has location]])'' | ||
+ | |{{GREEN|ref}}=Content of ref(s) about this job | ||
|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 15: | Line 21: | ||
}} | }} | ||
</poem> | </poem> | ||
− | </noinclude><includeonly>[[ | + | </noinclude><includeonly>[[Has posting::{{{title|}}}| ]]{{#subobject: |
|Constitutes=Posting | |Constitutes=Posting | ||
|Has image={{#show: {{FULLPAGENAME}} ?Has image |link=none}} | |Has image={{#show: {{FULLPAGENAME}} ?Has image |link=none}} | ||
|Has jobTitle={{{title|}}} | |Has jobTitle={{{title|}}} | ||
|Has employer={{{employer|}}} | |Has employer={{{employer|}}} | ||
+ | |Start_by={{{start_by|}}} | ||
|Start={{{start|}}} | |Start={{{start|}}} | ||
|End={{{end|}}} | |End={{{end|}}} | ||
Line 27: | Line 34: | ||
|Has deputy={{{deputies|}}}|+sep=, | |Has deputy={{{deputies|}}}|+sep=, | ||
|Has appointer={{{appointer|}}}|+sep=, | |Has appointer={{{appointer|}}}|+sep=, | ||
+ | |Has nominator={{{nominator|}}}|+sep=, | ||
|Has location={{{location|}}}|+sep=, | |Has location={{{location|}}}|+sep=, | ||
|description={{#if: {{{description|}}}|{{{description}}}|{{#ifeq: {{{acting|}}}|Yes|''Acting'' }}}} | |description={{#if: {{{description|}}}|{{{description}}}|{{#ifeq: {{{acting|}}}|Yes|''Acting'' }}}} | ||
}}<!--- | }}<!--- | ||
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|[[image: | + | -->{{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|}}}]]}} {{#ifeq: {{{acting|}}}|Yes|Acting }}{{ArrayMapListLink|{{{title|}}}}}{{#if: {{#show: {{{title|}}}| ?Has wikipediaPage2}}| [[image:wikipedia-icon.png|22px|link={{#show: {{{title|}}}| ?Has wikipediaPage2}}]]}}{{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 52: | Line 60: | ||
|label6=Appointed by | |label6=Appointed by | ||
|data6={{ArrayMapListLink|{{{appointer|}}}}} | |data6={{ArrayMapListLink|{{{appointer|}}}}} | ||
− | | | + | |label8=Nominated by |
− | | | + | |data8={{ArrayMapListLink|{{{nominator|}}}}} |
− | | | + | |label10=Location |
+ | |data10={{ArrayMapListLink|{{{location|}}}}} | ||
+ | |label12=Preceded by | ||
<!-- 2016-04-03: Shouldn't put self there --> | <!-- 2016-04-03: Shouldn't put self there --> | ||
− | | | + | |data12={{#if: {{{title|}}}|{{#switch: {{{title|}}} |
|?= | |?= | ||
|??= | |??= | ||
Line 65: | Line 75: | ||
|???= | |???= | ||
|{{#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}}]]}} }} }} }} }} | |{{#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 by |
<!-- 2016-04-03: Shouldn't put self there --> | <!-- 2016-04-03: Shouldn't put self there --> | ||
− | | | + | |data13={{#if: {{{title|}}}|{{#switch: {{{title|}}} |
|?= | |?= | ||
|??= | |??= |
Latest revision as of 00:16, 25 August 2022
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 parameterswere formerly available, but have been upgraded. Some may still work, but do not use these.
Usage:
{{job
|title=Pagename of the job, e.g. US President. The current standard practice is not to use commas in the title.
|start= Date it began (Property:Start)
|start_by= Date by which it had begun (Property:Start_by) Not yet implemented
|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)
|nominator=Pagename of the person who nominated this job holder (Property:Has nominator)
|location=Where the job was based (Property:Has location)
|ref=Content of ref(s) about this job
|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)
}}