Difference between revisions of "Template:Infobox bus accident"
Jump to navigation
Jump to search
Template documentation[create]
imported>Folklore1 (infobox & doc borrowed from rail with some revisions for bus) |
|||
| Line 1: | Line 1: | ||
| − | {|class="infobox | + | {| class="infobox vcard" style="width: {{{boxwidth|22em}}}; font-size: 88%; line-height: 1.5em; text-align: left" |
| − | | | + | ! colspan=2 class="fn org" style="text-align: center; background-color: #AA5344; font-size: 125%; color: white" | {{{title|Title of bus disaster}}} |
|- | |- | ||
| − | + | {{#if:{{{image<includeonly>|</includeonly>}}}| | |
| − | + | {{!}} colspan=2 style="text-align: center" {{!}} [[Image: {{{image|}}}|{{{image_width|282px}}}]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | ! | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{ | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if: {{{ | + | {{#if:{{{caption<includeonly>|</includeonly>}}}| |
| − | ! | + | {{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}} |
| − | {{!}} {{{ | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | !colspan= | + | ! colspan=2 style="text-align: center; background-color: #efefef" | Details |
|- | |- | ||
| − | {{#if: {{{ | + | ! Date |
| − | ! | + | | {{{date}}} |
| − | {{!}} {{{ | + | |- |
| + | {{#if:{{{time|}}}| | ||
| + | ! Time | ||
| + | {{!}} {{{time}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if: {{{ | + | ! Location |
| − | ! | + | | class="label" | {{{location}}} |
| − | {{!}} {{{ | + | |- |
| − | {{ | + | {{#if:{{{location-dist|}}}| |
| − | }} | + | {{!}} <!-- deliberately blank to follow-on from Location above --> |
| − | {{#if: {{{ | + | {{!}} {{#ifeq: {{{location-dist|unknown}}} | unknown | Unknown | {{km to mi|num={{{location-dist}}}|abbr=yes|precision=1}} }} {{#if:{{{location-dir|}}}| {{{location-dir}}} }} {{#if:{{{location-city|}}}| from {{{location-city}}} }} |
| − | + | }} {{#if:{{{location-dist-mi|}}}| | |
| − | {{ | + | {{!}} <!-- deliberately blank to follow-on from Location above --> |
| − | {{ | + | {{!}} {{#ifeq: {{{location-dist-mi|unknown}}} | unknown | Unknown | {{mi to km|num={{{location-dist-mi}}}|abbr=yes|precision=1}} }} {{#if:{{{location-dir|}}}| {{{location-dir}}} }} {{#if:{{{location-city|}}}| from {{{location-city}}} }} |
| − | }} | ||
| − | {{#if: {{{ | ||
| − | ! | ||
| − | {{!}} {{{ | ||
| − | {{ | ||
| − | }} | ||
| − | {{#if: {{{ | ||
| − | |||
| − | {{ | ||
| − | {{ | ||
}} | }} | ||
| + | |- | ||
| + | ! Country | ||
| + | | {{{country}}} | ||
| + | |- | ||
| + | ! Bus route or line | ||
| + | | {{{line}}} | ||
| + | |- | ||
| + | ! Bus operator | ||
| + | | {{{operator}}} | ||
| + | |- | ||
| + | ! Bus owner | ||
| + | | {{{owner}}} | ||
| + | |- | ||
| + | |- | ||
| + | ! Type of incident | ||
| + | | {{{type}}} | ||
| + | |- | ||
| + | {{#if:{{{cause|}}}| | ||
| + | ! Cause | ||
| + | {{!}} {{{cause}}} }} | ||
| + | |- | ||
| + | ! colspan=2 style="text-align: center; background-color: #efefef" | Statistics | ||
| + | |- | ||
| + | ! Buses | ||
| + | | {{{buses}}} | ||
| + | |- | ||
| + | {{#if:{{{others|}}}| | ||
| + | ! Other vehicles | ||
| + | {{!}} {{{others}}} }} | ||
| + | |- | ||
| + | {{#if:{{{pax|}}}| | ||
| + | ! Passengers | ||
| + | {{!}} {{{pax}}} }} | ||
| + | |- | ||
| + | {{#if:{{{peds|}}}| | ||
| + | ! Pedestrians | ||
| + | {{!}} {{{peds}}} }} | ||
| + | |- | ||
| + | ! Deaths | ||
| + | | {{{deaths}}} | ||
| + | |- | ||
| + | {{#if:{{{injuries|}}}| | ||
| + | ! Injuries | ||
| + | {{!}} {{{injuries}}} }} | ||
| + | |- | ||
| + | {{#if:{{{damage|}}}| | ||
| + | ! Vehicle damage | ||
| + | {{!}} {{{damage}}} }} | ||
| + | |- | ||
| + | {{#if:{{{property|}}}| | ||
| + | ! Property damage | ||
| + | {{!}} {{{property}}} }} | ||
|} | |} | ||
| + | |||
| + | {{Documentation subpage}} | ||
| + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| + | ===Usage=== | ||
| + | All parameters are necessary with the exception of those marked <sup>†</sup>: | ||
| + | *'''<code>boxwidth</code>'''<sup>†</sup> – width of infobox; default is 290px (the image can push the box wider). | ||
| + | ====Image section==== | ||
| + | *'''<code>image</code>'''<sup>†</sup> – name of the image file (e.g. <code>Bus-disaster-photo.jpg</code>). | ||
| + | *'''<code>image_width</code>'''<sup>†</sup> – width of image; default is 282px. | ||
| + | *'''<code>caption</code>'''<sup>†</sup> – a caption to explain the image, if needed (not to state the obvious). | ||
| + | ====Details section==== | ||
| + | *'''<code>title</code>''' – name of the bus incident, usually the same as the title of the article | ||
| + | *'''<code>date</code>''' – date of the incident in plain text (e.g. 1 January 1980 or January 1 1980, depending on local custom) | ||
| + | *'''<code>time</code>''' – time of the incident | ||
| + | *'''<code>location</code>''' – location (suburb) of where the incident occurred, wiki-linked for convenience if necessary (e.g. <code><nowiki>[[Camp Mountain, Queensland]]</nowiki></code>) | ||
| + | <ul> | ||
| + | =====Location placement===== | ||
| + | The following should all be used together, however <code>location-dist</code> (or <code>location-dist-mi</code>) is the element to cause this to work/appear: | ||
| + | *'''<code>location-dist</code>'''<sup>†</sup> – direct distance (not rail distance) from capital city '''as a plain number''', limited to two decimal points (e.g. <code>49.53</code>, <code>49.5</code> or <code>50</code>; no need to be too accurate with decimal points if distance is some hundreds of kilometers away, e.g. <code>349</code> not <code>349.1</code>) | ||
| + | **'''<code>location-dist-mi</code>'''<sup>†</sup> – as above, but where metric measurements are not used; will return a conversion of miles into kilometers | ||
| + | *'''<code>location-dir</code>''' – direction from capital city as a simple letter abbreviation (e.g. <code>N</code>, <code>NW</code> or <code>NNW</code>) | ||
| + | *'''<code>location-city</code>''' – name of capital city of the state the incident occurred in, wiki-linked and piped if necessary for convenience (e.g. <code><nowiki>[[Brisbane]]</nowiki></code> or <code><nowiki>[[Perth, Western Australia|]]</nowiki></code>) – pipe the location if the link contains the country, and use <code>country</code> below | ||
| + | </ul> | ||
| + | *'''<code>country</code>''' – provide the country, as a "shortcut" flag template, where the incident occurred (e.g. <code><nowiki>{{NIC}}</nowiki></code> [returns {{NIC}}], or <code><nowiki>{{AUS}}</nowiki></code> [returns {{AUS}}]) – see [[:Category:Flag templates]] | ||
| + | *'''<code>line</code>''' – bus line or route the incident occurred on, wiki-linked and piped for convenience ''if'' an article has been created for it (e.g. <code><nowiki>[[Metro Quickbus Line]]</nowiki></code>) | ||
| + | *'''<code>operator</code>''' – operator of the bus in the incident | ||
| + | *'''<code>owner</code>''' - owner of bus in the incident | ||
| + | *'''<code>type</code>''' – type of incident (e.g. <code>Collision</code>) | ||
| + | *'''<code>cause</code>'''<sup>†</sup> – cause of the incident '''if officially found/released''' (e.g. <code>Excessive speed</code>) | ||
| + | ====Statistics section==== | ||
| + | *'''<code>buses</code>''' – number of buses involved in the incident | ||
| + | *'''<code>pax</code>'''<sup>†</sup> – number of passengers on-board | ||
| + | *'''<code>peds</code>'''<sup>†</sup> - number of pedestrians involved | ||
| + | *'''<code>deaths</code>''' – number of deaths due to the incident (usually passengers on the bus and driver) | ||
| + | *'''<code>injuries</code>'''<sup>†</sup> – number of injured due to the incident (usually passengers on the bus and driver) | ||
| + | *'''<code>damage</code>'''<sup>†</sup> – damage to vehicles caused by the incident | ||
| + | *'''<code>property</code>'''<sup>†</sup> – damage to property (other than vehicles) caused by the incident | ||
| + | ===Co-ordinates=== | ||
| + | Use, for example, <code><nowiki>{{coord|-27.3972|152.8956|display=title}}</nowiki></code> at the bottom of the page of the incident before categories (not in the Infobox) to provide the co-ordinates of where the incident occurred which, with <code>display=title</code>, will be displayed at the top of the article, above the Infobox. | ||
| + | |||
| + | === Complete list === | ||
| + | <pre>{{Infobox bus accident | ||
| + | |title = | ||
| + | |boxwidth = | ||
| + | |image = | ||
| + | |image_width = | ||
| + | |caption = | ||
| + | |date = | ||
| + | |time = | ||
| + | |location = | ||
| + | |location-dist = | ||
| + | |location-dist-mi = | ||
| + | |location-dir = | ||
| + | |location-city = | ||
| + | |country = | ||
| + | |line = | ||
| + | |operator = | ||
| + | |owner = | ||
| + | |type = | ||
| + | |cause = | ||
| + | |buses = | ||
| + | |other = | ||
| + | |pax = | ||
| + | |peds = | ||
| + | |deaths = | ||
| + | |injuries = | ||
| + | |damage = | ||
| + | |property = | ||
| + | }}</pre> | ||
| + | |||
<noinclude>{{documentation}}<!-- Please add categories and interwikis to the /doc subpage. Thank you --> | <noinclude>{{documentation}}<!-- Please add categories and interwikis to the /doc subpage. Thank you --> | ||
[[ca:Plantilla:Infotaula accident d'autocar]] | [[ca:Plantilla:Infotaula accident d'autocar]] | ||
[[th:แม่แบบ:กล่องข้อมูล อุบัติเหตุจากยานพาหนะ]] | [[th:แม่แบบ:กล่องข้อมูล อุบัติเหตุจากยานพาหนะ]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:57, 2 April 2010
| Title of bus disaster | |
|---|---|
| [[Image: |282px]] | |
| {{{caption}}} | |
| Details | |
| Date | {{{date}}} |
| Location | {{{location}}} |
| Country | {{{country}}} |
| Bus route or line | {{{line}}} |
| Bus operator | {{{operator}}} |
| Bus owner | {{{owner}}} |
| Type of incident | {{{type}}} |
| Statistics | |
| Buses | {{{buses}}} |
| Deaths | {{{deaths}}} |
Contents
Usage
All parameters are necessary with the exception of those marked †:
boxwidth† – width of infobox; default is 290px (the image can push the box wider).
Image section
image† – name of the image file (e.g.Bus-disaster-photo.jpg).image_width† – width of image; default is 282px.caption† – a caption to explain the image, if needed (not to state the obvious).
Details section
title– name of the bus incident, usually the same as the title of the articledate– date of the incident in plain text (e.g. 1 January 1980 or January 1 1980, depending on local custom)time– time of the incidentlocation– location (suburb) of where the incident occurred, wiki-linked for convenience if necessary (e.g.[[Camp Mountain, Queensland]])
location-dist† – direct distance (not rail distance) from capital city as a plain number, limited to two decimal points (e.g.49.53,49.5or50; no need to be too accurate with decimal points if distance is some hundreds of kilometers away, e.g.349not349.1)location-dist-mi† – as above, but where metric measurements are not used; will return a conversion of miles into kilometers
location-dir– direction from capital city as a simple letter abbreviation (e.g.N,NWorNNW)location-city– name of capital city of the state the incident occurred in, wiki-linked and piped if necessary for convenience (e.g.[[Brisbane]]or[[Perth, Western Australia|]]) – pipe the location if the link contains the country, and usecountrybelow
Location placement
The following should all be used together, however location-dist (or location-dist-mi) is the element to cause this to work/appear:
country– provide the country, as a "shortcut" flag template, where the incident occurred (e.g.{{NIC}}[returns Template:NIC], or{{AUS}}[returns
Australia]) – see Category:Flag templatesline– bus line or route the incident occurred on, wiki-linked and piped for convenience if an article has been created for it (e.g.[[Metro Quickbus Line]])operator– operator of the bus in the incidentowner- owner of bus in the incidenttype– type of incident (e.g.Collision)cause† – cause of the incident if officially found/released (e.g.Excessive speed)
Statistics section
buses– number of buses involved in the incidentpax† – number of passengers on-boardpeds† - number of pedestrians involveddeaths– number of deaths due to the incident (usually passengers on the bus and driver)injuries† – number of injured due to the incident (usually passengers on the bus and driver)damage† – damage to vehicles caused by the incidentproperty† – damage to property (other than vehicles) caused by the incident
Co-ordinates
Use, for example, {{coord|-27.3972|152.8956|display=title}} at the bottom of the page of the incident before categories (not in the Infobox) to provide the co-ordinates of where the incident occurred which, with display=title, will be displayed at the top of the article, above the Infobox.
Complete list
{{Infobox bus accident
|title =
|boxwidth =
|image =
|image_width =
|caption =
|date =
|time =
|location =
|location-dist =
|location-dist-mi =
|location-dir =
|location-city =
|country =
|line =
|operator =
|owner =
|type =
|cause =
|buses =
|other =
|pax =
|peds =
|deaths =
|injuries =
|damage =
|property =
}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
ca:Plantilla:Infotaula accident d'autocar th:แม่แบบ:กล่องข้อมูล อุบัติเหตุจากยานพาหนะ