Template:Infobox elevator: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<infobox theme="elevator">
<includeonly>{| class="infobox" style="border: 1px solid #a2a9b1; border-radius: 4px; padding: 5px; width: 290px; float: right; margin: 0 0 1em 1em; background-color: #f8f9fa; font-size: 88%; line-height: 1.5em; color: #202122; font-family: sans-serif;"
    <title source="name"><default>{{PAGENAME}}</default></title>
|+ style="font-size: 130%; font-weight: bold; padding: 0.3em; background-color: #e2e8f0; border: 1px solid #a2a9b1; border-bottom: none; border-radius: 4px 4px 0 0;" | {{{name|{{PAGENAME}}}}}
 
|-
    <header class="status-header status-{{#if:{{{status|}}}|{{lower:{{{status}}}}}|unknown}}">
| colspan="2" style="text-align: center; font-weight: bold; font-size: 110%; padding: 6px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.5px;
        {{#switch: {{upper:{{{status|}}}}}
  {{#switch: {{upper:{{{status|}}}}}
            | ORIGINAL = 🟢 Original System
    | ORIGINAL = background-color: #2e7d32; color: #ffffff;
            | MODERNIZED = 🔵 Modernized
    | MODERNIZED = background-color: #1565c0; color: #ffffff;
            | REPLACED = 🔴 Replaced / Scrapped
    | REPLACED = background-color: #c62828; color: #ffffff;
            | #default = Unknown Status
    | #default = background-color: #757575; color: #ffffff;
        }}
  }}" | {{#switch: {{upper:{{{status|}}}}}
    </header>
    | ORIGINAL = 🟢 Original System
 
    | MODERNIZED = 🔵 Modernized
    <image source="image">
    | REPLACED = 🔴 Replaced / Scrapped
        <caption source="caption"/>
    | #default = Unknown Status
    </image>
  }}
 
|-
    <group>
{{#if:{{{image|}}}|
        <header>Technical Specifications</header>
{{!}} colspan="2" style="text-align: center; border-bottom: 1px solid #eaecf0; padding: 8px 0;" {{!}} [[Dosya:{{{image}}}|270px|center|{{{caption|}}}]]<br /><small style="color: #54595d;">{{{caption|}}}</small>
        <data source="manufacturer" hide="false">
}}
            <label>Manufacturer</label>
|-
            <default>-</default>
! colspan="2" style="background-color: #eaecf0; text-align: left; padding: 4px 6px; font-weight: bold; border-top: 1px solid #a2a9b1; border-bottom: 1px solid #a2a9b1;" | Technical Specifications
        </data>
|-
        <data source="model" hide="false">
! style="text-align: left; width: 45%; padding: 4px; vertical-align: top;" | Manufacturer
            <label>Model / Series</label>
| style="padding: 4px; text-align: right;" | {{{manufacturer|-}}}
            <default>-</default>
|-
        </data>
! style="text-align: left; padding: 4px; vertical-align: top;" | Model / Series
        <data source="drive_type" hide="false">
| style="padding: 4px; text-align: right;" | {{{model|-}}}
            <label>Drive Type</label>
|-
            <default>-</default>
! style="text-align: left; padding: 4px; vertical-align: top;" | Drive Type
        </data>
| style="padding: 4px; text-align: right;" | {{{drive_type|-}}}
        <data source="controller" hide="false">
|-
            <label>Controller / Fixtures</label>
! style="text-align: left; padding: 4px; vertical-align: top;" | Controller / Fixtures
            <default>-</default>
| style="padding: 4px; text-align: right;" | {{{controller|-}}}
        </data>
|-
        <data source="capacity" hide="false">
! style="text-align: left; padding: 4px; vertical-align: top;" | Capacity
            <label>Capacity</label>
| style="padding: 4px; text-align: right;" | {{{capacity|-}}}
            <default>-</default>
|-
        </data>
! style="text-align: left; padding: 4px; vertical-align: top;" | Speed
        <data source="speed" hide="false">
| style="padding: 4px; text-align: right;" | {{{speed|-}}}
            <label>Speed</label>
|-
            <default>-</default>
! style="text-align: left; padding: 4px; vertical-align: top;" | Floors Served
        </data>
