Template:Infobox bus: Difference between revisions
Auto-detect title |
Ensure all types of entry/left service dates are handled properly |
||
| (30 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'' | <default>''Currently under investigation''{{NsCatO|Buses with unknown model|{{{force_cat|}}}}}</default> | ||
</data> | </data> | ||
<data source=" | <data source="fuelling"> | ||
<label>Fuelling</label> | <label>Fuelling</label> | ||
<default>''Currently under investigation'' | <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'' | <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''< | <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=" | <data source="operator"> | ||
<label>Operator</label> | <label>Operator</label> | ||
<default>''Currently under investigation'' | <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'' | <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> | <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 | |service = In service[[Category:Buses that are in service]]<noinclude> | ||
<!-- Temporarily withdrawn --> | <!-- Undergoing testing --></noinclude> | ||
|tempwithdrawn = Temporarily withdrawn | |test = Undergoing testing[[Category:Buses that are undergoing testing]] | ||
|temporarywithdrawn = Temporarily withdrawn | |testing = Undergoing testing[[Category:Buses that are undergoing testing]]<noinclude> | ||
|temporarily withdrawn = Temporarily withdrawn | <!-- Temporarily withdrawn --></noinclude> | ||
<!-- Withdrawn --> | |tempwithdrawn = Temporarily withdrawn[[Category:Buses that have been temporarily withdrawn]] | ||
|withdrawn = Withdrawn | |temporarywithdrawn = Temporarily withdrawn[[Category:Buses that have been temporarily withdrawn]] | ||
<!-- Retired --> | |temporarily withdrawn = Temporarily withdrawn[[Category:Buses that have been temporarily withdrawn]]<noinclude> | ||
|retired = Retired | <!-- Withdrawn --></noinclude> | ||
<!-- Scrapped --> | |withdrawn = Withdrawn[[Category:Buses that have been withdrawn]][[Category:Buses that are no longer in service]]<noinclude> | ||
|scrapped = Scrapped | <!-- Retired --></noinclude> | ||
<!-- Written off --> | |retired = Retired[[Category:Buses that have been retired]][[Category:Buses that are no longer in service]]<noinclude> | ||
|writeoff = Written off | <!-- Scrapped --></noinclude> | ||
|written off = Written off | |scrapped = Scrapped[[Category:Buses that have been scrapped]][[Category:Buses that are no longer in service]]<noinclude> | ||
| | <!-- Written off --></noinclude> | ||
|writeoff = Written off[[Category:Buses that have been written off]][[Category:Buses that are no longer in service]] | |||
|written off = Written off[[Category:Buses that have been written off]][[Category:Buses that are no longer in service]]<noinclude> | |||
<!-- Default --></noinclude> | |||
|<span class="error">Invalid <code>status</code> "{{{status|}}}".</span>{{NsCatO|Buses with unknown status|{{{force_cat|}}}}} | |||
}} | |||
</format> | </format> | ||
<default>''Currently under investigation''< | <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|}}}|| (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 75: | Line 127: | ||
</data> | </data> | ||
</group> | </group> | ||
</infobox> | </infobox>{{NsCatO|Buses|{{{force_cat|}}}}}<noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 12:06, 4 May 2025
TemplateData[edit source]
Displays information on individual buses.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image 1 | image1 | File name for the first image on the infobox.
| File | suggested |
| Image caption 1 | caption1 | An image caption to accompany image 1. Also acts as alt text if not explicity provided.
| Content | suggested |
| Alt text 1 | alt1 | Alt text associated with image 1.
| String | optional |
| Image 2 | image2 | File name for the second image on the infobox. | File | optional |
| Image caption 2 | caption2 | An image caption to accompany image 2. Also acts as alt text if not explicitly provided. | Content | optional |
| Alt text 2 | alt2 | Alt text associated with image 2.
| String | optional |
| Image 3 | image3 | File name for the third image on the infobox. | File | optional |
| Image caption 3 | caption3 | An image caption to accompany image 3. Also acts as alt text if not explicitly provided. | String | optional |
| Alt text 3 | alt3 | Alt text associated with image 3.
| String | optional |
| Chassis | chassis | The mechanical chassis that this bus is based on.
| String | required |
| Fuelling | fuelling | The type of fuel that the bus accepts.
| String | required |
| Engine | engine | The model of engine that the bus employs. Can be left blank only if fuelling is set to Electric. | Unknown | suggested |
| Motor | motor | The model of any electric traction motor(s) that the bus employs.
| String | optional |
| Gearbox | gearbox | The model of gearbox that the bus employs. If it does not employ one, write None here.
| String | required |
| Body | body | 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.
| String | required |
| Previous | previous | Wikilink or wikilinks to the bus best described as the predecessor to the infobox subject.
| Unknown | optional |
| Next | next | Wikilink or wikilinks to the model best described as the successor to the infobox subject.
| Unknown | optional |