Template:Infobox elevator: Difference between revisions
Prepare TemplateData, better parameter naming and error messages |
Huge changes! |
||
| Line 22: | Line 22: | ||
<label>Model</label> | <label>Model</label> | ||
<default><noinclude>Unknown</noinclude></default> | <default><noinclude>Unknown</noinclude></default> | ||
</data> | </data> | ||
<data source="drive"> | |||
<label>Drive type</label> | |||
<default>''Currently under investigation''<includeonly>[[Category:Elevators with unknown drive type]]</includeonly></default> | |||
<format>{{#switch: {{lc:{{{drive}}} | |||
| traction = {{ew|Traction elevators|Traction}} | |||
| mrl_traction = {{ew|Machine room less elevators|MRL}} {{ew|Traction elevators|traction}} | |||
| {{error|Unknown drive type provided.|Elevator pages with errors}} | |||
}} | |||
}}</format> | |||
</data> | |||
<data source="year_installed"> | <data source="year_installed"> | ||
<label>Year installed</label> | <label>Year installed</label> | ||
| Line 38: | Line 48: | ||
<label>Year replaced</label> | <label>Year replaced</label> | ||
<default><noinclude>2018</noinclude></default> | <default><noinclude>2018</noinclude></default> | ||
</data> | |||
<data source="year_removed"> | |||
<label>Year removed</label> | |||
<default><noinclude>2040</noinclude></default> | |||
</data> | |||
<data source="year_demolished"> | |||
<label>Year demolished</label> | |||
<default><noinclude>2040</noinclude></default> | |||
</data> | </data> | ||
<data source="capacity"> | <data source="capacity"> | ||
| Line 55: | Line 73: | ||
<default><noinclude>150</noinclude></default> | <default><noinclude>150</noinclude></default> | ||
</data> | </data> | ||
<data source=" | <data source="controller_type"> | ||
<label> | <label>Controller type</label> | ||
<default> | <default><noinclude>Unknown</noinclude></default> | ||
</data> | |||
<data source="controller_model"> | |||
</data> | |||
<data source=" | |||
<label>Controller type</label> | <label>Controller type</label> | ||
<default><noinclude>Unknown</noinclude></default> | <default><noinclude>Unknown</noinclude></default> | ||
</data> | </data> | ||
</group> | |||
<group> | |||
<header>Current condition</header> | |||
<data source="status"> | <data source="status"> | ||
<label>Status</label> | <label>Status</label> | ||
| Line 86: | Line 102: | ||
{ | { | ||
"params": { | "params": { | ||
"image1": { | |||
"label": "Image 1", | |||
"description": "File name for the first image on the infobox.", | |||
"example": "|image1 = Elevator.jpg", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"caption1": { | |||
"label": "Image caption 1", | |||
"description": "An image caption to accompany image 1. Also acts as alt text if not explicitly provided.", | |||
"example": "|caption1 = Top down view of the hard drive.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"image_2": { | |||
"label": "Image 2", | |||
"description": "File name for the second image on the infobox.", | |||
"example": "|image2 = Fixtures.png", | |||
"type": "wiki-file-name" | |||
}, | |||
"caption2": { | |||
"label": "Image caption 2", | |||
"description": "An image caption to accompany image 2. Also acts as alt text if not explicity provided.", | |||
"type": "content" | |||
}, | |||
"manufacturer": { | "manufacturer": { | ||
"label": "Manufacturer", | "label": "Manufacturer", | ||
"description": "The company who installed the elevator.", | "description": "The company who installed the elevator.", | ||
"example": "|manufacturer = [[Kone]]" | "example": "|manufacturer = [[Kone]]", | ||
"type": "wiki-page-name", | |||
"suggested": true | |||
}, | |||
"serial": { | |||
"label": "Serial number", | |||
"description": "The serial number assigned by the installer. This may be called a \"Machine No\", \"Equipment No\", or other term, if not a serial number.", | |||
"example": "|serial = 12345678", | |||
"type": "string" | |||
}, | |||
"drive": { | |||
"label": "Drive type", | |||
"description": "The mechanism used to drive the lift. Accepts \"traction\", \"hydraulic\", \"mrl_traction\" or \"mrl_hydro\". Case insensitive.", | |||
"example": "|drive = mrl_traction", | |||
"type": "string", | |||
"suggested": true, | |||
"autovalue": "traction, mrl_traction, hydraulic, mrl_hydro" | |||
}, | |||
"year_installed": { | |||
"label": "Year installed", | |||
"description": "The year the elevator was installed.", | |||
"type": "number" | |||
}, | |||
"year_in_service": { | |||
"label": "Year in service", | |||
"description": "The year the elevator was placed into service (opened for public use, for instance).", | |||
"type": "number" | |||
}, | |||
"year_modernised": { | |||
"label": "Year modernised", | |||
"description": "The year the elevator was modernised. A modernisation is work carried out that changes the elevator's appearance or running equipment (significantly).", | |||
"type": "number" | |||
}, | |||
"year_replaced": { | |||
"label": "Year replaced", | |||
"description": "The year the elevator was replaced with a new elevator unit permanently.", | |||
"type": "number" | |||
}, | |||
"year_removed": { | |||
"label": "Year removed", | |||
"description": "The year the elevator was removed from its shaft permanently.", | |||
"type": "number" | |||
}, | |||
"year_demolished": { | |||
"label": "Year demolished", | |||
"description": "The year the elevator's host building was demolished.", | |||
"type": "number" | |||
}, | |||
"speed_metres": { | |||
"aliases": [ | |||
"speed_meters" | |||
], | |||
"label": "Speed in metres per second", | |||
"description": "Speed, expressed in metres per second (m/s). The alias prints it in US spelling (meters per second).", | |||
"example": "|speed_metres = 1.0", | |||
"type": "number" | |||
}, | |||
"speed_fpm": { | |||
"label": "Speed in feet per minute", | |||
"description": "Speed, expressed in feet per minute (FPM).", | |||
"example": "|speed_fpm = 200", | |||
"type": "number" | |||
}, | |||
"controller_type": { | |||
"label": "Controller type", | |||
"description": "The type of controller in use (microprocessor, relay, slate)", | |||
"example": "|controller_type = Microprocessor", | |||
"type": "string" | |||
}, | |||
"controller_model": { | |||
"label": "Controller model", | |||
"description": "The model of the controller in use on this elevator.", | |||
"example": "|controller_model = [[Schindler Miconic Controls#MX-GC|Miconic MX-GC]]", | |||
"type": "wiki-page-name" | |||
}, | |||
"status": { | |||
"label": "Current status", | |||
"description": "The status of the elevator (in service, extended maintenance, extended out of service, removed, etc.)", | |||
"example": "|status = In service", | |||
"default": "In service" | |||
}, | |||
"usage": { | |||
"label": "Usage", | |||
"description": "The intended usage of the elevator (public, service, staff, etc.)", | |||
"example": "|usage = Public", | |||
"type": "string", | |||
"autovalue": "" | |||
}, | |||
"maintenance": { | |||
"label": "Current maintenance", | |||
"description": "The company that currently maintains this elevator.", | |||
"example": "|maintenance = [[Kone]]", | |||
"type": "wiki-page-name" | |||
} | } | ||
}, | }, | ||
"format": "block" | "format": "block", | ||
"description": "Displays information on individual elevators." | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
Revision as of 20:07, 15 February 2021
Displays information on individual elevators.
| 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 explicitly provided.
| Content | suggested |
| Image 2 | image_2 | 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 explicity provided. | Content | optional |
| Manufacturer | manufacturer | The company who installed the elevator.
| Page name | suggested |
| Serial number | serial | The serial number assigned by the installer. This may be called a "Machine No", "Equipment No", or other term, if not a serial number.
| String | optional |
| Drive type | drive | The mechanism used to drive the lift. Accepts "traction", "hydraulic", "mrl_traction" or "mrl_hydro". Case insensitive.
| String | suggested |
| Year installed | year_installed | The year the elevator was installed. | Number | optional |
| Year in service | year_in_service | The year the elevator was placed into service (opened for public use, for instance). | Number | optional |
| Year modernised | year_modernised | The year the elevator was modernised. A modernisation is work carried out that changes the elevator's appearance or running equipment (significantly). | Number | optional |
| Year replaced | year_replaced | The year the elevator was replaced with a new elevator unit permanently. | Number | optional |
| Year removed | year_removed | The year the elevator was removed from its shaft permanently. | Number | optional |
| Year demolished | year_demolished | The year the elevator's host building was demolished. | Number | optional |
| Speed in metres per second | speed_metres speed_meters | Speed, expressed in metres per second (m/s). The alias prints it in US spelling (meters per second).
| Number | optional |
| Speed in feet per minute | speed_fpm | Speed, expressed in feet per minute (FPM).
| Number | optional |
| Controller type | controller_type | The type of controller in use (microprocessor, relay, slate)
| String | optional |
| Controller model | controller_model | The model of the controller in use on this elevator.
| Page name | optional |
| Current status | status | The status of the elevator (in service, extended maintenance, extended out of service, removed, etc.)
| Unknown | optional |
| Usage | usage | The intended usage of the elevator (public, service, staff, etc.)
| String | optional |
| Current maintenance | maintenance | The company that currently maintains this elevator.
| Page name | optional |