| style="padding: 4px; text-align: right;" | {{{floors|-}}}
        <data source="floors" hide="false">
|-
            <label>Floors Served</label>
! colspan="2" style="background-color: #eaecf0; text-align: left; padding: 4px 6px; font-weight: bold; border-top: 1px solid #a2a9b1; border-bottom: 1px solid #a2a9b1;" | History & Location
            <default>-</default>
|-
        </data>
! style="text-align: left; padding: 4px; vertical-align: top;" | Installed
    </group>
| style="padding: 4px; text-align: right;" | {{{installation_year|-}}}
 
|-
    <group>
! style="text-align: left; padding: 4px; vertical-align: top;" | Modernized
        <header>History & Location</header>
| style="padding: 4px; text-align: right;" | {{{modernization_year|-}}} {{#if:{{{modernized_by|}}}| (by {{{modernized_by}}}) }}
        <data source="installation_year" hide="false">
|-
            <label>Installed</label>
! style="text-align: left; padding: 4px; vertical-align: top;" | Location
            <default>-</default>
| style="padding: 4px; text-align: right;" | {{{location|-}}}
        </data>
|-
        <data source="modernization_year" hide="false">
! colspan="2" style="background-color: #eaecf0; text-align: left; padding: 4px 6px; font-weight: bold; border-top: 1px solid #a2a9b1; border-bottom: 1px solid #a2a9b1;" | Notes
            <label>Modernized</label>
|-
            <format>{{{modernization_year}}} {{#if:{{{modernized_by|}}}| (by {{{modernized_by}}}) }}</format>
| colspan="2" style="text-align: left; font-size: 90%; background-color: #f8f9fa; padding: 6px; font-style: italic; color: #54595d;" | {{{notes|-}}}
            <default>-</default>
|}</includeonly>
        </data>
        <data source="location" hide="false">
            <label>Location</label>
            <default>-</default>
        </data>
    </group>
 
    <group collapse="open">
        <header>Notes</header>
        <data source="notes" hide="false">
            <format>''{{{notes}}}''</format>
            <default>-</default>
        </data>
    </group>
</infobox>
<noinclude>
== TemplateData ==
<templatedata>
{
"params": {
"name": {
"label": "Name",
"type": "string",
"required": false,
"suggested": true,
"description": "Name of the elevator or building system"
},
"status": {
"label": "Status",
"type": "string",
"required": true,
"suggested": true,
"description": "ORIGINAL, MODERNIZED, or REPLACED"
},
"image": {
"label": "Image",
"type": "wiki-file-name",
"required": false,
"suggested": true
},
"caption": {
"label": "Caption",
"type": "string",
"required": false,
"suggested": true
},
"manufacturer": {
"label": "Manufacturer",
"type": "string",
"required": false,
"suggested": true,
"example": "Schlieren, Schindler, Otis"
},
"model": {
"label": "Model / Series",
"type": "string",
"required": false,
"suggested": true
},
"drive_type": {
"label": "Drive Type",
"type": "string",
"required": false,
"suggested": true,
"example": "Geared Traction, Gearless Traction, Hydraulic"
},
"controller": {
"label": "Controller / Fixtures",
"type": "string",
"required": false,
"suggested": true,
"example": "Arcode, Relay Logic"
},
"capacity": {
"label": "Capacity",
"type": "string",
"required": false,
"suggested": true,
"example": "450 kg (6 Persons)"
},
"speed": {
"label": "Speed",
"type": "string",
"required": false,
"suggested": true,
"example": "1.0 m/s"
},
"floors": {
"label": "Floors Served",
"type": "string",
"required": false,
"suggested": true
},
"installation_year": {
"label": "Installation Year",
"type": "string",
"required": false,
"suggested": true
},
"modernization_year": {
"label": "Modernization Year",
"type": "string",
"required": false,
"suggested": true
},
"modernized_by": {
"label": "Modernized By",
"type": "string",
"required": false,
"suggested": true
},
"location": {
"label": "Location",
"type": "string",
"required": false,
"suggested": true
},
"notes": {
"label": "Notes",
"type": "string",
"required": false,
"suggested": true
}
},
"description": "Infobox for documenting elevator systems, controllers, and history.",
"format": "block"
}
</templatedata>
</noinclude>