Template:Infobox bus: Difference between revisions

From Australian Enthusiasts Wiki
No edit summary
Ensure all types of entry/left service dates are handled properly
 
(25 intermediate revisions by the same user not shown)
Line 5: Line 5:
     <image source="image1">
     <image source="image1">
         <caption source="caption1"/>
         <caption source="caption1"/>
        <alt source="alt1">
            <default>{{{caption1}}}</default>
        </alt>
     </image>
     </image>
     <image source="image2">
     <image source="image2">
         <caption source="caption2"/>
         <caption source="caption2"/>
        <alt source="alt2">
            <default>{{{caption2}}}</default>
        </alt>
    </image>
    <image source="image3">
        <caption source="caption3"/>
        <alt source="alt3">
            <default>{{{caption3}}}</default>
        </alt>
     </image>
     </image>
     <group>
     <group>
Line 13: Line 25:
         <data source="chassis">
         <data source="chassis">
             <label>Chassis</label>
             <label>Chassis</label>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown chassis model]]</includeonly></default>
             <default>''Currently under investigation''{{NsCatO|Buses with unknown model|{{{force_cat|}}}}}</default>
         </data>
         </data>
         <data source="fuel">
         <data source="fuelling">
             <label>Fuelling</label>
             <label>Fuelling</label>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown fuelling]]</includeonly></default>
             <default>''Currently under investigation''{{NsCatO|Buses with unknown fuelling|{{{force_cat|}}}}}</default>
         </data>
         </data>
         <data source="engine">
         <data source="engine">
             <label>Engine</label>
             <label>Engine</label>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown engine model]]</includeonly></default>
             <default>{{#ifeq: {{{fuelling|}}}|Electric||''Currently under investigation''{{NsCatO|Buses with unknown engine model|{{{force_cat|}}}}} }}</default>
        </data>
        <data source="motor">
            <label>Motor</label>
            <default></default>
        </data>
        <data source="gearbox">
            <label>Gearbox</label>
            <default>''Currently under investigation''{{NsCatO|Buses with unknown gearbox model|{{{force_cat|}}}}}</default>
         </data>
         </data>
         <data source="body">
         <data source="body">
             <label>Body</label>
             <label>Body</label>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown body]]</includeonly></default>
             <default>''Currently under investigation''{{NsCatO|Buses with unknown body|{{{force_cat|}}}}}</default>
        </data>
        <data source="body_serial_no">
            <label>Body serial number</label>
            <default>''Currently under investigation''{{NsCatO|Buses with unknown body serial number|{{{force_cat|}}}}}</default>
        </data>
        <data source="body_date">
            <label>Date bodied</label>
            <default>''Currently under investigation''{{NsCatO|Buses with unknown date bodied|{{{force_cat|}}}}}</default>
        </data>
        <data source="rego">
            <label><span class="help" title="Registration number">Registration number</span></label>
            <default>''Currently under investigation''{{NsCatO|Buses with unknown registration number|{{{force_cat|}}}}}</default>
        </data>
        <data source="vin">
            <label>[[wikipedia:Vehicle identification number|VIN]]</label>
            <default>''Currently under investigation''{{NsCatO|Buses with unknown VIN|{{{force_cat|}}}}}</default>
         </data>
         </data>
     </group>
     </group>
     <group>
     <group>
         <header>Operator information</header>
         <header>Operator information</header>
         <data source="fleet_number">
         <data source="operator">
             <label>Operator</label>
             <label>Operator</label>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown operator]]</includeonly></default>
             <default>''Currently under investigation''{{NsCatO|Buses with unknown operator|{{{force_cat|}}}}}</default>
         </data>
         </data>
         <data source="fleet_number">
         <data source="fleet_number">
             <label>Fleet number</label>
             <label>Fleet number</label>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown fleet number]]</includeonly></default>
             <default>''Currently under investigation''{{NsCatO|Buses with unknown fleet number|{{{force_cat|}}}}}</default>
         </data>
         </data>
         <data source="status">
         <data source="status">
             <label>Status</label>
             <label>Status</label>
             <format>{{#switch: {{{status|in service}}}
             <format>{{#switch: {{lc:{{{status|in service}}} }}
<!-- In service -->
<!-- In service -->
|inservice = In service
|inservice = In service{{NsCatO|Buses that are in service|{{{force_cat|}}}}}
|in service = In service
|in service = In service[[Category:Buses that are in service]]
|service = In service<noinclude>
|service = In service[[Category:Buses that are in service]]<noinclude>
<!-- Undergoing testing --></noinclude>
|test = Undergoing testing[[Category:Buses that are undergoing testing]]
|testing = Undergoing testing[[Category:Buses that are undergoing testing]]<noinclude>
<!-- Temporarily withdrawn --></noinclude>
<!-- Temporarily withdrawn --></noinclude>
|tempwithdrawn = Temporarily withdrawn
|tempwithdrawn = Temporarily withdrawn[[Category:Buses that have been temporarily withdrawn]]
|temporarywithdrawn = Temporarily withdrawn
|temporarywithdrawn = Temporarily withdrawn[[Category:Buses that have been temporarily withdrawn]]
|temporarily withdrawn = Temporarily withdrawn<noinclude>
|temporarily withdrawn = Temporarily withdrawn[[Category:Buses that have been temporarily withdrawn]]<noinclude>
<!-- Withdrawn --></noinclude>
<!-- Withdrawn --></noinclude>
|withdrawn = Withdrawn<noinclude>
|withdrawn = Withdrawn[[Category:Buses that have been withdrawn]][[Category:Buses that are no longer in service]]<noinclude>
<!-- Retired --></noinclude>
<!-- Retired --></noinclude>
|retired = Retired<noinclude>
|retired = Retired[[Category:Buses that have been retired]][[Category:Buses that are no longer in service]]<noinclude>
<!-- Scrapped --></noinclude>
<!-- Scrapped --></noinclude>
|scrapped = Scrapped<noinclude>
|scrapped = Scrapped[[Category:Buses that have been scrapped]][[Category:Buses that are no longer in service]]<noinclude>
<!-- Written off --></noinclude>
<!-- Written off --></noinclude>
|writeoff = Written off
|writeoff = Written off[[Category:Buses that have been written off]][[Category:Buses that are no longer in service]]
|written off = Written off<noinclude>
|written off = Written off[[Category:Buses that have been written off]][[Category:Buses that are no longer in service]]<noinclude>
<!-- Default --></noinclude>
<!-- Default --></noinclude>
|default = <span class="error">Invalid <code>status</code> "{{{status|}}}".</span>[[Category:Pages using Template:Infobox bus with errors]]</span>
|<span class="error">Invalid <code>status</code> "{{{status|}}}".</span>{{NsCatO|Buses with unknown status|{{{force_cat|}}}}}
}}
}}
             </format>
             </format>
             <default>''Currently under investigation''<includeonly>[[Category:Buses with unknown status]]</includeonly></default>
             <default>''Currently under investigation''{{NsCatO|Buses with unknown status|{{{force_cat|}}}}}</default>
        </data>
        <data source="entered_service">
            <label>Entered service</label>
            <format>{{{entered_service}}}{{#if:{{{left_service|}}}||&nbsp;(age {{#expr: {{CURRENTYEAR}} - {{#time: Y|{{{entered_service}}} }}}})}}</format>
            <default>''Currently under investigation''{{NsCatO|Buses with unknown year entered service|{{{force_cat|}}}}}</default>
        </data>
        <data source="left_service">
            <label>Left service</label>
            <format>{{{left_service}}} (aged {{#expr: {{#time: Y|{{{left_service}}} }} - {{#time: Y|{{{entered_service|0}}} }}}})</format>
        </data>
        <data source="depot">
            <label>Depot</label>
         </data>
         </data>
     </group>
     </group>
Line 76: Line 127:
         </data>
         </data>
   </group>
   </group>
  </infobox>
  </infobox>{{NsCatO|Buses|{{{force_cat|}}}}}<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:06, 4 May 2025

Template documentation (for the above template, sometimes hidden or invisible)

TemplateData[edit source]

Displays information on individual buses.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Image 1image1

File name for the first image on the infobox.

Example
Brisbane Metro 9001 under testing.jpg
Filesuggested
Image caption 1caption1

An image caption to accompany image 1. Also acts as alt text if not explicity provided.

Example
Top down view of the hard drive.
Contentsuggested
Alt text 1alt1

Alt text associated with image 1.

Default
{{{caption1}}}
Example
9001 under test at [[King George Square busway station]].
Stringoptional
Image 2image2

File name for the second image on the infobox.

Fileoptional
Image caption 2caption2

An image caption to accompany image 2. Also acts as alt text if not explicitly provided.

Contentoptional
Alt text 2alt2

Alt text associated with image 2.

Default
{{{caption2}}}
Stringoptional
Image 3image3

File name for the third image on the infobox.

Fileoptional
Image caption 3caption3

An image caption to accompany image 3. Also acts as alt text if not explicitly provided.

Stringoptional
Alt text 3alt3

Alt text associated with image 3.

Default
{{{caption3}}}
Stringoptional
Chassischassis

The mechanical chassis that this bus is based on.

Example
[[MAN 18.310 Diesel]]
Stringrequired
Fuellingfuelling

The type of fuel that the bus accepts.

Suggested values
Diesel CNG LPG Electric
Example
Diesel
Auto value
Stringrequired
Engineengine

The model of engine that the bus employs. Can be left blank only if fuelling is set to Electric.

Unknownsuggested
Motormotor

The model of any electric traction motor(s) that the bus employs.

Example
Volvo EPT802
Stringoptional
Gearboxgearbox

The model of gearbox that the bus employs. If it does not employ one, write None here.

Example
[[ZF Ecomat 4 6HP604C]]
Stringrequired
Bodybody

The model of body that the bus has been built on. If the Chassis and Body are considered the same model (e.g. Bustech XDi), write "Integral" here.

Example
[[Volgren CR228L]]
Stringrequired
Previousprevious

Wikilink or wikilinks to the bus best described as the predecessor to the infobox subject.

Example
[[1001 (Transport for Brisbane)]]
Unknownoptional
Nextnext

Wikilink or wikilinks to the model best described as the successor to the infobox subject.

Example
[[1003 (Transport for Brisbane)]]
Unknownoptional

Cookies help us deliver our services. By using our services, you agree to our use of cookies.