Difference between revisions of "Template:Infobox event/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Jolly Janner
(+location map)
imported>Frietjes
m
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
  
 
| titleclass = summary
 
| titleclass = summary
| title      = {{ifempty | {{{event|}}} | {{{title|}}} | {{{name|}}} | {{{Event_Name|}}} | <includeonly>{{PAGENAME}}</includeonly> }}
+
| title      = {{if empty | {{{event|}}} | {{{title|}}} | {{{name|}}} | {{{Event_Name|}}} | <includeonly>{{PAGENAMEBASE}}</includeonly> }}
  
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{{image_name|{{{Image_Name|}}}}}}}}|size={{{image_size|{{{Imagesize|}}}}}}|sizedefault=frameless|upright=1.1|thumbtime={{{thumbtime|{{{Thumb_Time|}}}}}}|alt={{{alt|{{{image_alt|{{{Image_Alt|}}}}}}}}}}}
+
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{{image_name|{{{Image_Name|}}}}}}}}|size={{{image_size|{{{Imagesize|}}}}}}|sizedefault=frameless|upright={{{image_upright|1.1}}}|thumbtime={{{thumbtime|{{{Thumb_Time|}}}}}}|alt={{{alt|{{{image_alt|{{{Image_Alt|}}}}}}}}}}}
  
 
| caption  = {{{caption|{{{Image_Caption|}}} }}}
 
| caption  = {{{caption|{{{Image_Caption|}}} }}}
Line 36: Line 36:
 
| label7  = Location
 
| label7  = Location
 
| class7  = location
 
| class7  = location
|  data7  = {{ifempty| {{{place|}}} | {{{Location|}}} | {{{location|}}} }}
+
|  data7  = {{if empty| {{{place|}}} | {{{Location|}}} | {{{location|}}} }}
  
 
| label8  = [[Geographic coordinate system|Coordinates]]
 
| label8  = [[Geographic coordinate system|Coordinates]]
Line 42: Line 42:
  
 
| label9  = Also known as
 
| label9  = Also known as
|  data9  = {{ifempty| {{{also known as|}}} | {{{also_known_as|}}} | {{{AKA|}}} | {{{aka|}}} }}
+
|  data9  = {{if empty| {{{also known as|}}} | {{{also_known_as|}}} | {{{AKA|}}} | {{{aka|}}} }}
  
 
| label10 = Type
 
| label10 = Type
Line 83: Line 83:
  
 
| label24 = Deaths
 
| label24 = Deaths
|  data24 = {{ifempty| {{{reported deaths|}}} | {{{reported death(s)|}}} | {{{Deaths|}}} | {{{deaths|}}} |  {{{fatalities|}}} }}
+
|  data24 = {{if empty| {{{reported deaths|}}} | {{{reported death(s)|}}} | {{{Deaths|}}} | {{{deaths|}}} |  {{{fatalities|}}} }}
  
 
| label25 = Non-fatal injuries
 
| label25 = Non-fatal injuries
Line 92: Line 92:
  
 
| label27 = Property damage
 
| label27 = Property damage
|  data27 = {{ifempty|  {{{reported property damage|}}} | {{{property damage|}}} | {{{property_damage|}}} }}
+
|  data27 = {{if empty|  {{{reported property damage|}}} | {{{property damage|}}} | {{{property_damage|}}} }}
  
 
| label28 = Burial
 
| label28 = Burial
Line 160: Line 160:
 
| below = {{{notes|}}}
 
