Difference between revisions of "Template:Event"

From Wikispooks
Jump to navigation Jump to search
(Has coordinates)
(tidy parameters)
Line 9: Line 9:
 
|{{t|image}}        = an image ''([[Property:Has image]])''
 
|{{t|image}}        = an image ''([[Property:Has image]])''
 
|{{t|image_width}}  = width of this image
 
|{{t|image_width}}  = width of this image
 +
|{{t|image_caption}}  = caption for the image
 +
|{{t|image_alt}}  = alt text for the image
 
|{{t|{{GREEN|type}}}}    = what type of event ''([[Property:Has eventType]])''
 
|{{t|{{GREEN|type}}}}    = what type of event ''([[Property:Has eventType]])''
 
|{{t|glossary}}      = <s>Wikitext</s>Plaintext summary for the glossary (major terms only). ''([[Property:GlossaryDescription]])''
 
|{{t|glossary}}      = <s>Wikitext</s>Plaintext summary for the glossary (major terms only). ''([[Property:GlossaryDescription]])''
Line 44: Line 46:
 
</poem>
 
</poem>
 
Extra parameters from Wikpedia infoboxes:<br/>
 
Extra parameters from Wikpedia infoboxes:<br/>
|title, |image_caption, |place , |map, |map_caption, |map_size, |map_alt, |also known as, |target, |weapons, |motive, |first reporter, |filmed by, |participants, |outcome, |reported deaths, |reported injuries, |reported missing, |reported property damage, |burial , |inquiries, |inquest, |coroner, |suspects, |accused, |convicted, |charges, |verdict, |convictions, |publication bans, |litigation, |awards , |url , |blank_label, |blank_data, |blank1_label, |blank1_data, |blank2_label, |blank2_data, |notes
+
|title, |place , |map, |map_caption, |map_size, |map_alt, |also known as, |target, |weapons, |motive, |first reporter, |filmed by, |participants, |outcome, |reported deaths, |reported injuries, |reported missing, |reported property damage, |burial , |inquiries, |inquest, |coroner, |suspects, |accused, |convicted, |charges, |verdict, |convictions, |publication bans, |litigation, |awards , |url , |blank_label, |blank_data, |blank1_label, |blank1_data, |blank2_label, |blank2_data, |notes
  
 
</noinclude><includeonly>{{SMWObjectHeader|Event}}{{#arraymap:{{{subevents|}}}|,|x|[[Has subEvent::{{FULLPAGENAME}}/x| ]]|&#32;}}{{#arraymap:{{{aspects|}}}|,|x|[[Has aspect::{{FULLPAGENAME}}/x| ]]|&#32;}}{{#if: {{{occurred|}}}|[[Occurred on::{{{occurred}}}| ]]}}{{#if: {{{start|}}}|[[Start::{{{start}}}| ]]}}{{ArrayMapProperty|{{{type|}}}|Has eventType}}{{ArrayMapProperty|{{{type|}}}|Constitutes}}{{#if: {{{glossary|}}}|[[GlossaryDescription::{{{glossary}}}| ]]}}{{#if: {{{end|}}}|[[End::{{{end}}}| ]]}}{{ArrayMapProperty|{{{locations|}}}|Has location}}{{ArrayMapProperty|{{{authority|}}}|Has authority}}{{ArrayMapProperty|{{{plaintiffs|}}}|Has plaintiff}}{{ArrayMapProperty|{{{defendants|}}}|Has defendant}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{ONPropertyPair|has perpetrator|{{{perpetrators|}}}|{{{ON_perpetrators|}}}}}{{ONPropertyPair|has effect|{{{effects|}}}|{{{ON_effects|}}}}}{{ONPropertyPair|has witness|{{{witnesses|}}}|{{{ON_witnesses|}}}}}{{SMWDefaultMarkup}}{{SMWDefaultMarkup/Event}}<!--
 
</noinclude><includeonly>{{SMWObjectHeader|Event}}{{#arraymap:{{{subevents|}}}|,|x|[[Has subEvent::{{FULLPAGENAME}}/x| ]]|&#32;}}{{#arraymap:{{{aspects|}}}|,|x|[[Has aspect::{{FULLPAGENAME}}/x| ]]|&#32;}}{{#if: {{{occurred|}}}|[[Occurred on::{{{occurred}}}| ]]}}{{#if: {{{start|}}}|[[Start::{{{start}}}| ]]}}{{ArrayMapProperty|{{{type|}}}|Has eventType}}{{ArrayMapProperty|{{{type|}}}|Constitutes}}{{#if: {{{glossary|}}}|[[GlossaryDescription::{{{glossary}}}| ]]}}{{#if: {{{end|}}}|[[End::{{{end}}}| ]]}}{{ArrayMapProperty|{{{locations|}}}|Has location}}{{ArrayMapProperty|{{{authority|}}}|Has authority}}{{ArrayMapProperty|{{{plaintiffs|}}}|Has plaintiff}}{{ArrayMapProperty|{{{defendants|}}}|Has defendant}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{ONPropertyPair|has perpetrator|{{{perpetrators|}}}|{{{ON_perpetrators|}}}}}{{ONPropertyPair|has effect|{{{effects|}}}|{{{ON_effects|}}}}}{{ONPropertyPair|has witness|{{{witnesses|}}}|{{{ON_witnesses|}}}}}{{SMWDefaultMarkup}}{{SMWDefaultMarkup/Event}}<!--
Line 81: Line 83:
 
<!-- Wikipedia standard-->
 
<!-- Wikipedia standard-->
 
| title                    ={{#if: {{{timeline|}}}|[[{{{timeline}}}]]: }}{{#if: {{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}
 
| title                    ={{#if: {{{timeline|}}}|[[{{{timeline}}}]]: }}{{#if: {{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}
| image                    ={{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}}|{{{image}}}|{{#if: {{{timeline|}}}|{{#show: {{{timeline|}}} | ?Has image }}|{{#ifeq: {{{type|}}}|legal case|{{#show: {{{authority|}}} | ?Has image }}}}}}}}|size={{#if: {{{image_width|}}}|{{{image_width}}}|{{{image_width|}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
+
| image                    ={{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}}|{{{image}}}|{{#if: {{{timeline|}}}|{{#show: {{{timeline|}}} | ?Has image }}|{{#ifeq: {{{type|}}}|legal case|{{#show: {{{authority|}}} | ?Has image }}}}}}}}|size={{#if: {{{image_width|}}}|{{{image_width}}}|{{{image_width|}}}}}|sizedefault=frameless|alt={{{image_alt|}}}}}
 
| caption                  ={{{caption|}}}
 
| caption                  ={{{caption|}}}
 
| date                    ={{FormatDate|{{{start|}}}|{{{end|}}}|{{{occurred|}}}}}
 
| date                    ={{FormatDate|{{{start|}}}|{{{end|}}}|{{{occurred|}}}}}

Revision as of 11:41, 1 February 2015

Template:TemplateIt takes the following arguments:

{{Event
|description = a short summary description of the event (Property:Description)
|image = an image (Property:Has image)
|image_width = width of this image
|image_caption = caption for the image
|image_alt = alt text for the image
|type = what type of event (Property:Has eventType)
|glossary = WikitextPlaintext summary for the glossary (major terms only). (Property:GlossaryDescription)
|wikipedia = English wikipedia URL for the event (Property:Has wikipediaPage)
|wikipedia_protection = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise (Property:Has wikipediaProtection)
|occurred = when an event occurred (for instantaneous events) (Property:Occurred on)
|start = when the event began, or when it is scheduled to begin (Property:Start)
|end = when the event ended, or when it is scheduled to (if at all) (Property:End)
|video = a URL of a video of the event (Property:Has video)
|coordinates = where the event happened (Property:Has coordinates)
|locations = where the event happened (Property:Has location)
|subevents = component event sub-event (for more complex events) (Property:Has subEvent)
|causes = other directly causes of this event (Property:Has cause)
|constitutes= suitable descriptions of this event (e.g. "Assassination, False Flag, Coup d'état") (Property:Constitutes)
|effects = other events directly caused by this event (Property:Has effect)
|perpetrators = which groups/individuals were responsible for this the event (Property:Has perpetrator)
|witnesses = list of witnesses to the event (Property:Has witness)
For timeline events:
|timeline = name of the timeline to feature this event (e.g. MH17)
 ABOUT THE OFFICIAL NARRATIVE:
|ON_constitutes= suitable descriptions of this event (Property:ON_constitutes)
|ON_causes = other directly causes of this event (Property:ON has cause)
|ON_effects = other events directly caused by this event (Property:ON has effect)
|ON_perpetrators = perpetrators of the event (Property:ON has perpetrator)
|ON_witnesses = list of witnesses to the event (Property:ON has witness)
 FOR LEGAL CASES:
|authority = which authority controls this case (Property:Has authority) (usually singular)
|plaintiffs = who is bringing this case (Property:Has plaintiff)
|defendants = who is defending this case (Property:Has defendant)
 FOR
|fatalities = How many people killed
|injuries = How many people injured
|survivors = How many people survived
|website = URL for the event (Property:Has website)}}

Extra parameters from Wikpedia infoboxes:
|title, |place , |map, |map_caption, |map_size, |map_alt, |also known as, |target, |weapons, |motive, |first reporter, |filmed by, |participants, |outcome, |reported deaths, |reported injuries, |reported missing, |reported property damage, |burial , |inquiries, |inquest, |coroner, |suspects, |accused, |convicted, |charges, |verdict, |convictions, |publication bans, |litigation, |awards , |url , |blank_label, |blank_data, |blank1_label, |blank1_data, |blank2_label, |blank2_data, |notes