Template:Infobox event: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Pigsonthewing #REDIRECT Template:Infobox news event |
meta>Underlying lk No edit summary |
||
| Line 1: | Line 1: | ||
# | {{infobox | ||
| bodystyle = {{#if:{{{WidthInEms|}}}|width: {{{WidthInEms}}}em}} | |||
| bodyclass = {{#if:{{{nongregorian|}}}||vevent}} | |||
| abovestyle = background-color: #{{{Backgroundcolor|f8eaba}}} | |||
| above = {{{Event_Name|<includeonly>{{PAGENAME}}</includeonly>}}} | |||
| aboveclass = summary | |||
| titleclass = summary | |||
| title = {{#if:{{{event|}}} | |||
| {{{event}}} | |||
| {{#if:{{{title|}}} | |||
| {{{title}}} | |||
|<includeonly>{{PAGENAME}}</includeonly> | |||
}} | |||
}} | |||
| image = {{#if:{{{image|}}} | |||
|{{{image}}} | |||
|{{#if:{{{image_name|}}} | |||
|[[File:{{{image_name}}}|{{px|{{{image_size|}}}|240x240px}}|{{{caption|}}}]] | |||
|{{#if:{{{Image_Name|}}}| | |||
{{#if:{{{Thumb_Time|}}}|[[File:{{{Image_Name|}}}|{{px|{{{Imagesize|}}}|220}}|alt={{{Image_Alt|}}}|thumbtime={{{Thumb_Time|}}}]]|[[File:{{{Image_Name|}}}|{{px|{{{Imagesize|}}}|220}}|alt={{{Image_Alt|}}}]]}}}} | |||
}} | |||
}} | |||
| caption = {{{caption|{{{Image_Caption|}}} }}} | |||
| imagestyle = {{#if:{{{caption|{{{Image_Caption|}}} }}}|border-bottom:#aaa solid 1px}} | |||
| datastyle = text-align: left; | |||
| label1 = Date | |||
| data1 = {{{date|{{{Date|}}} }}} | |||
| label2 = Time | |||
| data2 = {{{time|}}} | |||
| label3 = Location | |||
| class3 = location | |||
| data3 = {{{place|{{{Location|}}} }}} | |||
| label4 = [[Geographic coordinate system|Coordinates]] | |||
| data4 = {{{coordinates|}}} | |||
| label5 = Also known as | |||
| data5 = {{{also known as|{{{AKA|}}} }}} | |||
| label6 = Cause | |||
| data6 = {{{cause|}}} | |||
| label7 = First reporter | |||
| data7 = {{{first reporter|}}} | |||
| label8 = Filmed by | |||
| data8 = {{{filmed by|}}} | |||
| label9 = Participants | |||
| data9 = {{{participants|{{{Participants|}}} }}} | |||
| class9 = attendee | |||
| label10 = Outcome | |||
| data10 = {{{outcome|{{{Result|}}} }}} | |||
| class10 = description | |||
| header11 = {{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}}|Casualties}} | |||
| class11 = navbox-abovebelow | |||
| data12 = {{{casualties1|}}} | |||
| data13 = {{{casualties2|}}} | |||
| data14 = {{{casualties3|}}} | |||
| label15 = Deaths | |||
| data15 = {{#if: {{{reported deaths|}}} | {{{reported deaths}}} | {{{reported death(s)|{{{Deaths|}}} }}} }} | |||
| label16 = Injuries | |||
| data16 = {{{reported injuries|}}} | |||
| label17 = Missing | |||
| data17 = {{{reported missing|}}} | |||
| label18 = Property damage | |||
| data18 = {{{reported property damage|}}} | |||
| label19 = Burial | |||
| data19 = {{{burial|}}} | |||
| label20 = Inquiries | |||
| data20 = {{{inquiries|}}} | |||
| label21 = Inquest | |||
| data21 = {{{inquest|}}} | |||
| label22 = Coroner | |||
| data22 = {{{coroner|}}} | |||
| label23 = Suspect(s) | |||
| data23 = {{{suspects|}}} | |||
| label24 = Accused | |||
| data24 = {{{accused|}}} | |||
| label25 = Convicted | |||
| data25 = {{{convicted|}}} | |||
| label26 = Charges | |||
| data26 = {{{charges|}}} | |||
| label27 = Verdict | |||
| data27 = {{{verdict|}}} | |||
| label28 = Convictions | |||
| data28 = {{{convictions|}}} | |||
| label29 = Publication bans | |||
| data29 = {{{publication bans|}}} | |||
| label30 = Litigation | |||
| data30 = {{{litigation|}}} | |||
| label31 = Awards | |||
| data31 = {{{awards|}}} | |||
| label32 = Footage | |||
| data32 = {{{url|}}} | |||
| label33 = Website | |||
| data33 = {{{website|{{{URL|}}} }}} | |||
| belowstyle = border-top: #aaa 1px solid; | |||
| below = {{{notes|}}} | |||
}}<noinclude> | |||
{{Documentation}} | |||
<!-- please add category links to the /doc sub-page, not here --> | |||
</noinclude> | |||
Revision as of 16:28, 30 September 2013
| 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
| Infobox event | |
|---|---|
| {{{image}}} {{{caption}}} | |
| Date | {{{date}}} |
| Time | {{{time}}} |
| Coordinates | {{{coordinates}}} |
| Cause | {{{cause}}} |
| Participants | {{{participants}}} |
| Outcome | {{{outcome}}} |
| Casualties | |
| {{{casualties1}}} | |
| {{{casualties2}}} | |
| {{{casualties3}}} | |
| Deaths | {{{reported deaths}}} |
| Injuries | {{{reported injuries}}} |
| Missing | {{{reported missing}}} |
| Property damage | {{{reported property damage}}} |
| Burial | {{{burial}}} |
| Inquiries | {{{inquiries}}} |
| Inquest | {{{inquest}}} |
| Coroner | {{{coroner}}} |
| Suspect(s) | {{{suspects}}} |
| Accused | {{{accused}}} |
| Convicted | {{{convicted}}} |
| Charges | {{{charges}}} |
| Verdict | {{{verdict}}} |
| Convictions | {{{convictions}}} |
| Litigation | {{{litigation}}} |
| Awards | {{{awards}}} |
| Footage | {{{url}}} |
| Website | {{{website}}} |
| {{{notes}}} | |
<syntaxhighlight lang="html" style="overflow:auto;">
| Infobox event |
|---|
</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_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
| Infobox event | |
|---|---|
| Bombay-Docks-aftermath1.png Smoke billowing out of Harbour | |
| 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
- 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)