Template:Infobox event: Difference between revisions
meta>Bibliomaniac15 remove tfd template, discussion was closed a couple days ago |
meta>Pigsonthewing {{#if:{{{timezone|}}}|({{{timezone}}})}} }} |
||
Line 28: | Line 28: | ||
| label4 = Time | | label4 = Time | ||
| data4 = {{{time|}}} | | data4 = {{{time|}}} {{#if:{{{timezone|}}}|({{{timezone}}})}} }} | ||
| label5 = Duration | | label5 = Duration |
Revision as of 13:33, 23 June 2020
| label5 = Duration | data5 =
| label6 = Venue | data6 =
| label7 = Location | class7 = location | data7 =
| label8 = Coordinates | data8 =
| label9 = Also known as | data9 =
| label10 = Type | data10 =
| label11 = Theme | data11 =
| label12 = Cause | data12 =
| label13 = Motive | data13 =
| label14 = Target | data14 =
| label15 = First reporter | data15 =
| label16 = Budget | data16 =
| label17 = Patron(s) | data17 =
| label18 = Organized by | data18 =
| label19 = Filmed by | data19 =
| label20 = Participants | data20 = | class20 = attendee
| label21 = Outcome | data21 = | class21 = description
| header22 =
| data23 = | data24 = | data25 =
| label26 = Deaths | data26 =
| label27 = Non-fatal injuries | data27 =
| label28 = Missing | data28 =
| label29 = Property damage | data29 =
| label30 = Burial | data30 =
| label31 = Inquiries | data31 =
| label32 = Inquest | data32 =
| label33 = Coroner | data33 =
| label34 = Arrests | data34 =
| label35 = Suspects | data35 =
| label36 = Accused | data36 =
| label37 = Convicted | data37 =
| label38 = Charges | data38 =
| label39 = Trial | data39 =
| label40 = Verdict | data40 =
| label41 = Convictions | data41 =
| label42 = Sentence | data42 =
| label43 = Publication bans | data43 =
| label44 = Litigation | data44 =
| label45 = Awards | data45 =
| label46 = Footage | data46 =
| label47 = {{{blank_label}}} | data47 =
| label48 = {{{blank1_label}}} | data48 =
| label49 = {{{blank2_label}}} | data49 =
| label50 = Website | data50 =
| data51 =
| belowstyle = border-top: #aaa 1px solid; | below =
}}
This template uses Lua: |
{{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
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright={{{image_upright}}}]] | |
Native name | {{{native_name}}} |
---|---|
English name | {{{english_name}}} |
Date | {{{date}}} |
Time | {{{time}}} ({{{timezone}}}) |
| label5 = Duration | data5 = {{{duration}}}
| label6 = Venue | data6 = {{{venue}}}
| label7 = Location | class7 = location | data7 = {{{location}}}
| label8 = Coordinates | data8 = {{{coordinates}}}
| label9 = Also known as | data9 = {{{also_known_as}}}
| label10 = Type | data10 = {{{type}}}
| label11 = Theme | data11 = {{{theme}}}
| label12 = Cause | data12 = {{{cause}}}
| label13 = Motive | data13 = {{{motive}}}
| label14 = Target | data14 = {{{target}}}
| label15 = First reporter | data15 = {{{first_reporter}}}
| label16 = Budget | data16 = {{{budget}}}
| label17 = Patron(s) | data17 = {{{patron}}}
| label18 = Organised by | data18 = {{{organisers}}}
| label19 = Filmed by | data19 = {{{filmed_by}}}
| label20 = Participants | data20 = {{{participants}}} | class20 = attendee
| label21 = Outcome | data21 = {{{outcome}}} | class21 = description
| header22 = Casualties
| data23 = {{{casualties1}}} | data24 = {{{casualties2}}} | data25 = {{{casualties3}}}
| label26 = Deaths | data26 = {{{reported deaths}}}
| label27 = Non-fatal injuries | data27 = {{{reported injuries}}}
| label28 = Missing | data28 = {{{reported missing}}}
| label29 = Property damage | data29 = {{{reported property damage}}}
| label30 = Burial | data30 = {{{burial}}}
| label31 = Inquiries | data31 = {{{inquiries}}}
| label32 = Inquest | data32 = {{{inquest}}}
| label33 = Coroner | data33 = {{{coroner}}}
| label34 = Arrests | data34 = {{{arrests}}}
| label35 = Suspects | data35 = {{{suspects}}}
| label36 = Accused | data36 = {{{accused}}}
| label37 = Convicted | data37 = {{{convicted}}}
| label38 = Charges | data38 = {{{charges}}}
| label39 = Trial | data39 = {{{trial}}}
| label40 = Verdict | data40 = {{{verdict}}}
| label41 = Convictions | data41 = {{{convictions}}}
| label42 = Sentence | data42 = {{{sentence}}}
| label43 = Publication bans | data43 = {{{publication_bans}}}
| label44 = Litigation | data44 = {{{litigation}}}
| label45 = Awards | data45 = {{{awards}}}
| label46 = Footage | data46 = {{{url}}}
| label47 = {{{blank_label}}} | data47 =
| label48 = {{{blank1_label}}} | data48 =
| label49 = {{{blank2_label}}} | data49 =
| label50 = Website | data50 = {{{website}}}
| data51 =
| belowstyle = border-top: #aaa 1px solid; | below = {{{notes}}}
}}
<syntaxhighlight lang="html" style="overflow:auto;">
| label5 = Duration | data5 =
| label6 = Venue | data6 =
| label7 = Location | class7 = location | data7 =
| label8 = Coordinates | data8 =
| label9 = Also known as | data9 =
| label10 = Type | data10 =
| label11 = Theme | data11 =
| label12 = Cause | data12 =
| label13 = Motive | data13 =
| label14 = Target | data14 =
| label15 = First reporter | data15 =
| label16 = Budget | data16 =
| label17 = Patron(s) | data17 =
| label18 = Organized by | data18 =
| label19 = Filmed by | data19 =
| label20 = Participants | data20 = | class20 = attendee
| label21 = Outcome | data21 = | class21 = description
| header22 =
| data23 = | data24 = | data25 =
| label26 = Deaths | data26 =
| label27 = Non-fatal injuries | data27 =
| label28 = Missing | data28 =
| label29 = Property damage | data29 =
| label30 = Burial | data30 =
| label31 = Inquiries | data31 =
| label32 = Inquest | data32 =
| label33 = Coroner | data33 =
| label34 = Arrests | data34 =
| label35 = Suspects | data35 =
| label36 = Accused | data36 =
| label37 = Convicted | data37 =
| label38 = Charges | data38 =
| label39 = Trial | data39 =
| label40 = Verdict | data40 =
| label41 = Convictions | data41 =
| label42 = Sentence | data42 =
| label43 = Publication bans | data43 =
| label44 = Litigation | data44 =
| label45 = Awards | data45 =
| label46 = Footage | data46 =
| label47 = | data47 =
| label48 = | data48 =
| label49 = | data49 =
| label50 = Website | data50 =
| data51 =
| belowstyle = border-top: #aaa 1px solid; | below =
}} </syntaxhighlight>
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; useimage_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}}, withdisplay=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
Date | 14 April 1944 |
---|---|
Time | 16:15 IST (10:45 UTC) |
| label5 = Duration | data5 =
| label6 = Venue | data6 =
| label7 = Location | class7 = location | data7 = Victoria Dock, Bombay, British India
| label8 = Coordinates | data8 = Lua error: callParserFunction: function "#coordinates" was not found.
| label9 = Also known as | data9 =
| label10 = Type | data10 =
| label11 = Theme | data11 =
| label12 = Cause | data12 = ship fire
| label13 = Motive | data13 =
| label14 = Target | data14 =
| label15 = First reporter | data15 =
| label16 = Budget | data16 =
| label17 = Patron(s) | data17 =
| label18 = Organized by | data18 =
| label19 = Filmed by | data19 =
| label20 = Participants | data20 = | class20 = attendee
| label21 = Outcome | data21 = | class21 = description
| header22 = Casualties
| data23 = 800+ dead | data24 = 3,000 injured | data25 =
| label26 = Deaths | data26 =
| label27 = Non-fatal injuries | data27 =
| label28 = Missing | data28 =
| label29 = Property damage | data29 =
| label30 = Burial | data30 =
| label31 = Inquiries | data31 =
| label32 = Inquest | data32 =
| label33 = Coroner | data33 =
| label34 = Arrests | data34 =
| label35 = Suspects | data35 =
| label36 = Accused | data36 =
| label37 = Convicted | data37 =
| label38 = Charges | data38 =
| label39 = Trial | data39 =
| label40 = Verdict | data40 =
| label41 = Convictions | data41 =
| label42 = Sentence | data42 =
| label43 = Publication bans | data43 =
| label44 = Litigation | data44 =
| label45 = Awards | data45 =
| label46 = Footage
| data46 = example
| label47 = {{{blank_label}}} | data47 =
| label48 = {{{blank1_label}}} | data48 =
| label49 = {{{blank2_label}}} | data49 =
| label50 = Website
| data50 = example
| data51 =
| belowstyle = border-top: #aaa 1px solid; | below =
}}
{{Infobox event |title=Bombay Explosion |image=Bombay-Docks-aftermath1.png |caption=Smoke billowing out of 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
The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.- Classes used
The HTML classes of this microformat include:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
nor collapse nested elements which use them.
Tracking categories
- Category:Pages using infobox event with unknown parameters (0)
- Category:Pages using infobox event with blank parameters (0)