Difference between revisions of "Template:Event"
(Fix image and image2) |
(Fix) |
||
Line 1: | Line 1: | ||
<noinclude>{{WStemplate | <noinclude>{{WStemplate | ||
|categories=Object Templates | |categories=Object Templates | ||
− | |summary=This template provides a standard format for | + | |summary=This template provides a standard format for event pages. |
− | + | |object=event | |
− | |object= | + | }}It takes the following arguments: |
− | }} | ||
− | |||
− | |||
<poem> | <poem> | ||
− | {{ | + | {{{{t|Event}} |
− | |description | + | |{{t|description}} = a short summary description of the event ''([[Property:Description]])'' |
− | | | + | |{{t|{{PURPLE|website}}}} = Official URL for the event ''([[Property:Has website]])'' |
− | | | + | |{{t|image}} = an image ''([[Property:Has 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|glossary}} = <s>Wikitext</s>Plaintext summary for the glossary (major terms only). ''([[Property:GlossaryDescription]])'' |
− | + | |{{t|{{PURPLE|wikipedia}}}} = English wikipedia URL for the event ''([[Property:Has wikipediaPage]])'' | |
− | |{{ | + | |{{t|wikipedia_protection}} = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])'' |
− | |{{NAVY|start}} | + | |{{t|occurred}} = when an event occurred (for instantaneous events) ''([[Property:Occurred on]])'' |
− | |{{NAVY|end}} | + | |{{t|{{NAVY|start}}}} = when the event began, or is scheduled to begin ''([[Property:Start]])'' |
− | |{{ | + | |{{t|{{NAVY|end}}}} = when the event ended, or is scheduled to (if at all) ''([[Property:End]])'' |
− | |{{ | + | |{{t|{{PURPLE|video}}}} = a URL of a video of the event ''([[Property:Has video]])'' |
− | |{{ | + | |{{t|{{PINK|coordinates}}}} = where the event happened ''([[Property:Has coordinates]])'' |
− | |{{ | + | |{{t|{{GREEN|locations}}}} = where the event happened ''([[Property:Has location]])'' |
− | | | + | <s>|{{t|{{GREEN|subevents}}}} = component event sub-event (for more complex events) ''([[Property:Has subEvent]])''</s> |
− | |{{ | + | <s>|{{t|{{GREEN|causes}}}} = other directly causes of this event ''([[Property:Has cause]])''</s> |
− | | | + | |{{t|{{GREEN|constitutes}}}}= suitable descriptions of this event (e.g. "Assassination, False Flag, Coup d'état") ([[Property:Constitutes]]) |
− | |{{GREEN| | + | |{{t|{{GREEN|effects}}}} = other events directly caused by this event ''([[Property:Has effect]])'' |
− | |{{GREEN| | + | |{{t|{{GREEN|perpetrators}}}} = which groups/individuals were responsible for this the event ''([[Property:Has perpetrator]])'' |
− | |{{GREEN| | + | |{{t|{{GREEN|witnesses}}}} = list of witnesses to the event ''([[Property:Has witness]])'' |
− | |{{ | + | ''For [[timeline]] events:'' |
− | |{{ | + | |{{t|timeline}} = name of the timeline to feature this event (e.g. MH17) |
− | <s>|{{ | + | ABOUT THE OFFICIAL NARRATIVE: |
− | |{{GREEN| | + | |{{t|{{GREEN|ON_constitutes}}}}= suitable descriptions of this event ''([[Property:ON_constitutes]])'' |
− | |{{GREEN| | + | <s>|{{t|{{GREEN|ON_causes}}}} = other directly causes of this event ''([[Property:ON has cause]])''</s> |
− | |{{GREEN| | + | |{{t|{{GREEN|ON_effects}}}} = other events directly caused by this event ''([[Property:ON has effect]])'' |
− | | | + | |{{t|{{GREEN|ON_perpetrators}}}} = perpetrators of the event ''([[Property:ON has perpetrator]])'' |
− | | | + | |{{t|{{GREEN|ON_witnesses}}}} = list of witnesses to the event ''([[Property:ON has witness]])'' |
− | | | + | FOR LEGAL CASES: |
− | | | + | |{{t|{{GREEN|authority}}}} = which authority controls this case ''([[Property:Has authority]])'' (usually singular) |
− | | | + | |{{t|{{GREEN|plaintiffs}}}} = who is bringing this case ''([[Property:Has plaintiff]])'' |
− | |{{BROWN| | + | |{{t|{{GREEN|defendants}}}} = who is defending this case ''([[Property:Has defendant]])'' |
− | |{{BROWN| | + | FOR ATTACKS |
− | + | |{{t|{{BROWN|fatalities}}}} = How many people killed | |
− | + | |{{t|{{BROWN|injuries}}}} = How many people injured | |
− | | | + | |{{t|{{BROWN|survivors}}}} = How many people survived |
+ | </poem> | ||
+ | Extra parameters from Wikpedia infoboxes:<br/> | ||
+ | |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}}{{#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|}}}}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{SMWDefaultMarkup}}{{SMWDefaultMarkup/Event}}<!-- | |
− | + | {{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}[[Has coordinates::{{{coordinates|}}}| ]]<!-- | |
− | + | TIMELINE -->{{#if: {{{timeline|}}}|[[category:{{{timeline|}}} timeline event]]}}<!-- | |
− | + | Experimental extra SMW-->{{#if: {{{perpetrators|}}}||[[Has perpetrator::{{FULLPAGENAME}}/Perpetrators| ]]}}{{Infobox event | |
− | </noinclude><includeonly>{{SMWObjectHeader| | + | <!-- WS Custom--> |
− | + | | video = {{#if: {{{video|}}}|[[Has video::{{{video|}}}]]}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | <!-- | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
| wikipedia = {{{wikipedia|}}} | | wikipedia = {{{wikipedia|}}} | ||
| wikipedia_protection = {{{wikipedia_protection|}}} | | wikipedia_protection = {{{wikipedia_protection|}}} | ||
− | | | + | | authority = {{ArrayMapListLink|{{{authority|}}}}} |
− | | | + | | defendants = {{ArrayMapListLink|{{{defendants|}}}}} |
− | }}</includeonly> | + | | plaintiffs = {{ArrayMapListLink|{{{plaintiffs|}}}}} |
+ | <!-- Actually we either need: | ||
+ | 1) a template top seemlessly merge these two | ||
+ | or | ||
+ | 2) to eliminate one of them --> | ||
+ | | causes ={{ArrayMapListLink|{{{causes|}}}}} {{#ask: [[-Has cause::{{FULLPAGENAME}}]] | format=list}} | ||
+ | | effects ={{ArrayMapListLink|{{{effects|}}}}} | ||
+ | | perpetrators ={{ArrayMapListLink|{{{perpetrators|}}}}} | ||
+ | | witnesses ={{ArrayMapListLink|{{{witnesses|}}}}} | ||
+ | | ON_effects ={{ArrayMapListLink|{{{ON_effects|}}}}} | ||
+ | | ON_perpetrators ={{ArrayMapListLink|{{{ON_perpetrators|}}}}} | ||
+ | | ON_witnesses ={{ArrayMapListLink|{{{ON_witnesses|}}}}} | ||
+ | | exposed by = {{#ask: [[Exposed::{{FULLPAGENAME}}]] | format=list}} | ||
+ | | image_caption = {{{image_caption|}}} | ||
+ | <!-- From "Infobox_civilian_attack" --> | ||
+ | | type = {{ArrayMapBulletedListLink|{{{type|}}}}} | ||
+ | | target = {{{target|}}} | ||
+ | | weapons = {{{weapons|}}} | ||
+ | | fatalities = {{{fatalities|}}} | ||
+ | | survivors = {{{survivors|}}} | ||
+ | | injuries = {{{injuries|}}} | ||
+ | | motive = {{{motive|}}} | ||
+ | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=250px|alt={{{map_alt|}}}}} | ||
+ | | caption2 = {{{map_caption|}}} | ||
+ | <!-- Wikipedia standard--> | ||
+ | | 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={{{image_alt|}}}}} | ||
+ | | caption ={{{caption|}}} | ||
+ | | date ={{FormatDate|{{{start|}}}|{{{end|}}}|{{{occurred|}}}}} | ||
+ | | time = | ||
+ | | place ={{ArrayMapListLink|{{{locations|}}}}} | ||
+ | | coordinates ={{{coordinates|}}}<!-- {{coord|LAT|LON|region:XXXX_type:event|display=inline,title}} --> | ||
+ | | also known as ={{{also known as|}}} | ||
+ | | first reporter ={{{first reporter|}}} | ||
+ | | filmed by ={{{filmed by|}}} | ||
+ | | participants ={{{participants|}}} | ||
+ | | outcome ={{{outcome|}}} | ||
+ | | reported deaths ={{{reported deaths|}}} | ||
+ | | reported injuries ={{{reported injuries|}}} | ||
+ | | reported missing ={{{reported missing|}}} | ||
+ | | reported property damage ={{{reported property damage|}}} | ||
+ | | burial ={{{burial|}}} | ||
+ | | inquiries ={{{inquiries|}}} | ||
+ | | inquest ={{{inquest|}}} | ||
+ | | coroner ={{{coroner|}}} | ||
+ | | suspects ={{{suspects|}}} | ||
+ | | accused ={{{accused|}}} | ||
+ | | convicted ={{{convicted|}}} | ||
+ | | charges ={{{charges|}}} | ||
+ | | verdict ={{{verdict|}}} | ||
+ | | convictions ={{{convictions|}}} | ||
+ | | publication bans ={{{publication bans|}}} | ||
+ | | litigation ={{{litigation|}}} | ||
+ | | awards ={{{awards|}}} | ||
+ | | url ={{{url|}}} | ||
+ | | blank_label ={{{blank_label|}}} | ||
+ | | blank_data ={{{blank_data|}}} | ||
+ | | blank1_label ={{{blank1_label|}}} | ||
+ | | blank1_data ={{{blank1_data|}}} | ||
+ | | blank2_label ={{{blank2_label|}}} | ||
+ | | blank2_data ={{{blank2_data|}}} | ||
+ | | website ={{{website|}}} | ||
+ | | notes ={{{notes|}}} | ||
+ | }}{{Description|{{{description|}}}}}[[Category:Events]]</includeonly> |
Revision as of 17:39, 23 June 2015
Concept • Document • Employment • Event • Group • Person • Publication • Website |
This template provides a standard format for event 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 parameterswere formerly available, but have been upgraded. Some may still work, but do not use these.
See event for a list of pages that use this template.
It takes the following arguments:
{{Event
|description = a short summary description of the event (Property:Description)
|website = Official URL for the event (Property:Has website)
|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 is scheduled to begin (Property:Start)
|end = when the event ended, or 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 ATTACKS
|fatalities = How many people killed
|injuries = How many people injured
|survivors = How many people survived
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
}}