Difference between revisions of "Template:Employment"

From Wikispooks
Jump to navigation Jump to search
(Demote |description to the now usual place)
(key_properties)
Line 26: Line 26:
 
|{{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]])''
 
|{{ORANGE|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]])''
 +
|{{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|founders}}= Comma separated list of founders  ''([[Property:Has founder]])'' -->
 
|{{GREEN|ON_constitutes}}  = What the job ON constitutes ''([[Property:ON_constitutes]])''<!--|{{GREEN|founders}}= Comma separated list of founders  ''([[Property:Has founder]])'' -->
Line 35: Line 37:
 
|{{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]]"
 
|{{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}}}| ]]}}
 
}}</poem></noinclude><includeonly>{{SMWObjectHeader|Employment}}{{ArrayMapProperty|{{{constitutes|}}}|Constitutes}}{{ArrayMapProperty|{{{ON_constitutes|}}}|ON_constitutes}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}
{{#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}}<!--
+
{{#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

Revision as of 19:13, 28 January 2023

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