Template:Infobox bus: Difference between revisions
Add motor parameter |
Ensure all types of entry/left service dates are handled properly |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<infobox> | |||
<title source="title"> | <title source="title"> | ||
<default>{{PAGENAME}}</default> | <default>{{PAGENAME}}</default> | ||
| Line 25: | 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="fuelling"> | <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> | ||
<data source="motor"> | <data source="motor"> | ||
| Line 41: | Line 41: | ||
<data source="gearbox"> | <data source="gearbox"> | ||
<label>Gearbox</label> | <label>Gearbox</label> | ||
<default>''Currently under investigation'' | <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> | ||
<data source="rego"> | <data source="rego"> | ||
<label><span class="help" title="Registration number">Registration number</span></label> | <label><span class="help" title="Registration number">Registration number</span></label> | ||
<default>''Currently under investigation'' | <default>''Currently under investigation''{{NsCatO|Buses with unknown registration number|{{{force_cat|}}}}}</default> | ||
</data> | </data> | ||
<data source="vin"> | <data source="vin"> | ||
<label>[[wikipedia:Vehicle identification number|VIN]]</label> | <label>[[wikipedia:Vehicle identification number|VIN]]</label> | ||
<default>''Currently under investigation'' | <default>''Currently under investigation''{{NsCatO|Buses with unknown VIN|{{{force_cat|}}}}}</default> | ||
</data> | </data> | ||
</group> | </group> | ||
| Line 60: | Line 68: | ||
<data source="operator"> | <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"> | ||
| Line 70: | Line 78: | ||
<format>{{#switch: {{lc:{{{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[[Category:Buses that are in service]] | |in service = In service[[Category:Buses that are in service]] | ||
|service = In service[[Category:Buses that are in service]]<noinclude> | |service = In service[[Category:Buses that are in service]]<noinclude> | ||
| Line 90: | Line 98: | ||
|written off = Written off[[Category:Buses that have been written off]][[Category:Buses that are no longer in service]]<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> | ||
|<span class="error">Invalid <code>status</code> "{{{status|}}}".</span> | |<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> | ||
<data source="entered_service"> | <data source="entered_service"> | ||
<label>Entered service</label> | <label>Entered service</label> | ||
<format>{{{entered_service}}}{{#if:{{{left_service|}}}|| (age {{#expr: {{CURRENTYEAR}} - {{{entered_service}}}}})}}</format> | <format>{{{entered_service}}}{{#if:{{{left_service|}}}|| (age {{#expr: {{CURRENTYEAR}} - {{#time: Y|{{{entered_service}}} }}}})}}</format> | ||
<default>''Currently under investigation'' | <default>''Currently under investigation''{{NsCatO|Buses with unknown year entered service|{{{force_cat|}}}}}</default> | ||
</data> | </data> | ||
<data source="left_service"> | <data source="left_service"> | ||
<label>Left service</label> | <label>Left service</label> | ||
<format>{{{left_service}}} (aged {{#expr: {{{left_service}}} - {{{entered_service|0}}}}})</format> | <format>{{{left_service}}} (aged {{#expr: {{#time: Y|{{{left_service}}} }} - {{#time: Y|{{{entered_service|0}}} }}}})</format> | ||
</data> | </data> | ||
<data source="depot"> | <data source="depot"> | ||
| Line 119: | Line 127: | ||
</data> | </data> | ||
</group> | </group> | ||
</infobox><noinclude>{{Documentation}}</noinclude> | </infobox>{{NsCatO|Buses|{{{force_cat|}}}}}<noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 22: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 |