Difference between revisions of "Template:Infobox bus company"

From blackwiki
Jump to navigation Jump to search
imported>Interiot
(pull |- 's inside the {{#if's, and otherwise try to avoid the blank lines being generated which adds extra space at the top of articles)
imported>MB
(rmv slogan as previously done at related infoboxes (company, airline, etc), promotional)
 
(77 intermediate revisions by 38 users not shown)
Line 1: Line 1:
{| class="infobox bordered" style="width: 23em; text-align: left; font-size: 90%"
+
{{Infobox
{{#if: {{{logo|}}}|
+
| title    = {{{name}}}
{{!}} colspan="2"  align="center" {{!}} [[Image:{{{logo|}}}|{{{logo_size|200}}}px|logo]]}}
+
 
|- align="center" bgcolor="#4682B4"
+
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|sizedefault=frameless|alt={{{logo_alt|}}}}}
|colspan=2| <font color=white><font size=larger>'''{{{name}}}'''
+
| image2  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=250px|alt={{{alt|}}}}}
|-
+
| caption2 = {{{image_caption|}}}
{{#if: {{{image|}}}|
+
 
{{!}} colspan="2" align="center" {{!}} [[Image:{{{image|}}}|{{{image_size|250}}}px|Image]]{{#if: {{{image_caption|}}}|<br><small>{{{image_caption}}}</small> }} }}
+
| label1  = Formerly
{{#if: {{{company_slogan|}}}|
+
| class1  = nickname
{{!}}-
+
| data1    = {{{former_name|}}}
! Company Slogan
+
| label3  = Parent
{{!}} ''{{{company_slogan|}}}''}}
+
| data3    = {{{parent|}}}
{{#if: {{{parent|}}}|
+
| label4  = Founded
{{!}}-
+
| data4    = {{{founded|}}}
! Parent Company
+
| label5  = Commenced operation
{{!}} {{{parent|}}}}}
+
| data5    = {{{commenced|}}}
|-
+
| label6  = Ceased operation
! Founded
+
| data6    = {{{ceased|}}}
| {{{founded}}}
+
| label7  = Defunct
|-
+
| data7    = {{{defunct|}}}
! Headquarters
+
| label8  = Headquarters
| {{{headquarters}}}
+
| data8    = {{{headquarters|}}}
{{#if: {{{locale|}}}|
+
| label9  = Locale
{{!}}-
+
| data9    = {{{locale|}}}
! Locale
+
| label10  = Service area
{{!}} {{{locale|}}}}}
+
| data10    = {{{service_area|}}}
{{#if: {{{service_area|}}}|
+
| label11  = Service type
{{!}}-
+
| data11  = {{{service_type|}}}
! Service Area
+
| label12  = Alliance
{{!}} {{{service_area|}}}}}
+
| data12  = {{{alliance|}}}
|-
+
| label13  = Routes
! Service Type
+
| data13  = {{{routes|}}}
| {{{service_type}}}
+
| label14  = Stops
{{#if: {{{alliance|}}}|
+
| data14  = {{{stops|}}}
{{!}}-
+
| label15  = Destinations
! Alliance
+
| data15  = {{{destinations|}}}
{{!}} {{{alliance|}}}}}
+
| label16  = Hubs
{{#if: {{{routes|}}}|
+
| data16  = {{{hubs|}}}
{{!}}-
+
| label17  = Stations
! Routes
+
| data17  = {{{stations|}}}
{{!}} {{{routes|}}}}}
+
| label18  = Lounge
{{#if: {{{stops|}}}|
+
| data18  = {{{lounge|}}}
{{!}}-
+
| label19  = Depots
! Stops
+
| data19  = {{{depots|}}}
{{!}} {{{stops|}}}}}
+
| label20  = Fleet
{{#if: {{{destinations|}}}|
+
| data20  = {{{fleet|}}}
{{!}}-
+
| label21  = Daily ridership
! Destinations
+
| data21  = {{{ridership|}}}
{{!}} {{{destinations|}}}}}
+
| label22  = Annual ridership
{{#if: {{{hubs|}}}|
+
| data22  = {{#if:{{{annual ridership|}}}|{{{annual ridership}}}|{{{annual_ridership|}}}}}
{{!}}-
+
| label23  = Fuel type
! Hubs
+
| data23  = {{{fuel_type|}}}
{{!}} {{{hubs|}}}}}
+
| label24  = Operator
{{#if: {{{stations|}}}|
+
| data24  = {{{operator|}}}
{{!}}-
+
| label25  = Chief executive
! Stations
+
| data25  = {{{ceo|}}}
{{!}} {{{stations|}}}}}
+
| label26  = {{#if:{{{leader_type|}}}|{{{leader_type}}}|Manager}}
{{#if: {{{lounge|}}}|
+
| data26  = {{{leader|}}}
{{!}}-
+
| label27  = Website
! Lounge
+
| data27  = {{{website|}}}
{{!}} {{{lounge|}}}}}
+
| below    = {{#if:{{{map|}}}|
{{#if: {{{fleet|}}}|
+
<table style="width:100%; margin:0; border:none;" class="collapsible {{{map_state|}}}">
{{!}}-
+
<tr style="background-color: #efefef;"><th style="text-align: center;">{{#if:{{{map_name|}}}|{{{map_name}}}|System map}}</th></tr>
! Fleet
+
<tr><td style="text-align:center">
{{!}} {{{fleet|}}}}}
+
{{{map}}}
{{#if: {{{ridership|}}}|
+
</td></tr></table>
{{!}}-
+
}}
! Daily Ridership
+
}}<noinclude>
{{!}} {{{ridership|}}}}}
+
{{Documentation}}</noinclude>
{{#if: {{{fuel_type|}}}|
 
{{!}}-
 
! Fuel_type
 
{{!}} {{{fuel_type|}}}}}
 
|-
 
! Operator
 
| {{{operator}}}
 
{{#if: {{{ceo|}}}|
 
{{!}}-
 
! Chief Executive
 
{{!}} {{{ceo|}}}}}
 
{{#if: {{{website|}}}|
 
{{!}}-
 
! Website
 
{{!}} {{{website|}}}}}
 
|}<noinclude>
 
<br>
 
<div style="display:inline;
 
width:50%; float:left;">
 
<pre>
 
{{Infobox Bus transit
 
| name            =
 
| logo            =
 
| logo_size      =
 
| image          =
 
| image_size      =
 
| image_caption  =
 
| company_slogan  =
 
| parent          =
 
| founded        =
 
| headquarters    =
 
| locale          =
 
| service_area    =
 
| service_type    =
 
| alliance        =
 
| routes          =
 
| destinations    =
 
| stops          =
 
| hubs            =
 
| stations        =
 
| lounge          =
 
| fleet          =
 
| ridership      =
 
| fuel_type      =
 
| operator        =
 
| ceo            =
 
| website        =
 
}}
 
</pre>
 
</div>
 
<br><br><br><br><br><br><br><br><br><br><br>
 
[[Category:transportation infobox templates|Bus]]
 
[[Category:business infobox templates|Bus]]
 
[[Category:Templates using ParserFunctions|Bus]]
 
</noinclude>
 

Latest revision as of 03:33, 6 February 2021

{{{name}}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Skeleton

Template:Parameter names example

{{Infobox bus company
| name             = 
| logo             = 
| logo_size        = 
| logo_alt         =
| image            = 
| image_size       = 
| alt              =
| image_caption    = 
| parent           = 
| founded          = <!-- {{Start date|YYYY|MM|DD}} -->
| commenced        =
| ceased           =
| defunct          =
| headquarters     = 
| locale           = 
| service_area     = 
| service_type     = 
| alliance         = 
| routes           = 
| stops            = 
| destinations     = 
| hubs             = 
| stations         = 
| lounge           = 
| depots           = 
| fleet            = 
| ridership        = <!-- Daily ridership --> 
| annual_ridership =
| fuel_type        = 
| operator         = 
| ceo              = 
| leader_type      = 
| leader           = 
| website          = <!-- {{URL |example.com}} --> 
| map              =
| map_name         =
| map_state        = <!-- show or collapsed -->
}}

Description of fields

Parameter Description Example
name The name of the bus company. Harders Coaches
logo The logo of the bus company. Harders_coaches_logo.png
logo_size Size of the logo. 200px
logo_alt Alternative text for the logo A logo with a red bus in a blue circle
image Image of a bus in the company's fleet. Harders coaches bus 862 at Longleat.jpg
image_size Size of the above image. 280px
alt Alternative text for the image A red bus in a town centre
image_caption Caption for the image. Harders Bus at Longleat
parent Parent company of the operator. Centerbus
founded Year the company was founded, and if possible, who by. Use {{Start date}}. 1996 by Thomas Hardy.
commenced The date the company commenced operations.
ceased The date the company ceased operations.
defunct If the company is defunct or not. Use {{End date}} if a date is given No
headquarters The headquarters of the company, operational and registered office.
  • Operational:Harders Coaches Ltd, Bestentime Garage, Fleet Street, Longleat, England.
  • Registered office:Centerbus Ltd, 37 Wenlock Way, Leicester, Leicestershire, England.
locale The general area of operation. Longleat, Wiltshire, UK
service_area The counties in which it operates. Wiltshire, Somerset
service_type Service type:Bus or coach or express. Bus
alliance Group alliance with other companies. Route 19 shared with Stagecoach Wiltshire.
routes How many bus/coach routes are operated by them. 34
stops Major stops along routes. Use {{Flatlist}}.
  • Warminster bus station
  • Frome market place
destinations Major destinations on those routes. Use {{Flatlist}}.
  • Longleat
  • Horningsham
  • Warminster
  • Frome
hubs Places with lots of buses. Longleat.
stations Stations along the routes. Warminster Bus Station
lounge Lounges in the stations. N/A
depots Depots owned by the company. Use {{Flatlist}}.
  • Bestentime Garage
  • Fleet Street
  • Longleat
  • Wiltshire
fleet Buses in the fleet. Use {{Flatlist}}.
  • Optare Solo
  • Plaxton Centro
  • Plaxton Beaver
  • Enviro 400
ridership Daily ridership. 600 passengers per day approx.
annual_ridership Yearly ridership. 2000 passengers per year approx.
fuel_type The fuel type used in the buses. Diesel
operator The operator. Thomas C. Hardy Coaches, Ltd
ceo The CEO. Mr Thomas Hardy Jr.
leader_type Leader type. Operational manager.
leader The CEO. Mr Thomas Hardy Jr.
website The official website of the company. Use {{URL}}. {{URL|hardysbuseslongleat.com}}
map Image or RDT of a system map [[File:My_system_map.svg]]
map_name Name of map (default is "System Map") Map of XYZ Company
map_state whether the map is displayed or collapsed by default collapsed

Example

Bowers Coaches
A red bus pulled over at a bus stop
Bowers Bus at Hayfield
ParentCentrebus Group
Founded1952 (1952) by
Eric W. Bowers
Defunct2012 (2012) (merged with Trent Barton's Dove Holes & Buxton operations to form High Peak)
HeadquartersOperational: Aspincroft Garage, Town End, Chapel-en-le-Frith, High Peak, Derbyshire
Registered Office: Centrebus, 37 Wenlock Way, Leicester, Leicestershire, LE4 9HU
Locale
Service area
Service typeBus
Hubs
Fleet
Fuel typeDiesel
OperatorEric W. Bowers Coaches Limited
WebsiteTemplate:URL
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox bus company
| name            = Bowers Coaches
| image           = Bowers Bus L172EKG 62 at Hayfield.jpg
| image_size      = 280px
| alt             = A red bus pulled over at a bus stop
| image_caption   = Bowers Bus at Hayfield
| parent          = [[Centrebus|Centrebus Group]]
| founded         = {{Start date|1952}} by<br>Eric W. Bowers
| defunct         = {{End date|2012}} (merged with [[Trent Barton|Trent Barton's]] [[Dove Holes]] & [[Buxton]] operations to form [[High Peak (bus company)|High Peak]])
| headquarters    = '''Operational''': Aspincroft Garage, Town End, [[Chapel-en-le-Frith]], [[High Peak, Derbyshire|High Peak]], [[Derbyshire]]<br>'''[[Registered Office]]''': [[Centrebus]], 37 Wenlock Way, [[Leicester]], [[Leicestershire]], LE4 9HU
| locale          = {{Flatlist|
* [[North West England|North West]]
* [[East Midlands]]
}}
| service_area    = {{Flatlist|
* [[Greater Manchester]]
* [[Derbyshire]]
* [[Cheshire East]]
}}
| service_type    = [[Bus]]
| hubs            = {{Flatlist|
* [[Buxton]]
* [[Chapel-en-le-Frith]]
* [[Glossop]]
* [[Macclesfield]]
* [[New Mills]]
}}
| fleet           = {{Flatlist|
* [[Optare Solo]]
* [[Plaxton Beaver]]
* [[Plaxton Centro]]
* [[Alexander Strider]]
}}
| fuel_type       = [[diesel fuel|Diesel]]
| operator        = Eric W. Bowers Coaches Limited
| website         = {{URL|bowersbuses.com}}
}}

See also

ar:قالب:صندوق معلومات حافلات نقل eo:Ŝablono:Informkesto bustransporto ja:Template:Infobox bus transit