Difference between revisions of "Template:Infobox bus accident"

From blackwiki
Jump to navigation Jump to search
imported>Hbdragon88
m (add noinclude)
imported>Propaniac
(Reverting to January version, as I think the April changes weren't implemented properly and resulted in the infobox being screwed-up on articles using it. (If I'm wrong I'll revert myself.))
Line 1: Line 1:
{| class="infobox vcard" style="width: {{{boxwidth|22em}}}; font-size: 88%; line-height: 1.5em; text-align: left"
+
{|class="infobox vevent" style="width: 25em; text-align: left; font-size: 95%;"
! colspan=2 class="fn org" style="text-align: center; background-color: #AA5344; font-size: 125%; color: white" | {{{title|Title of bus disaster}}}
+
|+<big class="summary">'''{{{title}}}'''</big>
 
|-
 
|-
{{#if:{{{image<includeonly>|</includeonly>}}}|
+
|{{#if:{{{image|}}}| colspan="2" align="center" {{!}} {{{image}}} {{#if:{{{caption|}}}|<br/><small>{{{caption}}}}}}}
{{!}} 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:{{{caption<includeonly>|</includeonly>}}}|  
+
{{#if: {{{bus|}}}|
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
+
!Bus info:
 +
{{!}} {{{bus}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
! colspan=2 style="text-align: center; background-color: #efefef" | Details
+
!colspan="2" align="center" bgcolor="#AA5344"|Statistics
 
|-
 
|-
! Date
+
{{#if: {{{vehicles|}}}|
| {{{date}}}
+
!Vehicles:
|-
+
{{!}} {{{vehicles}}}
{{#if:{{{time|}}}|  
+
{{!}}-
! Time
+
}}
{{!}} {{{time}}}
+
{{#if: {{{pax|}}}|
 +
!Total people involved:
 +
{{!}} {{{pax}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{deaths|}}}|
 +
!Deaths:
 +
{{!}} {{{deaths}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{injuries|}}}|
 +
!Injuries:
 +
{{!}} {{{injuries}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
! Location
+
{{#if: {{{damage|}}}|
| class="label" | {{{location}}}
+
!Damage:
|-
+
{{!}} {{{damage}}}
{{#if:{{{location-dist|}}}|
+
{{!}}-
{{!}} <!-- deliberately blank to follow-on from Location above -->
 
{{!}} {{#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}}} }}
 
 
}}
 
}}
|-
+
|}
! Country
+
<noinclude>{{documentation}}<!-- Please add categories and interwikis to the /doc subpage. Thank you -->
| {{{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}}} }}
 
|}<noinclude>
 
 
 
{{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>
 
 
 
{{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 03:12, 23 May 2010

{{{title}}}
Details
Date and time: {{{date}}}
Location: {{{location}}}
Statistics
Template documentation[create]

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