Difference between revisions of "Template:Infobox bus accident"

From blackwiki
Jump to navigation Jump to search
imported>Folklore1
(infobox & doc borrowed from rail with some revisions for bus)
Line 1: Line 1:
{|class="infobox vevent" style="width: 25em; text-align: left; font-size: 95%;"
+
{| class="infobox vcard" style="width: {{{boxwidth|22em}}}; font-size: 88%; line-height: 1.5em; text-align: left"
|+<big class="summary">'''{{{title}}}'''</big>
+
! colspan=2 class="fn org" style="text-align: center; background-color: #AA5344; font-size: 125%; color: white" | {{{title|Title of bus disaster}}}
 
|-
 
|-
|{{#if:{{{image|}}}| colspan="2" align="center" {{!}} {{{image}}} {{#if:{{{caption|}}}|<br/><small>{{{caption}}}}}}}
+
{{#if:{{{image<includeonly>|</includeonly>}}}|
|-
+
{{!}} colspan=2 style="text-align: center" {{!}} [[Image: {{{image|}}}|{{{image_width|282px}}}]]
!colspan="2" align="center" bgcolor="#AA5344"|Details
 
|-
 
!Date and time:
 
| {{{date}}}
 
|-
 
!Location:
 
|<span class="location">{{{location}}}</span>
 
|-
 
{{#if: {{{coordinates|}}}|
 
!Coordinates:
 
{{!}} {{{coordinates}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{bus|}}}|
+
{{#if:{{{caption<includeonly>|</includeonly>}}}|  
!Bus info:
+
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
{{!}} {{{bus}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!colspan="2" align="center" bgcolor="#AA5344"|Statistics
+
! colspan=2 style="text-align: center; background-color: #efefef" | Details
 
|-
 
|-
{{#if: {{{vehicles|}}}|
+
! Date
!Vehicles:
+
| {{{date}}}
{{!}} {{{vehicles}}}
+
|-
 +
{{#if:{{{time|}}}|  
 +
! Time
 +
{{!}} {{{time}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{pax|}}}|
+
! Location
!Total people involved:
+
| class="label" | {{{location}}}
{{!}} {{{pax}}}
+
|-
{{!}}-
+
{{#if:{{{location-dist|}}}|
}}
+
{{!}} <!-- deliberately blank to follow-on from Location above -->
{{#if: {{{deaths|}}}|
+
{{!}} {{#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}}} }}
!Deaths:
+
}} {{#if:{{{location-dist-mi|}}}|
{{!}} {{{deaths}}}
+
{{!}} <!-- 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: {{{injuries|}}}|
 
!Injuries:
 
{{!}} {{{injuries}}}
 
{{!}}-
 
}}
 
{{#if: {{{damage|}}}|
 
!Damage:
 
{{!}} {{{damage}}}
 
{{!}}-
 
 
}}
 
}}
 +
|-
 +
! 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}}}


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 article
  • date – date of the incident in plain text (e.g. 1 January 1980 or January 1 1980, depending on local custom)
  • time – time of the incident
  • location – location (suburb) of where the incident occurred, wiki-linked for convenience if necessary (e.g. [[Camp Mountain, Queensland]])
    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:

    • location-dist – direct distance (not rail distance) from capital city as a plain number, limited to two decimal points (e.g. 49.53, 49.5 or 50; no need to be too accurate with decimal points if distance is some hundreds of kilometers away, e.g. 349 not 349.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, NW or NNW)
    • 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 use country below
  • 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 templates
  • line – 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 incident
  • owner - owner of bus in the incident
  • type – 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 incident
  • pax – number of passengers on-board
  • peds - number of pedestrians involved
  • deaths – 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 incident
  • property – 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 =
}}
Template documentation[create]

ca:Plantilla:Infotaula accident d'autocar th:แม่แบบ:กล่องข้อมูล อุบัติเหตุจากยานพาหนะ