Difference between revisions of "Template:Infobox event/sandbox"
Jump to navigation
Jump to search
imported>MSGJ (sync with live) |
imported>JJMC89 (edit request) |
||
| Line 1: | Line 1: | ||
{{infobox | {{infobox | ||
| − | |||
| bodyclass = {{#if:{{{nongregorian|}}}||vevent}} | | bodyclass = {{#if:{{{nongregorian|}}}||vevent}} | ||
| − | | | + | | subheader = {{#if:{{{partof|}}}|Part of {{{partof|}}}}} |
| − | |||
| − | |||
| titleclass = summary | | titleclass = summary | ||
| − | | title = {{ | + | | title = {{ifempty | {{{event|}}} | {{{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 | + | | label1 = Native name |
| − | | data1 | + | | 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|}}} | ||
| − | | | + | | label11 = Theme |
| − | | | + | | data11 = {{{theme|}}} |
| − | | | + | | label12 = Cause |
| − | | | + | | data12 = {{{cause|}}} |
| − | | | + | | label13 = {{#if:{{{reporter|}}}|Reporter|First reporter}} |
| − | | | + | | data13 = {{#if:{{{reporter|}}}|{{{reporter|}}}|{{{first reporter| {{{first_reporter|}}} }}}}} |
| − | | | ||
| − | | | + | | label14 = Budget |
| − | | | + | | data14 = {{{budget|}}} |
| − | | | + | | label15 = {{#if:{{{patrons|}}}|Patrons|Patron(s)}} |
| − | | | + | | data15 = {{#if:{{{patrons|}}}|{{{patrons}}}|{{{patron|}}}}} |
| − | | | + | | label16 = {{#if:{{{organisers|}}}|Organised|Organized}} by |
| − | | | + | | data16 = {{#if:{{{organisers|}}}|{{{organisers}}}|{{{organizers|}}}}} |
| − | | | + | | label17 = Filmed by |
| − | | | + | | data17 = {{{filmed by| {{{filmed_by|}}}}}} |
| − | | | + | | label18 = Participants |
| − | | | + | | data18 = {{{participants|{{{Participants|}}} }}} |
| + | | class18 = attendee | ||
| − | | | + | | label19 = Outcome |
| − | | | + | | data19 = {{{outcome| {{{result| {{{Result|}}} }}} }}} |
| + | | class19 = description | ||
| − | | | + | | header20 = {{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}}|Casualties}} |
| − | | | + | | class20 = navbox-abovebelow |
| − | + | | data21 = {{{casualties1|}}} | |
| + | | data22 = {{{casualties2|}}} | ||
| + | | data23 = {{{casualties3|}}} | ||
| − | | | + | | label24 = Deaths |
| − | | | + | | data24 = {{ifempty| {{{reported deaths|}}} | {{{reported death(s)|}}} | {{{Deaths|}}} | {{{deaths|}}} | {{{fatalities|}}} }} |
| − | | | ||
| − | | | + | | label25 = Non-fatal injuries |
| − | | | + | | data25 = {{{reported injuries|{{{injuries|}}} }}} |
| − | |||
| − | | | ||
| − | |||
| − | | | + | | label26 = Missing |
| − | | | + | | data26 = {{{reported missing|{{{missing|}}}}}} |
| − | | | + | | label27 = Property damage |
| − | | | + | | data27 = {{ifempty| {{{reported property damage|}}} | {{{property damage|}}} | {{{property_damage|}}} }} |
| − | | | + | | label28 = Burial |
| − | | | + | | data28 = {{{burial|}}} |
| − | | | + | | label29 = Inquiries |
| − | | | + | | data29 = {{{inquiries|}}} |
| − | | | + | | label30 = Inquest |
| − | | | + | | data30 = {{{inquest|}}} |
| − | | | + | | label31 = Coroner |
| − | | | + | | data31 = {{{coroner|}}} |
| − | | | + | | label32 = Arrest(s) |
| − | | | + | | data32 = {{{arrests|}}} |
| − | | | + | | label33 = Suspect(s) |
| − | | | + | | data33 = {{{suspects|{{{susperps|}}} }}} |
| − | | | + | | label34 = Accused |
| − | | | + | | data34 = {{{accused|}}} |
| − | | | + | | label35 = Convicted |
| − | | | + | | data35 = {{{convicted|}}} |
| − | | | + | | label36 = Charges |
| − | | | + | | data36 = {{{charges|}}} |
| − | | | + | | label37 = Trial |
| − | | | + | | data37 = {{{trial|}}} |
| − | | | + | | label38 = Verdict |
| − | | | + | | data38 = {{{verdict|}}} |
| − | | | + | | label39 = Convictions |
| − | | | + | | data39 = {{{convictions|}}} |
| − | | | + | | label40 = Sentence |
| − | | | + | | data40 = {{{sentence|}}} |
| − | | | + | | label41 = Publication bans |
| − | | | + | | data41 = {{{publication bans|{{{publication_bans|}}}}}} |
| − | | | + | | label42 = Litigation |
| − | | | + | | data42 = {{{litigation|}}} |
| − | | | + | | label43 = Awards |
| − | | | + | | data43 = {{{awards|}}} |
| − | | | + | | label44 = Footage |
| − | | | + | | data44 = {{{footage|{{{url|}}}}}} |
| − | | | + | | label45 = {{{blank_label}}} |
| − | | | + | | data45 = {{#if:{{{blank_label|}}}|{{{blank_data|}}}}} |
| − | | | + | | label46 = {{{blank1_label}}} |
| − | | | + | | data46 = {{#if:{{{blank1_label|}}}|{{{blank1_data|}}}}} |
| − | | | + | | label47 = {{{blank2_label}}} |
| − | | | + | | data47 = {{#if:{{{blank2_label|}}}|{{{blank2_data|}}}}} |
| − | | | + | | label48 = Website |
| − | | | + | | 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
| Location | Script error: No such module "If empty". |
|---|---|
| Also known as | Script error: No such module "If empty". |
| Deaths | Script error: No such module "If empty". |
| Property damage | Script error: No such module "If empty". |
| This is the template sandbox page for Template:Infobox event (diff). See also the companion subpage for test cases. |
| 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_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; useimage_uprightinstead|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
| File:Bombay-Docks-aftermath1.png Smoke billowing out of the 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 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
Tracking categories
- Category:Pages using infobox event with unknown parameters (0)
- Category:Pages using infobox event with blank parameters (1)
See also
| The above documentation is transcluded from Template:Infobox event/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |