Difference between revisions of "Template:Concept"

From Wikispooks
Jump to navigation Jump to search
(Remove the code for job images which fails in SMW2.2)
(trim a lone of whitespace?)
(36 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
|glossary          = <s>Wikitext</s>Plaintext summary for the glossary (major terms only). ''([[Property:GlossaryDescription]])''
 
|glossary          = <s>Wikitext</s>Plaintext summary for the glossary (major terms only). ''([[Property:GlossaryDescription]])''
 
|name              = Use if it differs from the PAGENAME
 
|name              = Use if it differs from the PAGENAME
|logo              = Concept logo ''([[Property:Has logo]])''
+
|logo              = Concept logo ''([[Property:Has logo]])'', ''([[Property:Has logo2]])''
 
|logo_alt          = Alt text for the concept logo
 
|logo_alt          = Alt text for the concept logo
 
|logo_caption      =
 
|logo_caption      =
 +
|{{PURPLE|logo_credit}}          = URL from which the logo is sourced
 
|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]])'', ''([[Property:Has image2]])''
 
|image_alt        = Alt text for image
 
|image_alt        = Alt text for image
 
|image_caption    = Image caption
 
|image_caption    = Image caption
 +
|{{PURPLE|image_credit}}          = URL from which the image is sourced
 +
|image_ref        = URL of the source
 
|image_width      = (defaults to "250px")
 
|image_width      = (defaults to "250px")
 
|type              = ''([[Property:Has conceptType]])''
 
|type              = ''([[Property:Has conceptType]])''
 
|{{NAVY|start}}            = When the concept was founded ''([[Property:Start]])''
 
|{{NAVY|start}}            = When the concept was founded ''([[Property:Start]])''
|{{NAVY|end}}              = (Where applicable), when the concept ended ''([[Property:End]])'' (i.e. when a job title becomes obsolete)
+
|{{NAVY|end}}              = (Where applicable), when the concept ended ''([[Property:End]])''{{ExampleNeeded}}
 
|{{PURPLE|wikipedia}}        = URL of the concept's Wikipedia page, if any ''([[Property:Has wikipediaPage]])''
 
|{{PURPLE|wikipedia}}        = URL of the concept'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}}= suitable descriptions of this event (e.g. "Assassination, False Flag, Coup d'état") ''([[Property:Constitutes]])''
+
|{{PURPLE|cspan}}    = URL of the concept's [[C-SPAN]] page ''([[Property:Has cspan]])''
 +
|{{PURPLE|facebook}}    = URL of the concept's [[facebook]] page ''([[Property:Has facebook]])''
 +
|{{PURPLE|historycommons}}        = URL of the concept's [[History commons]] page ''([[Property:Has historycommons]])''
 +
|{{PURPLE|imdb}}    = URL of the concept's [[IMDB]] page ''([[Property:Has imdb]])''
 +
|{{PURPLE|infogalactic}}        = URL of the concept's [[Infogalactic]] page ''([[Property:Has infogalactic]])''
 +
|{{PURPLE|isgp}}    = URL of the concept's [[ISGP]] page ''([[Property:Has isgp]])''
 +
|{{PURPLE|linkedin}}    = URL of the concept's [[linkedin]] page ''([[Property:Has linkedin]])''
 +
|{{PURPLE|namebase}}    = URL of the concept's [[namebase]] page ''([[Property:Has namebase]])''
 +
|{{PURPLE|nndb}}    = URL of the concept's [[NNDB]] page ''([[Property:Has nndb]])''
 +
|{{PURPLE|powerbase}}  = URL of the concept's [[powerbase]] page ''([[Property:Has powerbase]])''
 +
|{{PURPLE|sourcewatch}}  = URL of the concept's [[sourcewatch]] page ''([[Property:Has sourcewatch]])''
 +
|{{PURPLE|spartacus}}  = URL of the concept's Spartacus page ''([[Property:Has spartacus]])''
 +
|{{GREEN|constitutes}}= suitable descriptions of this concept ''([[Property:Constitutes]])''
 
|{{PURPLE|website}}      = A URL of ''particular'' relevance to the concept, ''([[Property:Has website]])''
 
|{{PURPLE|website}}      = A URL of ''particular'' relevance to the concept, ''([[Property:Has website]])''
|{{GREEN|founders}}= Comma separated list of founders ''([[Property:Has founder]])''
+
|{{GREEN|founders}}= Comma separated list of founders ''([[Property:Has founder]])''
 +
|{{GREEN|predecessors}}  = Which concept(s) this one replaces/ was developed from
 +
|{{GREEN|successors}} = If obsolete, which concept(s) this was replaced by
 
|{{VIOLET|key_properties}}= Slash separated list of important properties of this page ''([[Property:Has keyProperties]])''
 
