Difference between revisions of "Template:Infobox event/doc"
Jump to navigation
Jump to search
imported>Damenleeturks (→Usage) |
imported>Damenleeturks (→Parameters: Adding parameter explanations, pulled from the Template:Infobox recurring event documentation) |
||
| Line 129: | Line 129: | ||
{{clear}} | {{clear}} | ||
=== Parameters === | === Parameters === | ||
| − | * {{para|title}} - | + | * {{para|title}} - name of the event, if omitted, the page name will be used |
| − | * {{para|image}} - | + | * {{para|image}} - name of the image of the event |
* {{para|image_size}} - {{para|image_upright}} is preferred for most cases, see [[WP:IMGSIZE]] | * {{para|image_size}} - {{para|image_upright}} is preferred for most cases, see [[WP:IMGSIZE]] | ||
* {{para|image_upright}} - | * {{para|image_upright}} - | ||
* {{para|image_alt}} - | * {{para|image_alt}} - | ||
| − | * {{para|caption}} - | + | * {{para|caption}} - optional caption of the image |
| − | * {{para|native_name}} - | + | * {{para|native_name}} - the native name of the event, if different |
| − | * {{para|native_name_lang}} - | + | * {{para|native_name_lang}} - [[ISO 639-2]] code for the native name e.g. 'fr' for French. |
* {{para|english_name}} - | * {{para|english_name}} - | ||
* {{para|time}} - | * {{para|time}} - | ||
* {{para|duration}} - | * {{para|duration}} - | ||
| − | * {{para|date}} - <code><nowiki>{{start date|YYYY|MM|DD}}</nowiki></code> or <code><nowiki>{{start and end dates|YYYY|MM|DD|YYYY|MM|DD}}</nowiki></code> | + | * {{para|date}} - <code><nowiki>{{start date|YYYY|MM|DD}}</nowiki></code> for the date of a single-day event or <code><nowiki>{{start and end dates|YYYY|MM|DD|YYYY|MM|DD}}</nowiki></code> for multi-day events |
| − | * {{para|venue}} - | + | * {{para|venue}} - name of the particular venue (alternative to location) |
| − | * {{para|location}} - | + | * {{para|location}} - the location of the event |
| − | * {{para|coordinates}} - <code><nowiki>{{coord|LAT|LON|region:XXXX_type:event|display=inline,title}}</nowiki></code> | + | * {{para|coordinates}} - Use {{tl|Coord}}, with <code>display=inline,title</code> (ex: <code><nowiki>{{coord|LAT|LON|region:XXXX_type:event|display=inline,title}}</nowiki></code>) |
* {{para|also_known_as}} - | * {{para|also_known_as}} - | ||
* {{para|type}} - | * {{para|type}} - | ||
| Line 151: | Line 151: | ||
* {{para|target}} - | * {{para|target}} - | ||
* {{para|first_reporter}} - | * {{para|first_reporter}} - | ||
| − | * {{para|budget}} - | + | * {{para|budget}} - the larger of budgeted income or expense |
| − | * {{para|patron}} or {{para|patrons}} - | + | * {{para|patron}} or {{para|patrons}} - patronage |
| − | * {{para|organisers}} or {{para|organizers}} - | + | * {{para|organisers}} or {{para|organizers}} - organised by |
* {{para|filmed_by}} - | * {{para|filmed_by}} - | ||
| − | * {{para|participants}} - | + | * {{para|participants}} - the typical number of participants |
* {{para|outcome}} - | * {{para|outcome}} - | ||
* {{para|casualties1}} - | * {{para|casualties1}} - | ||
| Line 184: | Line 184: | ||
* {{para|blank1_label}} or {{para|blank1_data}} - | * {{para|blank1_label}} or {{para|blank1_data}} - | ||
* {{para|blank2_label}} or {{para|blank2_data}} - | * {{para|blank2_label}} or {{para|blank2_data}} - | ||
| − | * {{para|website}} - <code><nowiki>{{URL|example.com}}</nowiki></code> | + | * {{para|website}} - Use {{tl|URL}} (ex: <code><nowiki>{{URL|example.com}}</nowiki></code>) |
* {{para|notes}} - | * {{para|notes}} - | ||
Revision as of 22:37, 26 February 2018
| File:Edit-copy green.svg | This is a documentation subpage for Template:Infobox event. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | 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
Template:Parameter names example
{{Infobox event
| title = <!-- Title to display, if other than page name -->
| image =
| image_size = <!-- |image_upright= is preferred for most cases, see WP:IMGSIZE -->
| image_upright =
| image_alt =
| caption =
| native_name =
| native_name_lang =
| english_name =
| time =
| duration =
| 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 =
| 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|image=- name of the image of the event|image_size=-|image_upright=is preferred for most cases, see WP:IMGSIZE|image_upright=-|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=-|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=-|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
![]() Smoke billowing out of Harbour | |
| Date | 14 April 1944 |
|---|---|
| Time | 16:15 IST (10:45 UTC) |
| Location | Script error: No such module "If empty". |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
| Also known as | Script error: No such module "If empty". |
| Cause | ship fire |
| Casualties | |
| 800+ dead | |
| 3,000 injured | |
| Deaths | Script error: No such module "If empty". |
| Property damage | Script error: No such module "If empty". |
| Footage | Template:URL |
| Website | Template:URL |
{{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
Tracking categories
- Category:Pages using infobox event with unknown parameters (0)
- Category:Pages using infobox event with blank parameters (1)
See also
