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

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(sync with live)
imported>JJMC89
(edit request)
Line 1: Line 1:
 
{{infobox
 
{{infobox
| bodystyle  = {{#if:{{{WidthInEms|}}}|width: {{{WidthInEms}}}em}}
 
 
| bodyclass  = {{#if:{{{nongregorian|}}}||vevent}}
 
| bodyclass  = {{#if:{{{nongregorian|}}}||vevent}}
| subheader1 = {{#if:{{{partof|}}}|Part of {{{partof|}}}}}
+
| subheader  = {{#if:{{{partof|}}}|Part of {{{partof|}}}}}
| abovestyle = {{#if: {{{Backgroundcolor|}}} | background-color: #{{{Backgroundcolor|f8eaba}}} }}
 
| aboveclass = summary
 
  
 
| titleclass = summary
 
| titleclass = summary
| title      = {{#if:{{{event|}}}
+
| title      = {{ifempty | {{{event|}}} | {{{title|}}} | {{{name|}}} | {{{Event_Name|}}} | <includeonly>{{PAGENAME}}</includeonly> }}
  | {{{event}}}
 
  | {{#if:{{{title|}}}
 
    | {{{title}}}
 
    | {{{name|{{{Event_Name|<includeonly>{{PAGENAME}}</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=1.1|thumbtime={{{thumbtime|{{{Thumb_Time|}}}}}}|alt={{{alt|{{{image_alt|{{{Image_Alt|}}}}}}}}}}}
Line 19: Line 10:
 
| caption  = {{{caption|{{{Image_Caption|}}} }}}
 
| caption  = {{{caption|{{{Image_Caption|}}} }}}
 
| imagestyle = {{#if:{{{caption|{{{Image_Caption|}}} }}}|border-bottom:#aaa solid 1px}}
 
| imagestyle = {{#if:{{{caption|{{{Image_Caption|}}} }}}|border-bottom:#aaa solid 1px}}
 +
 +
| image2    = {{#invoke:InfoboxImage|InfoboxImage |image={{{map|}}} |size={{{map_size|}}} |sizedefault=250px |alt={{{map_alt|}}} }}
 +
| caption2  = {{{map_caption|}}}
  
 
| datastyle = text-align: left;
 
| datastyle = text-align: left;
  
| label1     = Native&nbsp;name
+
| label1 = Native&nbsp;name
| data1     = {{#if:{{{native_name|}}}| {{#if:{{{native_name_lang|}}}|<span lang="{{{native_name_lang}}}">}} {{{native_name}}}{{#if:{{{native_name_lang|}}}|</span>}} }}
+
| data1 = {{#if:{{{native_name|}}}|<span {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}> {{{native_name}}}</span>}}
 +
 
 +
| label2  = English name
 +
|  data2  = {{{English_name|{{{english_name|}}}}}}
 +
 
 +
| label3  = Time
 +
|  data3  = {{{time|}}}
 +
 
 +
| label4  = Duration
 +
|  data4  = {{{duration|}}}
 +
 
 +
| label5  = Date
 +
|  data5  = {{{date|{{{Date|}}} }}}
 +
 
 +
| label6  = Venue
 +
|  data6  = {{{venue|}}}
 +
 
 +
| label7  = Location
 +
| class7  = location
 +
|  data7  = {{ifempty| {{{place|}}} | {{{Location|}}} | {{{location|}}} }}
 +
 
 +
| label8  = [[Geographic coordinate system|Coordinates]]
 +
|  data8  = {{{coordinates|}}}
 +
 
 +
| label9  = Also known as
 +
|  data9  = {{ifempty| {{{also known as|}}} | {{{also_known_as|}}} | {{{AKA|}}} | {{{aka|}}} }}
 +
 
 +
| label10 = Type
 +
|  data10 = {{{type|}}}
  
| label2 = Time
+
| label11 = Theme
| data2 = {{{time|}}}
+
data11 = {{{theme|}}}
  
| label3 = Date
+
| label12 = Cause
| data3 = {{{date|{{{Date|}}} }}}
+
data12 = {{{cause|}}}
  
| label4 = Location
+
| label13 = {{#if:{{{reporter|}}}|Reporter|First reporter}}
| class4 = location
+
data13 = {{#if:{{{reporter|}}}|{{{reporter|}}}|{{{first reporter| {{{first_reporter|}}} }}}}}
| data4 = {{{place|{{{Location|{{{location|}}} }}} }}}
 
  
| label5 = [[Geographic coordinate system|Coordinates]]
+
| label14 = Budget
| data5 = {{{coordinates|}}}
+
data14 = {{{budget|}}}
  
| label7 = Also known as
+
| label15 = {{#if:{{{patrons|}}}|Patrons|Patron(s)}}
| data7 = {{{also known as|{{{AKA|}}} }}}
+
data15 = {{#if:{{{patrons|}}}|{{{patrons}}}|{{{patron|}}}}}
  
| label8 = Cause
+
| label16 = {{#if:{{{organisers|}}}|Organised|Organized}} by
| data8 = {{{cause|}}}
+
data16 = {{#if:{{{organisers|}}}|{{{organisers}}}|{{{organizers|}}}}}
  
| label9 = First reporter
+
| label17 = Filmed by
| data9 = {{{first reporter|}}}
+
data17 = {{{filmed by| {{{filmed_by|}}}}}}
  
| label10 = {{#if:{{{organisers|}}}|Organised|Organized}} by
+
| label18 = Participants
| data10 = {{#if:{{{organisers|}}}|{{{organisers}}}|{{{organizers|}}}}}
+
data18 = {{{participants|{{{Participants|}}} }}}
 +
| class18 = attendee
  
| label11 = Filmed by
+
| label19 = Outcome
| data11 = {{{filmed by|}}}
+
data19 = {{{outcome| {{{result| {{{Result|}}} }}} }}}
 +
| class19 = description
  
| label12 = Participants
+
| header20 = {{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}}|Casualties}}
| data12 = {{{participants|{{{Participants|}}} }}}
+
|  class20 = navbox-abovebelow
| class12 = attendee
+
data21 = {{{casualties1|}}}
 +
| data22 = {{{casualties2|}}}
 +
|  data23 = {{{casualties3|}}}
  
| label13 = Outcome
+
| label24 = Deaths
| data13 = {{{outcome|{{{Result|}}} }}}
+
data24 = {{ifempty| {{{reported deaths|}}} | {{{reported death(s)|}}} | {{{Deaths|}}} | {{{deaths|}}} | {{{fatalities|}}} }}
| class13 = description
 
  
| header14 = {{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}}|Casualties}}
+
| label25 = Non-fatal injuries
| class14 = navbox-abovebelow
+
data25 = {{{reported injuries|{{{injuries|}}} }}}
| data15 = {{{casualties1|}}}
 
| data16 = {{{casualties2|}}}
 
| data17 = {{{casualties3|}}}
 
  
| label18 = Deaths
+
| label26 = Missing
| data18 = {{{reported deaths|{{{reported death(s)|{{{Deaths|{{{fatalities|}}} }}} }}} }}}
+
data26 = {{{reported missing|{{{missing|}}}}}}
  
| label19 = Injuries
+
| label27 = Property damage
| data19 = {{{reported injuries|{{{injuries|}}} }}}
+
data27 = {{ifempty|  {{{reported property damage|}}} | {{{property damage|}}} | {{{property_damage|}}} }}
  
| label20 = Missing
+
| label28 = Burial
| data20 = {{{reported missing|}}}
+
data28 = {{{burial|}}}
  
| label21 = Property damage
+
| label29 = Inquiries
| data21 = {{{reported property damage|}}}
+
data29 = {{{inquiries|}}}
  
| label22 = Burial
+
| label30 = Inquest
| data22 = {{{burial|}}}
+
data30 = {{{inquest|}}}
  
| label23 = Inquiries
+
| label31 = Coroner
| data23 = {{{inquiries|}}}
+
data31 = {{{coroner|}}}
  
| label24 = Inquest
+
| label32 = Arrest(s)
| data24 = {{{inquest|}}}
+
data32 = {{{arrests|}}}
  
| label25 = Coroner
+
| label33 = Suspect(s)
| data25 = {{{coroner|}}}
+
data33 = {{{suspects|{{{susperps|}}} }}}
  
| label26 = Arrest(s)
+
| label34 = Accused
| data26 = {{{arrests|}}}
+
data34 = {{{accused|}}}
  
| label27 = Suspect(s)
+
| label35 = Convicted
| data27 = {{{suspects|{{{susperps|}}} }}}
+
data35 = {{{convicted|}}}
  
| label28 = Accused
+
| label36 = Charges
| data28 = {{{accused|}}}
+
data36 = {{{charges|}}}
  
| label29 = Convicted
+
| label37 = Trial
| data29 = {{{convicted|}}}
+
data37 = {{{trial|}}}
  
| label30 = Charges
+
| label38 = Verdict
| data30 = {{{charges|}}}
+
data38 = {{{verdict|}}}
  
| label31 = Verdict
+
| label39 = Convictions
| data31 = {{{verdict|}}}
+
data39 = {{{convictions|}}}
  
| label32 = Convictions
+
| label40 = Sentence
| data32 = {{{convictions|}}}
+
data40 = {{{sentence|}}}
  
| label33 = Publication bans
+
| label41 = Publication bans
| data33 = {{{publication bans|}}}
+
data41 = {{{publication bans|{{{publication_bans|}}}}}}
  
| label34 = Litigation
+
| label42 = Litigation
| data34 = {{{litigation|}}}
+
data42 = {{{litigation|}}}
  
| label35 = Awards
+
| label43 = Awards
| data35 = {{{awards|}}}
+
data43 = {{{awards|}}}
  
| label36 = Footage
+
| label44 = Footage
| data36 = {{{url|}}}
+
data44 = {{{footage|{{{url|}}}}}}
  
| label37 = {{{blank_label}}}
+
| label45 = {{{blank_label}}}
| data37 = {{#if:{{{blank_label|}}}|{{{blank_data|}}}}}
+
data45 = {{#if:{{{blank_label|}}}|{{{blank_data|}}}}}
  
| label38 = {{{blank1_label}}}
+
| label46 = {{{blank1_label}}}
| data38 = {{#if:{{{blank1_label|}}}|{{{blank1_data|}}}}}
+
data46 = {{#if:{{{blank1_label|}}}|{{{blank1_data|}}}}}
  
| label39 = {{{blank2_label}}}
+
| label47 = {{{blank2_label}}}
| data39 = {{#if:{{{blank2_label|}}}|{{{blank2_data|}}}}}
+
data47 = {{#if:{{{blank2_label|}}}|{{{blank2_data|}}}}}
  
| label40 = Website
+
| label48 = Website
| data40 = {{{website|{{{URL|}}} }}}
+
data48 = {{{website|{{{URL|}}} }}}
  
 
| belowstyle = border-top: #aaa 1px solid;
 
| belowstyle = border-top: #aaa 1px solid;
 
| below = {{{notes|}}}
 
| below = {{{notes|}}}
  
}}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox event with unknown parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y
 +
| 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>
 
{{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>

Revision as of 09:31, 10 April 2016

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".
File: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