Template:Infobox elevator: Difference between revisions

From Australian Enthusiasts Wiki
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="drive">
         <data source="controller_type">
             <label>Drive type</label>
             <label>Controller type</label>
             <default>''Currently under investigation''<includeonly>[[Category:Elevators with unknown drive type]]</includeonly></default>
             <default><noinclude>Unknown</noinclude></default>
            <format>{{#switch: {{{drive}}}
         </data>
            | traction = {{ew|Traction elevators|Traction}}
         <data source="controller_model">
            | 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="controller">
             <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

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

Displays information on individual elevators.

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
|image1 = Elevator.jpg
Filesuggested
Image caption 1caption1

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.
Contentsuggested
Image 2image_2

File name for the second image on the infobox.

Example
|image2 = Fixtures.png
Fileoptional
Image caption 2caption2

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

Contentoptional
Manufacturermanufacturer

The company who installed the elevator.

Example
|manufacturer = [[Kone]]
Page namesuggested
Serial numberserial

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
Stringoptional
Drive typedrive

The mechanism used to drive the lift. Accepts "traction", "hydraulic", "mrl_traction" or "mrl_hydro". Case insensitive.

Example
|drive = mrl_traction
Auto value
traction, mrl_traction, hydraulic, mrl_hydro
Stringsuggested
Year installedyear_installed

The year the elevator was installed.

Numberoptional
Year in serviceyear_in_service

The year the elevator was placed into service (opened for public use, for instance).

Numberoptional
Year modernisedyear_modernised

The year the elevator was modernised. A modernisation is work carried out that changes the elevator's appearance or running equipment (significantly).

Numberoptional
Year replacedyear_replaced

The year the elevator was replaced with a new elevator unit permanently.

Numberoptional
Year removedyear_removed

The year the elevator was removed from its shaft permanently.

Numberoptional
Year demolishedyear_demolished

The year the elevator's host building was demolished.

Numberoptional
Speed in metres per secondspeed_metres speed_meters

Speed, expressed in metres per second (m/s). The alias prints it in US spelling (meters per second).

Example
|speed_metres = 1.0
Numberoptional
Speed in feet per minutespeed_fpm

Speed, expressed in feet per minute (FPM).

Example
|speed_fpm = 200
Numberoptional
Controller typecontroller_type

The type of controller in use (microprocessor, relay, slate)

Example
|controller_type = Microprocessor
Stringoptional
Controller modelcontroller_model

The model of the controller in use on this elevator.

Example
|controller_model = [[Schindler Miconic Controls#MX-GC|Miconic MX-GC]]
Page nameoptional
Current statusstatus

The status of the elevator (in service, extended maintenance, extended out of service, removed, etc.)

Default
In service
Example
|status = In service
Unknownoptional
Usageusage

The intended usage of the elevator (public, service, staff, etc.)

Example
|usage = Public
Auto value
Stringoptional
Current maintenancemaintenance

The company that currently maintains this elevator.

Example
|maintenance = [[Kone]]
Page nameoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.