Difference between revisions of "Template:Employment"

From Wikispooks
Jump to navigation Jump to search
(|so_called)
(add acting)
 
(27 intermediate revisions by 2 users 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<!-- |{{GREEN|type}}    = {intelligence agency, international, investigatory, legal, lobby, military, nation state, regulator, secret society, think tank, whitewash ...} ''([[Property:Has employmentType]])'' e.g. "commercial, military" -->
 
|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" -->
 +
|location          = In which place the job is located
 
|{{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 job(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
|{{BLUE|employer}}  = Which group this employment is a part of
+
|{{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]])''
 +
|{{ORANGE|acting}} = Set to Yes (note the capital Y) if the person is temporarily acting in the position
 +
|{{VIOLET|key_properties}}= Slash separated list of important properties of this page ''([[Property:Has keyProperties]])''
 +
|{{VIOLET|key_property_headers}}= Slash separated list of property descriptions (same length as the above) ''([[Property:Has keyPropertyHeaders]])''
 
|{{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
 
|motto_translation = Job motto, translated into English
|{{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]]"<!--''Experimental parameters:''
+
|{{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]]"
|status            ={fully captured, largely captured, semi-captured, tainted, independent} especially for [[regulator]]y groups, but maybe also others ''([[Property:Has groupStatus]])'' -->}}
+
}}</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}}}| ]]}}{{#ifeq: {{{so_called|}}} | 1 | [[So called::Yes]]{{DISPLAYTITLE:"{{PAGENAME}}"}} |}}{{SMWDefaultMarkup}}{{ArrayMapProperty|{{{deputies|}}}|Has deputy}}<!--
+
{{#if: {{{start|}}}|[[Start::{{{start}}}| ]]}}{{#if: {{{end|}}}|[[End::{{{end}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}{{#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>{{#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
Line 50: Line 53:
 
| label4  = Founder(s)
 
| label4  = Founder(s)
 
| data4    = {{ArrayMapListLink|{{{founders|}}}}}
 
| data4    = {{ArrayMapListLink|{{{founders|}}}}}
 +
| image5  = {{Employment/Incumbent}}<hr/>
 
| label6  = Leader&nbsp;of
 
| label6  = Leader&nbsp;of
 
| data6    = {{ArrayMapBulletedList|{{#ask: [[Has leader::{{PAGENAME}}]]}}}}
 
| data6    = {{ArrayMapBulletedList|{{#ask: [[Has leader::{{PAGENAME}}]]}}}}
Line 56: Line 60:
 
| label9  = Boss
 
| label9  = Boss
 
| data9    = {{ArrayMapBulletedList|{{#ask: [[Has deputy::{{PAGENAME}}]]}}}}
 
| data9    = {{ArrayMapBulletedList|{{#ask: [[Has deputy::{{PAGENAME}}]]}}}}
| label10   = Abbreviation         
+
| label10 = Abbreviation         
 
| data10  = {{ArrayMapListLink|{{{abbreviation|}}}}}
 
| data10  = {{ArrayMapListLink|{{{abbreviation|}}}}}
| label12   = Interest&nbsp;of
+
| label11  = Interests
| data12   = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}}
+
| data11  = {{ArrayMapListLink|{{{interests|}}}}}
 +
| label12 = Interest&nbsp;of
 +
| data12   = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}}
 
| label14  = Employer
 
| label14  = Employer
 
| data14  = {{ArrayMapListLink|{{{employer|}}}}}
 
| data14  = {{ArrayMapListLink|{{{employer|}}}}}
| label18   = Website
+
| label18 = Website
| data18   = {{{Website|}}}
+
| data18   = {{{website|}}}
| label19   = [[Wikipedia]]&nbsp;page
+
| label21  = Predecessors
| data19    = {{WikipediaLink|{{{wikipedia|{{{WP|}}}}}}|{{{wikipedia_protection|}}}}}
+
| 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>

Latest revision as of 23:59, 8 March 2024

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
|location = In which place the job is located
|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)
|acting = Set to Yes (note the capital Y) if the person is temporarily acting in the position
|key_properties= Slash separated list of important properties of this page (Property:Has keyProperties)
|key_property_headers= Slash separated list of property descriptions (same length as the above) (Property:Has keyPropertyHeaders)
|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"
}}