|{{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]])''
 
|{{VIOLET|key_property_headers}}= Slash separated list of property descriptions (same length as the above) ''([[Property:Has keyPropertyHeaders]])''
 
|abbreviation      = Concept abbreviation
 
|abbreviation      = Concept abbreviation
''For type=job only:''
+
|{{ORANGE|so_called}} = Set to 1 to illustrate concern about the language, 0 or empty otherwise ''([[Property:So called]])'' - For flagging up deceitful language such as the "[[War on Terror]]"
|{{GREEN|deputies}}= Pagename of the job(s) of the deputy to this job ''([[Property:Has deputy]])''
 
 
  ABOUT THE OFFICIAL NARRATIVE:
 
  ABOUT THE OFFICIAL NARRATIVE:
 
|{{GREEN|ON_constitutes}}= suitable descriptions of this event ''([[Property:ON_constitutes]])''
 
|{{GREEN|ON_constitutes}}= suitable descriptions of this event ''([[Property:ON_constitutes]])''
}}
+
''For concepts which are [[whistleblower]]s:''
</poem></noinclude><includeonly>{{SMWObjectHeader|Concept}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]]}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{Description|{{{description|}}}}}[[Start::{{{start|}}}| ]][[End::{{{end|}}}| ]]{{#if: {{{glossary|}}}|[[GlossaryDescription::{{{glossary}}}| ]]}}{{#if: {{{type|}}}|[[Has conceptType::{{{type}}}| ]]}}{{#if: {{{image|}}}|[[Has image::Image:{{{image}}}| ]]}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}{{SMWDefaultMarkup}}{{ArrayMapProperty|{{{founders|}}}|Has founder}}{{ArrayMapProperty|{{{deputies|}}}|Has deputy}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}<!--
+
|{{GREEN|exposed}} = Pagename(s) of what this person exposed ''([[Property:Exposed]])''
 +
}}</poem></noinclude><includeonly>{{SMWObjectHeader|Concept}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}[[Start::{{{start|}}}| ]][[End::{{{end|}}}| ]]{{#if: {{{glossary|}}}|{{Invisible|[[GlossaryDescription::{{{glossary}}}]]}}}}{{#if: {{{type|}}}|[[Has conceptType::{{{type}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage2::{{{wikipedia}}}| ]]}}{{#if: {{{WP|}}}|[[Has wikipediaPage2::{{{WP}}}| ]]}}{{SMWDefaultMarkup}}{{ArrayMapProperty|{{{founders|}}}|Has founder}}{{ArrayMapProperty|{{{deputies|}}}|Has deputy}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}{{#ifeq: {{{so_called|}}} | 1 | [[So called::Yes| ]]{{DISPLAYTITLE:"{{PAGENAME}}"}} |}}<!--
 
Wikipedia Display template
 
Wikipedia Display template
 
-->{{Infobox
 
-->{{Infobox
| title   = {{#ifeq: {{{name|}}}|{{PAGENAME}}|{{{name|}}}}}{{#if: {{{glossary|}}}| [[image:Glossary.png|link=WikiSpooks:Glossary|32px]]}}{{#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}}}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}{{External icons
 +
|cspan =      {{{cspan|}}}
 +
|facebook =    {{{facebook|}}}
 +
|historycommons = {{{historycommons|}}}
 +
|imdb =        {{{imdb|}}}
 +
|infogalactic =        {{{infogalactic|}}}
 +
|isgp =        {{{isgp|}}}
 +
|linkedin =    {{{linkedin|}}}
 +
|namebase =    {{{namebase|}}}
 +
|nndb =        {{{nndb|}}}
 +
|powerbase =  {{{powerbase|}}}
 +
|sourcewatch = {{{sourcewatch|}}}
 +
|spartacus =  {{{spartacus|}}}
 +
|twitter =    {{{twitter|}}}
 +
|youtube =    {{{youtube|}}}
 +
}}{{DisplayAverageRating}}
 
| 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|}}}{{#if: {{{image_ref|}}}|<ref>{{{image_ref|}}}</ref>}}{{#if: {{{image_credit|}}}|{{#if: {{{image_caption|}}}|<br/>}}{{{image_credit|}}}}}
| image2  = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{logo|}}}|{{{logo}}}|size={{{logo_width|}}}|sizedefault=250px|alt={{{logo_alt|}}}}}
+
| image2  = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|ize={{{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
+
<!-- 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|}}}}}}}-->
 
