Difference between revisions of "Template:Concept"

From Wikispooks
Jump to navigation Jump to search
(fix)
(|saidit)
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
|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]])'', ''([[Property:Has image2]])''
 
|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
|image_credit      = Acknowledgement of the source {{RED|Not yet implemented}}
+
|{{PURPLE|image_credit}}           = URL from which the image is sourced
 
|image_ref        = URL of the source
 
|image_ref        = URL of the source
 
|image_width      = (defaults to "250px")
 
|image_width      = (defaults to "250px")
Line 30: Line 31:
 
|{{PURPLE|historycommons}}        = URL of the concept's [[History commons]] page ''([[Property:Has historycommons]])''
 
|{{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|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|isgp}}    = URL of the concept's [[ISGP]] page ''([[Property:Has isgp]])''
 
|{{PURPLE|linkedin}}    = URL of the concept's [[linkedin]] page ''([[Property:Has linkedin]])''
 
|{{PURPLE|linkedin}}    = URL of the concept's [[linkedin]] page ''([[Property:Has linkedin]])''
Line 35: Line 37:
 
|{{PURPLE|nndb}}    = URL of the concept's [[NNDB]] page ''([[Property:Has nndb]])''
 
|{{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|powerbase}}  = URL of the concept's [[powerbase]] page ''([[Property:Has powerbase]])''
 +
|{{PURPLE|saidit}}  = URL of the concept's [[saidit]] category page ''([[Property:Has saidit]])''
 
|{{PURPLE|sourcewatch}}  = URL of the concept's [[sourcewatch]] page ''([[Property:Has sourcewatch]])''
 
|{{PURPLE|sourcewatch}}  = URL of the concept's [[sourcewatch]] page ''([[Property:Has sourcewatch]])''
 
|{{PURPLE|spartacus}}  = URL of the concept's Spartacus page ''([[Property:Has spartacus]])''
 
|{{PURPLE|spartacus}}  = URL of the concept's Spartacus page ''([[Property:Has spartacus]])''
Line 50: Line 53:
 
''For concepts which are [[whistleblower]]s:''
 
''For concepts which are [[whistleblower]]s:''
 
|{{GREEN|exposed}} = Pagename(s) of what this person exposed ''([[Property:Exposed]])''
 
|{{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}}"}} |}}<!--
</poem></noinclude><includeonly>{{SMWObjectHeader|Concept}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::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::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
Line 59: Line 61:
 
|historycommons = {{{historycommons|}}}
 
|historycommons = {{{historycommons|}}}
 
|imdb =        {{{imdb|}}}
 
|imdb =        {{{imdb|}}}
 +
|infogalactic =        {{{infogalactic|}}}
 
|isgp =        {{{isgp|}}}
 
|isgp =        {{{isgp|}}}
 
|linkedin =    {{{linkedin|}}}
 
|linkedin =    {{{linkedin|}}}
Line 64: Line 67:
 
|nndb =        {{{nndb|}}}
 
|nndb =        {{{nndb|}}}
 
|powerbase =  {{{powerbase|}}}
 
|powerbase =  {{{powerbase|}}}
 +
|saidit = {{{saidit|}}}
 
|sourcewatch = {{{sourcewatch|}}}
 
|sourcewatch = {{{sourcewatch|}}}
 
|spartacus =  {{{spartacus|}}}
 
|spartacus =  {{{spartacus|}}}
Line 70: Line 74:
 
}}{{DisplayAverageRating}}
 
}}{{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|}}}{{#if: {{{image_ref|}}}|<ref>{{{image_ref|}}}</ref>}}
+
| caption  = {{{image_caption|}}}{{#if: {{{image_ref|}}}|<ref>{{{image_ref|}}}</ref>}}{{#if: {{{image_credit|}}}|{{#if: {{{image_caption|}}}|<br/>}}{{{image_credit|}}}}}
 
| image2  = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|ize={{{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|}}}}}

Revision as of 12:06, 10 May 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)
|saidit = URL of the concept's saidit category page (Property:Has saidit)
|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)
}}