Template:Infobox event: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Pigsonthewing Organised by |
m 92 revisions imported |
||
(65 intermediate revisions by 19 users not shown) | |||
Line 1: | Line 1: | ||
{{infobox | {{infobox | ||
| bodyclass = {{#if:{{{nongregorian|}}}||vevent}} | | bodyclass = {{#if:{{{nongregorian|}}}||vevent}} | ||
| | | subheader = {{#if:{{{partof|}}}|Part of {{{partof|}}}}} | ||
| | | child = {{{child|no}}} | ||
| titleclass = summary | | titleclass = summary | ||
| title = {{ | | title = {{if empty | {{{event|}}} | {{{title|}}} | {{{name|}}} | {{{Event_Name|}}} | {{PAGENAMEBASE}} }} | ||
| 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|}}} }}} | ||
| 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; | ||
| headerstyle = background-color:lavender; | |||
| label1 = Native name | |||
| 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 = Date | |||
| data3 = {{{date|{{{Date|}}} }}} | |||
| label4 = Time | |||
| data4 = {{{time|}}} {{#if:{{{timezone|}}}|({{{timezone}}})}} | |||
| label5 = Duration | |||
| data5 = {{{duration|}}} | |||
| label6 = Venue | |||
| data6 = {{{venue|}}} | |||
| label7 = Location | |||
| class7 = location | |||
| data7 = {{if empty| {{{place|}}} | {{{Location|}}} | {{{location|}}} }} | |||
| label8 = [[Geographic coordinate system|Coordinates]] | |||
| data8 = {{{coordinates|}}} | |||
| label9 = Also known as | |||
| data9 = {{if empty| {{{also known as|}}} | {{{also_known_as|}}} | {{{AKA|}}} | {{{aka|}}} }} | |||
| label10 = Type | |||
| data10 = {{{type|}}} | |||
| label11 = Theme | |||
| data11 = {{{theme|}}} | |||
| label12 = Cause | |||
| data12 = {{{cause|}}} | |||
| label13 = Motive | |||
| data13 = {{{motive|}}} | |||
| label14 = Target | |||
| data14 = {{{target|}}} | |||
| label15 = {{#if:{{{reporter|}}}|Reporter|First reporter}} | |||
| data15 = {{#if:{{{reporter|}}}|{{{reporter|}}}|{{{first reporter| {{{first_reporter|}}} }}}}} | |||
| | | label16 = Budget | ||
| | | data16 = {{{budget|}}} | ||
| | | label17 = {{#if:{{{patrons|}}}|Patrons|Patron(s)}} | ||
| | | data17 = {{#if:{{{patrons|}}}|{{{patrons}}}|{{{patron|}}}}} | ||
| | | label18 = {{#if:{{{organisers|}}}|Organised|Organized}} by | ||
| | | data18 = {{#if:{{{organisers|}}}|{{{organisers}}}|{{{organizers|}}}}} | ||
| | |||
| | | label19 = Filmed by | ||
| | | data19 = {{{filmed by| {{{filmed_by|}}}}}} | ||
| | | label20 = Participants | ||
| | | data20 = {{{participants|{{{Participants|}}} }}} | ||
| class20 = attendee | |||
| | | label21 = Outcome | ||
| | | data21 = {{{outcome| {{{result| {{{Result|}}} }}} }}} | ||
| class21 = description | |||
| | | header22 = {{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}}|Casualties}} | ||
| | |||
| | | data23 = {{{casualties1|}}} | ||
| | | data24 = {{{casualties2|}}} | ||
| data25 = {{{casualties3|}}} | |||
| | | label26 = Deaths | ||
| | | data26 = {{if empty| {{{reported deaths|}}} | {{{reported death(s)|}}} | {{{Deaths|}}} | {{{deaths|}}} | {{{fatalities|}}} }} | ||
| | | label27 = Non-fatal injuries | ||
| | | data27 = {{{reported injuries|{{{injuries|}}} }}} | ||
| | | label28 = Missing | ||
| | | data28 = {{{reported missing|{{{missing|}}}}}} | ||
| | | label29 = Property damage | ||
| data29 = {{if empty| {{{reported property damage|}}} | {{{property damage|}}} | {{{property_damage|}}} }} | |||
| | |||
| | | label30 = Burial | ||
| | | data30 = {{{burial|}}} | ||
| | | label31 = Displaced | ||
| | | data31 = {{{displaced|}}} | ||
| | | label32 = Inquiries | ||
| | | data32 = {{{inquiries|}}} | ||
| | | label33 = Inquest | ||
| | | data33 = {{{inquest|}}} | ||
| | | label34 = Coroner | ||
| | | data34 = {{{coroner|}}} | ||
| | | label35 = Arrests | ||
| | | data35 = {{{arrests|}}} | ||
| | | label36 = Suspects | ||
| | | data36 = {{{suspects|{{{susperps|}}} }}} | ||
| | | label37 = Accused | ||
| | | data37 = {{{accused|}}} | ||
| | | label38 = Convicted | ||
| | | data38 = {{{convicted|}}} | ||
| | | label39 = Charges | ||
| | | data39 = {{{charges|}}} | ||
| | | label40 = Trial | ||
| | | data40 = {{{trial|}}} | ||
| | | label41 = Verdict | ||
| | | data41 = {{{verdict|}}} | ||
| | | label42 = Convictions | ||
| | | data42 = {{{convictions|}}} | ||
| | | label43 = Sentence | ||
| | | data43 = {{{sentence|}}} | ||
| | | label44 = Publication bans | ||
| | | data44 = {{{publication bans|{{{publication_bans|}}}}}} | ||
| | | label45 = Litigation | ||
| | | data45 = {{{litigation|}}} | ||
| | | label46 = Awards | ||
| | | data46 = {{{awards|}}} | ||
| | | label47 = Footage | ||
| | | data47 = {{{footage|{{{url|}}}}}} | ||
| | | label48 = {{{blank_label}}} | ||
| | | data48 = {{#if:{{{blank_label|}}}|{{{blank_data|}}}}} | ||
| | | label49 = {{{blank1_label}}} | ||
| | | data49 = {{#if:{{{blank1_label|}}}|{{{blank1_data|}}}}} | ||
| | | label50 = {{{blank2_label}}} | ||
| | | data50 = {{#if:{{{blank2_label|}}}|{{{blank2_data|}}}}} | ||
| | | label51 = Website | ||
| | | data51 = {{{website|{{{URL|}}} }}} | ||
| | | data52 = {{{module|}}} | ||
| belowstyle = border-top: #aaa 1px solid; | | belowstyle = border-top: #aaa 1px solid; | ||
| below = {{{notes|}}} | | below = {{{notes|}}} | ||
}}<noinclude> | }}{{#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_" | ||
| 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 | child | displaced | motive | target | 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 | timezone | 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 04:37, 3 September 2020
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}}}) |
Duration | {{{duration}}} |
Venue | {{{venue}}} |
Location | {{{location}}} |
Coordinates | {{{coordinates}}} |
Also known as | {{{also_known_as}}} |
Type | {{{type}}} |
Theme | {{{theme}}} |
Cause | {{{cause}}} |
Motive | {{{motive}}} |
Target | {{{target}}} |
First reporter | {{{first_reporter}}} |
Budget | {{{budget}}} |
Patron(s) | {{{patron}}} |
Organised by | {{{organisers}}} |
Filmed by | {{{filmed_by}}} |
Participants | {{{participants}}} |
Outcome | {{{outcome}}} |
Casualties | |
{{{casualties1}}} | |
{{{casualties2}}} | |
{{{casualties3}}} | |
Deaths | {{{reported deaths}}} |
Non-fatal injuries | {{{reported injuries}}} |
Missing | {{{reported missing}}} |
Property damage | {{{reported property damage}}} |
Burial | {{{burial}}} |
Displaced | {{{displaced}}} |
Inquiries | {{{inquiries}}} |
Inquest | {{{inquest}}} |
Coroner | {{{coroner}}} |
Arrests | {{{arrests}}} |
Suspects | {{{suspects}}} |
Accused | {{{accused}}} |
Convicted | {{{convicted}}} |
Charges | {{{charges}}} |
Trial | {{{trial}}} |
Verdict | {{{verdict}}} |
Convictions | {{{convictions}}} |
Sentence | {{{sentence}}} |
Publication bans | {{{publication_bans}}} |
Litigation | {{{litigation}}} |
Awards | {{{awards}}} |
Footage | {{{url}}} |
Website | {{{website}}} |
{{{notes}}} |
<syntaxhighlight lang="html" style="overflow:auto;">
</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) |
Location | Victoria Dock, Bombay, British India |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Cause | ship fire |
Casualties | |
800+ dead | |
3,000 injured | |
Footage | example |
Website | example |
{{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
Please do not rename or remove these classes
nor collapse nested elements which use them.
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)