| below = {{{notes|}}}
  
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox event with unknown parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox event with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=y|preview=Page using [[Template:Infobox event]] with unknown parameter "_VALUE_"
| AKA| Date| Deaths| English_name| Event_Name| Image_Alt| Image_Caption| Image_Name| Imagesize| Location| Participants| Result| Thumb_Time| URL| accused| aka| also known as| also_known_as| alt| arrests| awards| blank1_data| blank1_label| blank2_data| blank2_label| blank_data| blank_label| budget| burial| caption| casualties1| casualties2| casualties3| cause| charges| convicted| convictions| coordinates| coroner| date| deaths| duration| english_name| event| fatalities| filmed by| filmed_by| first reporter| first_reporter| footage| image| image_alt| image_name| image_size| injuries| inquest| inquiries| litigation| location| missing| name| native_name| native_name_lang| nongregorian| notes| organisers| organizers| outcome| participants| partof| patron| patrons| place| property damage| property_damage| publication bans| publication_bans| reported death(s)| reported deaths| reported injuries| reported missing| reported property damage|reporter| result|sentence| suspects| susperps| theme| thumbtime| time| title|trial| type| url| venue| verdict| website }}{{#if:{{{blank_data|}}}{{{blank1_data|}}}{{{blank2_data|}}}|[[Category:Pages using infobox event with blank parameters]]}}<noinclude>
+
| accused | AKA | aka | also known as | also_known_as | alt | arrests | awards | blank_data | blank_label | blank1_data | blank1_label | blank2_data | blank2_label | budget | burial | caption | casualties1 | casualties2 | casualties3 | cause | charges | convicted | convictions | coordinates | coroner | Date | date | Deaths | deaths | duration | english_name | English_name | event | Event_Name | fatalities | filmed by | filmed_by | first reporter | first_reporter | footage | image | Image_Alt | image_alt | Image_Caption | Image_Name | image_name | image_size | Imagesize | image_upright | injuries | inquest | inquiries | litigation | Location | location | map | map_alt | map_caption | map_size | missing | name | native_name | native_name_lang | nongregorian | notes | organisers | organizers | outcome | Participants | participants | partof | patron | patrons | place | property damage | property_damage | publication bans | publication_bans | reported death(s) | reported deaths | reported injuries | reported missing | reported property damage | reporter | Result | result | sentence | suspects | susperps | theme | Thumb_Time | thumbtime | time | title | trial | type | url | URL | venue | verdict | website }}{{#if:{{{blank_data|}}}{{{blank1_data|}}}{{{blank2_data|}}}|[[Category:Pages using infobox event with blank parameters]]}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- please add category links to the /doc sub-page, not here -->
 
<!-- please add category links to the /doc sub-page, not here -->
 
</noinclude>
 
</noinclude>

Latest revision as of 12:32, 11 October 2019

Script error: No such module "If empty".
LocationScript error: No such module "If empty".
Also known asScript error: No such module "If empty".
DeathsScript error: No such module "If empty".
Property damageScript error: No such module "If empty".
Template documentation[view] [edit] [history] [purge]

{{Infobox event}} should be used to specify one-off events, usually at the top of an article. For recurring events, use {{Infobox recurring event}}.

Usage

Template:Parameter names example

{{Infobox event
| title                    = <!-- Title to display, if other than page name -->
| image                    = 
| image_upright            = 
| image_alt                = 
| caption                  = 
| native_name              = 
| native_name_lang         = 
| english_name             = 
| time                     = 
| timezone                 = 
| duration                 = <!-- {{duration|h=x|m=x|s=x}} or {{time interval|date1|date2|options}} -->
| date                     = <!-- {{start date|YYYY|MM|DD}} or {{start and end dates|YYYY|MM|DD|YYYY|MM|DD}} -->
| venue                    = 
| location                 = 
| coordinates              = <!-- {{coord|LAT|LON|region:XXXX_type:event|display=inline,title}} -->
| also_known_as            = 
| type                     = 
| theme                    = 
| cause                    = 
| motive                   = 
| target                   = 
| first_reporter           = 
| budget                   = 
| patron                   = <!-- or |patrons= -->
| organisers               = <!-- or |organizers= -->
| filmed_by                = 
| participants             = 
| outcome                  = 
| casualties1              = 
| casualties2              = 
| casualties3              = 
| reported deaths          = 
| reported injuries        = 
| reported missing         = 
| reported property damage = 
| burial                   = 
| displaced                = 
| inquiries                = 
| inquest                  = 
| coroner                  = 
| arrests                  = 
| suspects                 = 
| accused                  = 
| convicted                = 
| charges                  = 
| trial                    = 
| verdict                  = 
| convictions              = 
| sentence                 = 
| publication_bans         = 
| litigation               = 
| awards                   = 
| url                      = 
| blank_label              = <!-- or |blank_data= -->
| blank1_label             = <!-- or |blank1_data= -->
| blank2_label             = <!-- or |blank2_data= -->
| website                  = <!-- {{URL|example.com}} -->
| notes                    = 
}}

Parameters

  • |title= - name of the event, if omitted, the page name will be used
  • |child= - set to "yes" if you are embedding this infobox in another one
  • |image= - name of the image of the event
  • |image_size= - image size in pixels – deprecated; use image_upright instead
  • |image_upright= - image scaling factor; defaults to 1 if left empty – see WP:IMGSIZE
  • |image_alt= -
  • |caption= - optional caption of the image
  • |native_name= - the native name of the event, if different
  • |native_name_lang= - ISO 639-2 code for the native name e.g. 'fr' for French.
  • |english_name= -
  • |time= -
  • |timezone= -
  • |duration= -
  • |date= - {{start date|YYYY|MM|DD}} for the date of a single-day event or {{start and end dates|YYYY|MM|DD|YYYY|MM|DD}} for multi-day events
  • |venue= - name of the particular venue (alternative to location)
  • |location= - the location of the event
  • |coordinates= - Use {{Coord}}, with display=inline,title (ex: {{coord|LAT|LON|region:XXXX_type:event|display=inline,title}})
  • |also_known_as= -
  • |type= -
  • |theme= -
  • |cause= -
  • |motive= -
  • |target= -
  • |first_reporter= -
  • |budget= - the larger of budgeted income or expense
  • |patron= or |patrons= - patronage
  • |organisers= or |organizers= - organised by
  • |filmed_by= -
  • |participants= - the typical number of participants
  • |outcome= -
  • |casualties1= -
  • |casualties2= -
  • |casualties3= -
  • |reported deaths= -
  • |reported injuries= -
  • |reported missing= -
  • |reported property damage= -
  • |burial= -
  • |displaced= - people forced to leave home
  • |inquiries= -
  • |inquest= -
  • |coroner= -
  • |arrests= -
  • |suspects= -
  • |accused= -
  • |convicted= -
  • |charges= -
  • |trial= -
  • |verdict= -
  • |convictions= -
  • |sentence= -
  • |publication_bans= -
  • |litigation= -
  • |awards= -
  • |url= -
  • |blank_label= or |blank_data= -
  • |blank1_label= or |blank1_data= -
  • |blank2_label= or |blank2_data= -
  • |website= - Use {{URL}} (ex: {{URL|example.com}})
  • |notes= -

Example

Script error: No such module "If empty".
Bombay-Docks-aftermath1.png
Smoke billowing out of the harbour
Date14 April 1944
Time16:15 IST (10:45 UTC)
LocationScript error: No such module "If empty".
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Also known asScript error: No such module "If empty".
Causeship fire
Casualties
800+ dead
3,000 injured
DeathsScript error: No such module "If empty".
Property damageScript error: No such module "If empty".
FootageTemplate:URL
WebsiteTemplate:URL
{{Infobox event
| title       = Bombay explosion
| image       = Bombay-Docks-aftermath1.png
| caption     = Smoke billowing out of the harbour
| date        = 14 April 1944
| time        = 16:15 IST (10:45 UTC)
| place       = Victoria Dock, Bombay, [[British Raj|British India]]
| coordinates = {{coord|18.9527772|N|72.8449774|E|type:event_region:IN|display=inline,title}}
| cause       = ship fire
| url         = {{URL|example.com}}
| casualties1 = 800+ dead
| casualties2 = 3,000 injured
| website     = {{URL|example.com}}
}}

Microformat

Template:UF-hcal

Tracking categories

See also