Difference between revisions of "Template:Employment"

From Wikispooks
Jump to navigation Jump to search
(New top level object - derived from Concept)
 
(Demote |description to the now usual place)
(29 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
''All sections are optional.''
 
''All sections are optional.''
 
<poem>
 
<poem>
{{Group
+
{{Employment
 
|description      = <500 word summary ''([[Property:Description]])''
 
|description      = <500 word summary ''([[Property:Description]])''
|logo              = Group logo ''([[Property:Has logo]])''
+
|logo              = Employment logo ''([[Property:Has logo]])'' - ''Where multiple logos are possible, use a landscape rather than a portrait format''
 
|logo_width        = (defaults to "250px")
 
|logo_width        = (defaults to "250px")
 
|image            = Image for use in the infobox ''([[Property:Has image]])''
 
|image            = Image for use in the infobox ''([[Property:Has image]])''
 
|image_width      = (defaults to "250px")
 
|image_width      = (defaults to "250px")
|image_caption          = Caption for the image
+
|image_caption          = Caption for the image<!-- |{{GREEN|type}}    = {intelligence agency, international, investigatory, legal, lobby, military, nation state, regulator, secret society, think tank, whitewash ...} ''([[Property:Has employmentType]])'' e.g. "commercial, military" -->
<!-- |{{GREEN|type}}    = {intelligence agency, international, investigatory, legal, lobby, military, nation state, regulator, secret society, think tank, whitewash ...} ''([[Property:Has employmentType]])'' e.g. "commercial, military" -->
 
 
|{{NAVY|start}}            = When this job was created ''([[Property:Start]])''
 
|{{NAVY|start}}            = When this job was created ''([[Property:Start]])''
 
|{{NAVY|end}}              = When the job was finished, if ever ''([[Property:End]])''
 
|{{NAVY|end}}              = When the job was finished, if ever ''([[Property:End]])''
|{{GREEN|predecessors}}  = Which jos(s) this one replaces/ was created from
+
|{{GREEN|predecessors}}  = Which job(s) this one replaces/ was created from
 
|{{GREEN|successors}} = If obsolete, which job(s) this one was replaced by
 
|{{GREEN|successors}} = If obsolete, which job(s) this one was replaced by
 +
|{{GREEN|deputies}} = Which job(s) (usually just one) this one is deputised by
 +
|{{BLUE|employer}}  = Which group this employment is a part of - ''Not used much''
 
|{{PURPLE|website}} = URL of the job's homepage, ''([[Property:Has website]])'' - if it exists
 
|{{PURPLE|website}} = URL of the job's homepage, ''([[Property:Has website]])'' - if it exists
 
|{{PURPLE|facebook}}= URL of the job's facebook page ''([[Property:Has facebook]])'' - if it exists
 
|{{PURPLE|facebook}}= URL of the job's facebook page ''([[Property:Has facebook]])'' - if it exists
|twitter           = Handle of the job's twitter (no '@') ''([[Property:Has twitter]])'' - if it exists
+
|{{PURPLE|twitter}}      = URL of the job's twitter ''([[Property:Has twitter]])'' - if it exists
 
|{{PURPLE|wikipedia}}        = URL of the job's Wikipedia page, if any ''([[Property:Has wikipediaPage]])''
 
|{{PURPLE|wikipedia}}        = URL of the job's Wikipedia page, if any ''([[Property:Has wikipediaPage]])''
|wikipedia_protection      = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])''
+
|{{ORANGE|wikipedia_protection}}       = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])''
 
|{{GREEN|constitutes}} = What the job constitutes ''([[Property:Constitutes]])''
 
|{{GREEN|constitutes}} = What the job constitutes ''([[Property:Constitutes]])''
|{{GREEN|ON_constitutes}}  = What the job ON constitutes ''([[Property:ON_constitutes]])''
+
|{{GREEN|ON_constitutes}}  = What the job ON constitutes ''([[Property:ON_constitutes]])''<!--|{{GREEN|founders}}= Comma separated list of founders  ''([[Property:Has founder]])'' -->
<!--|{{GREEN|founders}}= Comma separated list of founders  ''([[Property:Has founder]])''
 
 
|{{GREEN|deputies}} = Comma separated list of jobs below this (usually just one)=
 
|{{GREEN|deputies}} = Comma separated list of jobs below this (usually just one)=
 +
|{{GREEN|interests}}= Area(s) of interest ''([[Property:Has interest]])''
 
|abbreviation      = Job abbreviation
 
|abbreviation      = Job abbreviation
 
|motto            = Job motto
 
|motto            = Job motto
|motto_translation = Job motto, translated into English<!--''Experimental parameters:''
+
|motto_translation = Job motto, translated into English
|status            ={fully captured, largely captured, semi-captured, tainted, independent} especially for [[regulator]]y groups, but maybe also others ''([[Property:Has groupStatus]])'' -->
+
|{{ORANGE|so_called}} = Set to "Yes" to illustrate concern about the name of this object ''([[Property:So called]])'' - For flagging up deceitful language such as the "[[War on Terror]]"
}}
+
}}</poem></noinclude><includeonly>{{SMWObjectHeader|Employment}}{{ArrayMapProperty|{{{constitutes|}}}|Constitutes}}{{ArrayMapProperty|{{{ON_constitutes|}}}|ON_constitutes}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}
</noinclude><includeonly>{{SMWObjectHeader|Employment}}{{ArrayMapProperty|{{{constitutes|}}}|Constitutes}}{{ArrayMapProperty|{{{ON_constitutes|}}}|ON_constitutes}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}{{Description|{{{description|}}}}}{{#if: {{{start|}}}|[[Start::{{{start}}}| ]]}}{{#if: {{{end|}}}|[[End::{{{end}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{website|}}}|[[Has website::{{{website}}}| ]]}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}{{SMWDefaultMarkup}}{{ArrayMapProperty|{{{deputies|}}}|Has deputy}}<!--
+
{{#if: {{{start|}}}|[[Start::{{{start}}}| ]]}}{{#if: {{{end|}}}|[[End::{{{end}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{website|}}}|[[Has website::{{{website}}}| ]]}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage2::{{{wikipedia}}}| ]]}}{{#ifeq: {{{so_called|}}} | 1 | [[So called::Yes]]{{DISPLAYTITLE:"{{PAGENAME}}"}} |}}{{SMWDefaultMarkup}}{{ArrayMapProperty|{{{deputies|}}}|Has deputy}}<!--
 
Wikipedia Display template
 
Wikipedia Display template
 
-->{{Infobox
 
-->{{Infobox
| above  = <span class="fn">{{Infobox class icon}}&nbsp;{{{name|{{PAGENAME}}}}}</span></includeonly>{{#if: {{{glossary|}}}|&nbsp;[[image:Glossary.png|link=WikiSpooks:Glossary|26px]]}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}
+
| above  = <span class="fn">{{Infobox class icon}}&nbsp;{{#ifeq: {{{so_called|}}} | 1 | [[So called::Yes| ]]"{{{name|{{PAGENAME}}}}}"|{{{name|{{PAGENAME}}}}}}}</span>{{#if: {{{glossary|}}}|&nbsp;[[image:Glossary.png|link=Wikispooks:Glossary|26px]]}}{{#if: {{{wikipedia_protection|}}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-padlock-icon.png}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-icon.png}}}}{{External icons/Xicon|{{{nndb|}}}|Has nndb|nndb-icon.png}}{{External icons/Xicon|{{{powerbase|}}}|Has powerbase|powerbase-icon.png}}{{External icons/Xicon|{{{sourcewatch|}}}|Has sourcewatch|sourcewatch-icon.png}}{{External icons/Xicon|{{{twitter|}}}|Has twitter|twitter-icon.png}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}<hr/>
 
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}}
 
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}}
 
| caption  = {{{image_caption|}}}
 
| caption  = {{{image_caption|}}}
| image2  = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|ize={{{logo_width|}}}|sizedefault=250px|alt={{{logo_alt|}}}}}
+
| image2  = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{logo|}}}|{{{logo}}}|{{#if: {{#ask: [[Has leader::{{PAGENAME}}]] |link=none}}|{{logo_of|{{#ask: [[Has leader::{{PAGENAME}}]] |link=none}}|size={{{logo_width|}}}|sizedefault=250px|alt={{{logo_alt|}}}}}}}}}}}
<!-- The below was serious misbehaving after the upgrade to SMW 2.2, but was working OK(ish) with earlier versions. Disabled 2015-05-18 by Robin
 
{{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{logo|}}}|{{{logo}}}|{{#if: {{#ask: [[Has leader::{{PAGENAME}}]]}}|{{logo_of|{{#ask: [[Has leader::{{PAGENAME}}]]}}}}}}|size={{{logo_width|}}}|sizedefault=250px|alt={{{logo_alt|}}}}}}}-->
 
 
| caption2 = {{{logo_caption|}}}
 
| caption2 = {{{logo_caption|}}}
 
| label2  = Start
 
| label2  = Start
 
| data2    = {{{start|}}}
 
| data2    = {{{start|}}}
| label3  = Founder(s)
+
| label3   = End
| data3   = {{ArrayMapListLink|{{{founders|}}}}}
+
| data3    = {{{end|}}}
| label4   = Leader&nbsp;of
+
| label4   = Founder(s)
| data4   = {{ArrayMapBulletedList|{{#ask: [[Has leader::{{PAGENAME}}]]}}}}
+
| data4   = {{ArrayMapListLink|{{{founders|}}}}}
| label5   = Deputy
+
| image5  = {{Employment/Incumbent}}<hr/>
| data5   = {{ArrayMapListLink|{{{deputies|}}}}}
+
| label6   = Leader&nbsp;of
| label6   = Abbreviation         
+
| data6   = {{ArrayMapBulletedList|{{#ask: [[Has leader::{{PAGENAME}}]]}}}}
| data6    = {{ArrayMapListLink|{{{abbreviation|}}}}}
+
| label7   = Deputy
| label7   = Interest&nbsp;of
+
| data7   = {{ArrayMapListLink|{{{deputies|}}}}}
| data7    = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}}
+
| label9   = Boss
| label8   = Website
+
| data9    = {{ArrayMapBulletedList|{{#ask: [[Has deputy::{{PAGENAME}}]]}}}}
| data8    = {{{Website|}}}
+
| label10  = Abbreviation         
| label9   = [[Wikipedia]]&nbsp;page
+
| data10  = {{ArrayMapListLink|{{{abbreviation|}}}}}
| data9    = {{WikipediaLink|{{{wikipedia|{{{WP|}}}}}}|{{{wikipedia_protection|}}}}}
+
| label11  = Interests
 +
| data11   = {{ArrayMapListLink|{{{interests|}}}}}
 +
| label12  = Interest&nbsp;of
 +
| data12  = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}}
 +
| label14  = Employer
 +
| data14   = {{ArrayMapListLink|{{{employer|}}}}}
 +
| label18  = Website
 +
| data18  = {{{website|}}}
 +
| label21  = Predecessors
 +
| data21  = {{ArrayMapListLink|{{{predecessors|}}}}}
 +
| label22  = Successors
 +
| data22  = {{ArrayMapListLink|{{{successors|}}}}}
 +
| label26  = Subpage(s)
 +
| data26   = {{SubpageList}}
 +
|below = {{#if: {{{description|}}}|{{{description}}}|{{#if: {{#ask: [[Has leader::{{PAGENAME}}]]}}|''Leader of the ''{{#ask: [[Has leader::{{PAGENAME}}]]}}.&nbsp;}}{{#if: {{#ask: [[Has deputy::{{PAGENAME}}]]}}|''Subordinate to the ''{{#ask: [[Has deputy::{{PAGENAME}}]]}}..&nbsp;}}}}{{#if: {{#ask: [[-Has deputy::{{PAGENAME}}]]}}|''Boss of the ''{{#ask: [[-Has deputy::{{PAGENAME}}]]}}.}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 15:18, 3 August 2019

SMWObjects
Semantic Object Templates:        DecadePlaceTimelineYearDisambiguation
ConceptDocumentEmploymentEventGroupPersonPublicationWebsite

This template provides a standard format for positions of employment

It should be included at the top of all pages about positions of employment.

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.

See employment for a list of pages that use this template.

Usage: All sections are optional.

{{Employment
|description = <500 word summary (Property:Description)
|logo = Employment logo (Property:Has logo) - Where multiple logos are possible, use a landscape rather than a portrait format
|logo_width = (defaults to "250px")
|image = Image for use in the infobox (Property:Has image)
|image_width = (defaults to "250px")
|image_caption = Caption for the image
|start = When this job was created (Property:Start)
|end = When the job was finished, if ever (Property:End)
|predecessors = Which job(s) this one replaces/ was created from
|successors = If obsolete, which job(s) this one was replaced by
|deputies = Which job(s) (usually just one) this one is deputised by
|employer = Which group this employment is a part of - Not used much
|website = URL of the job's homepage, (Property:Has website) - if it exists
|facebook= URL of the job's facebook page (Property:Has facebook) - if it exists
|twitter = URL of the job's twitter (Property:Has twitter) - if it exists
|wikipedia = URL of the job's Wikipedia page, if any (Property:Has wikipediaPage)
|wikipedia_protection = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise (Property:Has wikipediaProtection)
|constitutes = What the job constitutes (Property:Constitutes)
|ON_constitutes = What the job ON constitutes (Property:ON_constitutes)
|deputies = Comma separated list of jobs below this (usually just one)=
|interests= Area(s) of interest (Property:Has interest)
|abbreviation = Job abbreviation
|motto = Job motto
|motto_translation = Job motto, translated into English
|so_called = Set to "Yes" to illustrate concern about the name of this object (Property:So called) - For flagging up deceitful language such as the "War on Terror"
}}