{{#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|}}}{{#if: {{{logo_credit|}}}|{{#if: {{{logo_caption|}}}|<br/>}}{{{logo_caption|}}}}}
 
| label1  = Type
 
| label1  = Type
 
| data1    = {{ArrayMapListLink|{{{type|}}}}}
 
| data1    = {{ArrayMapListLink|{{{type|}}}}}
 
| label2  = Start
 
| label2  = Start
| data2    = {{{start|}}}
+
| data2    = {{LinkYear|{{{start|}}}}}
 
| label3  = Founder(s)
 
| label3  = Founder(s)
 
| data3    = {{ArrayMapListLink|{{{founders|}}}}}
 
| data3    = {{ArrayMapListLink|{{{founders|}}}}}
Line 58: Line 90:
 
| data6    = {{ArrayMapListLink|{{{abbreviation|}}}}}
 
| data6    = {{ArrayMapListLink|{{{abbreviation|}}}}}
 
| label7  = Interest&nbsp;of
 
| label7  = Interest&nbsp;of
| data7    = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}}
+
| data7    = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]|limit=200}}}}
 
| label8  = Website
 
| label8  = Website
 
| data8    = {{{Website|}}}
 
| data8    = {{{Website|}}}
| label9   = [[Wikipedia]]&nbsp;page
+
| label10  = Predecessor(s)
| data9    = {{WikipediaLink|{{{wikipedia|}}}|{{{wikipedia_protection|}}}}}
+
| data10   = {{ArrayMapBulletedListLink‎|{{{predecessors|}}}}}
| label10 = Subpage(s)
+
| label11  = Successor(s)
| data10   = {{SubpageList}}
+
| data11  = {{ArrayMapBulletedListLink‎|{{{successors|}}}}}
 +
| label16  = End
 +
| data16  = {{LinkYear|{{{End|}}}}}
 +
| label20 = Subpage(s)
 +
| data20   = {{SubpageList}}
 +
| label22  = Exposed
 +
| data22  = {{ArrayMapPropertyBulletedListLink‎|{{{exposed|}}}|Exposed}}
 +
| below    = {{{description|}}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:26, 21 January 2020

SMWObjects
Semantic Object Templates:        DecadePlaceTimelineYearDisambiguation
ConceptDocumentEmploymentEventGroupPersonPublicationWebsite

This template is an object for pages about ideas which don't fit other categories.

It should be included at the top of all such pages.

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 concept for a list of pages that use this template.

Usage: All sections are optional.

{{Concept
|description = <500 word plaintext summary (Property:Description)
|glossary = WikitextPlaintext summary for the glossary (major terms only). (Property:GlossaryDescription)
|name = Use if it differs from the PAGENAME
|logo = Concept logo (Property:Has logo), (Property:Has logo2)
|logo_alt = Alt text for the concept logo
|logo_caption =
|logo_credit = URL from which the logo is sourced
|logo_width = (defaults to "250px")
|image = Image for use in the infobox (Property:Has image), (Property:Has image2)
|image_alt = Alt text for image
|image_caption = Image caption
|image_credit = URL from which the image is sourced
|image_ref = URL of the source
|image_width = (defaults to "250px")
|type = (Property:Has conceptType)
|start = When the concept was founded (Property:Start)
|end = (Where applicable), when the concept ended (Property:End)[Example Needed]
|wikipedia = URL of the concept'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)
|cspan = URL of the concept's C-SPAN page (Property:Has cspan)
|facebook = URL of the concept's facebook page (Property:Has facebook)
|historycommons = URL of the concept's History commons page (Property:Has historycommons)
|imdb = URL of the concept's IMDB page (Property:Has imdb)
|infogalactic = URL of the concept's Infogalactic page (Property:Has infogalactic)
|isgp = URL of the concept's ISGP page (Property:Has isgp)
|linkedin = URL of the concept's linkedin page (Property:Has linkedin)
|namebase = URL of the concept's namebase page (Property:Has namebase)
|nndb = URL of the concept's NNDB page (Property:Has nndb)
|powerbase = URL of the concept's powerbase page (Property:Has powerbase)
|sourcewatch = URL of the concept's sourcewatch page (Property:Has sourcewatch)
|spartacus = URL of the concept's Spartacus page (Property:Has spartacus)
|constitutes= suitable descriptions of this concept (Property:Constitutes)
|website = A URL of particular relevance to the concept, (Property:Has website)
|founders= Comma separated list of founders (Property:Has founder)
|predecessors = Which concept(s) this one replaces/ was developed from
|successors = If obsolete, which concept(s) this was replaced by
|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)
|abbreviation = Concept abbreviation
|so_called = Set to 1 to illustrate concern about the language, 0 or empty otherwise (Property:So called) - For flagging up deceitful language such as the "War on Terror"
 ABOUT THE OFFICIAL NARRATIVE:
|ON_constitutes= suitable descriptions of this event (Property:ON_constitutes)
For concepts which are whistleblowers:
|exposed = Pagename(s) of what this person exposed (Property:Exposed)
}}