Jump to content

Template:Event: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
Add |next, |previous
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 86: Line 86:
|abbreviation, |title, |place , |map, |map_caption, |map_size, |map_alt, |also known as, |target, |weapons, |motive, |first reporter, |filmed by, |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<br/>
|abbreviation, |title, |place , |map, |map_caption, |map_size, |map_alt, |also known as, |target, |weapons, |motive, |first reporter, |filmed by, |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<br/>
}}
}}
</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|}}}}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}{{SMWDefaultMarkup}}{{SMWDefaultMarkup/Event}}{{#ifeq: {{{so_called|}}} | 1 | [[So called::Yes| ]]{{DISPLAYTITLE:"{{PAGENAME}}"}} |}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]][[Has wikipediaPage2::{{{wikipedia}}}| ]]}}<!--[[Has coordinates::{{{coordinates|}}}| ]]
</noinclude><includeonly>{{SMWObjectHeader|Event}}{{#if: {{{occurred|}}}|}}{{#if: {{{start|}}}|}}{{ArrayMapProperty|{{{type|}}}|Has eventType}}{{ArrayMapProperty|{{{type|}}}|Constitutes}}{{#if: {{{glossary|}}}|}}{{#if: {{{end|}}}|}}{{ArrayMapProperty|{{{locations|}}}|Has location}}{{ArrayMapProperty|{{{authority|}}}|Has authority}}{{ArrayMapProperty|{{{plaintiffs|}}}|Has plaintiff}}{{ArrayMapProperty|{{{defendants|}}}|Has defendant}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{#if: {{{image|}}}|}}{{#if: {{{logo|}}}|}}{{#if: {{{key_properties|}}}|}}{{#if: {{{key_property_headers|}}}|}}{{SMWDefaultMarkup}}{{SMWDefaultMarkup/Event}}{{#ifeq: {{{so_called|}}} | 1 | {{DISPLAYTITLE:"{{PAGENAME}}"}} |}}{{#if: {{{wikipedia|}}}|}}<!--
TIMELINE -->{{#arraymap:{{{timelines|}}}|,|x|[[Display at::x/Timeline| ]]|&#32;}}<!--  
TIMELINE --><!--  
Experimental extra SMW.
Experimental extra SMW.
Disabled as of 2022-12-15 since so many events don't have known perpetrators.{{#if: {{{perpetrators|}}}||[[Has perpetrator::{{FULLPAGENAME}}/Perpetrators| ]]}}-->{{Infobox event
Disabled as of 2022-12-15 since so many events don't have known perpetrators.{{#if: {{{perpetrators|}}}||}}-->{{Infobox event
<!-- WS Custom-->
<!-- WS Custom-->
| inspired                  = {{ArrayMapPropertyBulletedListLink‎|{{{inspired|}}}|Has inspired}}
| inspired                  = {{ArrayMapPropertyBulletedListLink‎|{{{inspired|}}}|Has inspired}}
| motto                    = {{ArrayMapPropertyListLink‎|{{{motto|}}}|Has motto}}
| motto                    = {{ArrayMapPropertyListLink‎|{{{motto|}}}|Has motto}}
| interests                = {{ArrayMapPropertyBulletedListLink‎|{{{interests|}}}|Has interest}}
| interests                = {{ArrayMapPropertyBulletedListLink‎|{{{interests|}}}|Has interest}}
| interest_of              = {{#ask: [[Has interest::{{PAGENAME}}]]}}
| interest_of              =  
| video                    = {{#if: {{{video|}}}|[[Has video::{{{video|}}}]]}}
| video                    = {{#if: {{{video|}}}|{{{video|}}}}}
|wikipedia                  = {{#if: {{{wikipedia|}}}|{{{wikipedia}}}|{{{WP|}}}}}
|wikipedia                  = {{#if: {{{wikipedia|}}}|{{{wikipedia}}}|{{{WP|}}}}}
|wikipedia_protection      = {{{wikipedia_protection|}}}
|wikipedia_protection      = {{{wikipedia_protection|}}}
Line 121: Line 121:
or  
or  
2) to eliminate one of them -->
2) to eliminate one of them -->
| causes                  = {{ArrayMapListLink|{{{causes|}}}}} {{#ask: [[-Has cause::{{FULLPAGENAME}}]] | format=list}}
| causes                  = {{ArrayMapListLink|{{{causes|}}}}}  
| effects                  = {{ArrayMapPropertyListLink|{{{effects|}}}|Has effect}}
| effects                  = {{ArrayMapPropertyListLink|{{{effects|}}}|Has effect}}
| advisors                = {{ArrayMapPropertyListLink|{{{advisors|}}}|Has advisor}}
| advisors                = {{ArrayMapPropertyListLink|{{{advisors|}}}|Has advisor}}
Line 137: Line 137:
| ON_sponsors              = {{ArrayMapPropertyListLink|{{{ON_sponsors|}}}|ON has sponsor}}
| ON_sponsors              = {{ArrayMapPropertyListLink|{{{ON_sponsors|}}}|ON has sponsor}}
| ON_witnesses            = {{ArrayMapPropertyListLink|{{{ON_witnesses|}}}|ON has witness}}
| ON_witnesses            = {{ArrayMapPropertyListLink|{{{ON_witnesses|}}}|ON has witness}}
| exposed by              = {{#ask: [[Exposed::{{FULLPAGENAME}}]] | format=list}}
| exposed by              =  
| exposed                  = {{ArrayMapPropertyBulletedListLink‎|{{{exposed|}}}|Exposed}}
| exposed                  = {{ArrayMapPropertyBulletedListLink‎|{{{exposed|}}}|Exposed}}
| image_caption            = {{{image_caption|}}}
| image_caption            = {{{image_caption|}}}
Line 149: Line 149:
| target                  = {{{target|}}}
| target                  = {{{target|}}}
| weapons                  = {{{weapons|}}}
| weapons                  = {{{weapons|}}}
| fatalities              = {{#if: {{{fatalities|}}}|[[Has fatalities::{{{fatalities}}}]]}}
| fatalities              = {{#if: {{{fatalities|}}}|{{{fatalities}}}}}
| injuries                = {{#if: {{{injuries|}}}|[[Has injuries::{{{injuries}}}]]}}
| injuries                = {{#if: {{{injuries|}}}|{{{injuries}}}}}
| survivors                = {{#if: {{{survivors|}}}|[[Has survivors::{{{survivors}}}]]}}
| survivors                = {{#if: {{{survivors|}}}|{{{survivors}}}}}
| motive                  = {{{motive|}}}
| motive                  = {{{motive|}}}
| image2                  = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}} |size={{{map_size|}}} |sizedefault=250px|alt={{{map_alt|}}}}}
| image2                  = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}} |size={{{map_size|}}} |sizedefault=250px|alt={{{map_alt|}}}}}
Line 158: Line 158:
<!-- Wikipedia standard-->
<!-- Wikipedia standard-->
| title                    ={{#if: {{{timeline|}}}|[[{{{timeline}}}]]: }}{{#if: {{{ON_constitutes|}}}|<span class="honorific-prefix" style="font-size: small">"{{ArrayMapListLink|{{{ON_constitutes}}}}}"</span><br />}}{{#if: {{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}{{#if: {{{wikipedia_protection|}}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-padlock-icon.png}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-icon.png}}}}{{#if: {{{constitutes|}}}|({{ArrayMapListLink|{{{constitutes|}}}}})}}
| title                    ={{#if: {{{timeline|}}}|[[{{{timeline}}}]]: }}{{#if: {{{ON_constitutes|}}}|<span class="honorific-prefix" style="font-size: small">"{{ArrayMapListLink|{{{ON_constitutes}}}}}"</span><br />}}{{#if: {{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}{{#if: {{{wikipedia_protection|}}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-padlock-icon.png}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-icon.png}}}}{{#if: {{{constitutes|}}}|({{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|}}}}}
| image                    ={{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}}|{{{image}}}|{{#if: {{{timeline|}}}||{{#ifeq: {{{type|}}}|legal case|}}}}}}|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|}}}}}
Line 194: Line 194:
| website                  ={{{website|}}}
| website                  ={{{website|}}}
| notes                    ={{{notes|}}}
| notes                    ={{{notes|}}}
| description              ={{#if: {{{description|}}}|[[Description::{{{description}}}]]}}
| description              ={{#if: {{{description|}}}|{{{description}}}}}
}}[[Category:Events]]</includeonly>
}}[[Category:Events]]</includeonly>

Latest revision as of 22:34, 24 September 2026

SMWObjects
Semantic Object Templates:        Decade • Place • Timeline • Year • Disambiguation
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 parameters were 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: <poem>

 Template:Event
[[File:an image (Property:Has image)|width of this image|alt=alt text for the image|alt text for the image]]
caption for the image
[[File:Event logo (Property:Has logo) e.g. for a conference - Where multiple logos are possible, use a portrait rather than a landscape format|250px]]
MottoEvent motto/slogan
Descriptiona short summary description of the event (Property:Description)