The District of Joban Difference between revisions of "Template:InfoBox route"

Difference between revisions of "Template:InfoBox route"

Template page
(Template data my brain ong)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="infobox">
<div class="infobox">
{{#if:{{{title_zh|}}}|<div class="infobox-title">{{{title_zh}}}</div>}}
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
{{#if:{{{colorline1|}}}|<div style="margin-top:5px;height: 6px;width:100%;background-color:{{{colorline1}}}"></div>|}} {{#if:{{{colorline2|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline2}}}"></div>|}} {{#if:{{{colorline3|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline3}}}"></div>|}}
{{#if:{{{colorline1|}}}|<div style="margin-top:5px;height: 6px;width:100%;background-color:{{{colorline1}}}"></div>|}} {{#if:{{{colorline2|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline2}}}"></div>|}} {{#if:{{{colorline3|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline3}}}"></div>|}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} {{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} {{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}}
{{#if:{{{general_category|}}}|<div class="infobox-category">{{{general_category}}}</div>}}
{{#if:{{{general_category|}}}|<div class="infobox-category">General</div>}}
<table>
<table>
{{#if:{{{status|}}}|<tr>
    <th>Status</th>
    <td>{{{status}}}</td>
</tr>}}
{{#if:{{{owner|}}}|<tr>
{{#if:{{{owner|}}}|<tr>
     <th>Owner</th>
     <th>Owner</th>
Line 18: Line 23:
     <td>{{{terminus}}}</td>
     <td>{{{terminus}}}</td>
</tr>}}
</tr>}}
{{#if:{{{station_number|}}}|<tr>
{{#if:{{{station_amount|}}}|<tr>
     <th>Stations</th>
     <th>Stations</th>
     <td>{{{station_number}}}</td>
     <td>{{{station_amount}}}</td>
</tr>}}
{{#if:{{{initials|}}}|<tr>
    <th>Initials</th>
    <td>{{{initials}}}</td>
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{service_category|}}}|<div class="infobox-category">{{{service_category}}}</div>}}
{{#if:{{{service_category|}}}|<div class="infobox-category">Service</div>}}
<table>
<table>
{{#if:{{{line_type|}}}|<tr>
{{#if:{{{line_type|}}}|<tr>
Line 40: Line 49:
     <th>Rolling stock</th>
     <th>Rolling stock</th>
     <td>{{{rolling_stock}}}</td>
     <td>{{{rolling_stock}}}</td>
</tr>}}
{{#if:{{{vehicle|}}}|<tr>
    <th>Vehicle</th>
    <td>{{{vehicle}}}</td>
</tr>}}
{{#if:{{{fare|}}}|<tr>
    <th>Fare</th>
    <td>{{{fare}}}</td>
</tr>}}
</tr>}}
{{#if:{{{former_rolling_stock|}}}|<tr>
{{#if:{{{former_rolling_stock|}}}|<tr>
     <th>Former Rolling Stock</th>
     <th>Former Rolling Stock</th>
     <td>{{{former_rolling_stock}}}</td>
     <td>{{{former_rolling_stock}}}</td>
</tr>}}
{{#if:{{{ridership|}}}|<tr>
    <th>Ridership</th>
    <td>{{{ridership}}}</td>
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{hist_category|}}}|<div class="infobox-category">{{{hist_category}}}</div>}}
{{#if:{{{hist_category|}}}|<div class="infobox-category">History</div>}}
<table>
<table>
{{#if:{{{line_opened|}}}|<tr>
{{#if:{{{line_opened|}}}|<tr>
Line 62: Line 75:
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{technicial_category|}}}|<div class="infobox-category">{{{technicial_category}}}</div>}}
{{#if:{{{technical_category|}}}|<div class="infobox-category">Technical</div>}}
<table>
<table>
{{#if:{{{line_length|}}}|<tr>
{{#if:{{{line_length|}}}|<tr>
Line 81: Line 94:
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{rtmap_category|}}}|<div class="infobox-category">{{{rtmap_category}}}</div>}}
{{#if:{{{rtmap_category|}}}|<div class="infobox-category">Route Map</div>}}
<table>
<table>
{{#if:{{{rtmap_image|}}}|<div class="infobox-image">[[File:{{{rtmap_image}}}|250px]]</div>}}
{{#if:{{{rtmap_image|}}}|<div class="infobox-image">[[File:{{{rtmap_image}}}|250px]]</div>}}
Line 89: Line 102:
<noinclude>
<noinclude>
{{InfoBox route
{{InfoBox route
|title_zh = 路線名稱
|title = Route Name
|title = Route Name
|colorline1 = #00FF22
|colorline1 = #00FF22
|colorline2 = #FF0022
|colorline2 = #FF0022
|colorline3 = #2200FF
|image = joban_logo_transparent.png
|image = joban_logo_transparent.png
|image_desc = Insert route images
|image_desc = Insert route images
|general_category = General Information
|general_category = General Information
|status = Operational
|locale = [[Lamtsu]]
|locale = [[Lamtsu]]
|owner = [[KCRC]]
|owner = [[KCRC]]
Line 103: Line 119:
|depots = [[Lightstone]]
|depots = [[Lightstone]]
|rolling_stock = C151C
|rolling_stock = C151C
|vehicle = Volvo B9TL
|former_rolling_stock = C151B
|former_rolling_stock = C151B
|ridership = 1,025,432 daily average
|ridership = 1,025,432 daily average
Line 108: Line 125:
|line_opened = May 1, 1982
|line_opened = May 1, 1982
|line_closed = May 2, 1982
|line_closed = May 2, 1982
|technicial_category = Technicial
|technical_category = Technical
|line_length = 20km
|line_length = 20km
|track_gauge = 1,432mm
|track_gauge = 1,432mm
Line 122: Line 139:
         "title": {
         "title": {
             "label": "Route Name",
             "label": "Route Name",
            "description": "Placed on the top",
            "type": "string"
        },
        "title_zh": {
            "label": "Route Name (Chinese)",
             "description": "Placed on the top",
             "description": "Placed on the top",
             "type": "string"
             "type": "string"
Line 132: Line 154:
         "colorline2": {
         "colorline2": {
             "label": "Colored Line (Extra)",
             "label": "Colored Line (Extra)",
             "description": "Colored line, use for express color. Otherwise not needed",
             "description": "Colored line, use for different express color. Otherwise not needed",
            "type": "string"
        },
        "colorline3": {
            "label": "Colored Line (Extra 2)",
            "description": "Colored line, use for different express color. Otherwise not needed",
             "type": "string"
             "type": "string"
         },
         },
Line 150: Line 177:
             "type": "string"
             "type": "string"
         },
         },
         "locale": {
         "status": {
             "label": "Locale",
             "label": "Status",
             "description": "Approx city/country of this line's location",
             "description": "Status of the line",
             "type": "string"
             "type": "string"
         },
         },
Line 160: Line 187:
             "type": "string"
             "type": "string"
         },
         },
         "operators": {
         "locale": {
             "label": "Operators",
             "label": "Locale",
             "description": "Operators of the route",
             "description": "Approx city/country of this line's location",
             "type": "string"
             "type": "string"
         },
         },
Line 168: Line 195:
             "label": "Terminus",
             "label": "Terminus",
             "description": "Terminus, usually the start and the end of the line",
             "description": "Terminus, usually the start and the end of the line",
            "type": "string"
        },
        "station_amount": {
            "label": "Stations Amount",
            "description": "Amount of stations of the line",
            "type": "string"
        },
        "initials": {
            "label": "Initials",
            "description": "Abbreviation of the route's name/Route Code",
             "type": "string"
             "type": "string"
         },
         },
Line 178: Line 215:
             "label": "Line Type",
             "label": "Line Type",
             "description": "Transit Type of the line",
             "description": "Transit Type of the line",
            "type": "string"
        },
        "operators": {
            "label": "Operators",
            "description": "Operators of the route",
             "type": "string"
             "type": "string"
         },
         },
Line 195: Line 237:
             "type": "string"
             "type": "string"
         },
         },
         "ridership": {
         "vehicle": {
             "label": "Ridership",
             "label": "Vehicle",
             "description": "Number of people used this line. (Per day/month)",
             "description": "List of vehicles the route is currently running (Bus)",
            "type": "string"
        },
        "fare": {
            "label": "Fare",
            "description": "For routes with one-time fare only",
             "type": "string"
             "type": "string"
         },
         },
Line 215: Line 262:
             "type": "string"
             "type": "string"
         },
         },
         "technicial_category": {
         "technical_category": {
             "label": "Technicial (Category)",
             "label": "Technical (Category)",
             "description": "Displayed Text",
             "description": "Displayed Text",
             "type": "string"
             "type": "string"

Latest revision as of 18:33, 28 August 2024


路線名稱
Route Name
Joban logo transparent.png
Insert route images
General
Status Operational
Owner KCRC
Locale Lamtsu
Termini Station 1
Station 2
Service
Type Rapid Transit
Operator(s) Rigel Corp
Depot(s) Lightstone
Rolling stock C151C
Vehicle Volvo B9TL
Former Rolling Stock C151B
History
Opened May 1, 1982
Closed May 2, 1982
Technical
Line Length 20km
Track gauge 1,432mm
Electrification 1.5 kV DC
Route Map


Infobox template for a route

Template parameters

ParameterDescriptionTypeStatus
Route Nametitle

Placed on the top

Stringoptional
Route Name (Chinese)title_zh

Placed on the top

Stringoptional
Colored Linecolorline1

Displayed as a line below the title. Use hex color code

Stringoptional
Colored Line (Extra)colorline2

Colored line, use for different express color. Otherwise not needed

Stringoptional
Colored Line (Extra 2)colorline3

Colored line, use for different express color. Otherwise not needed

Stringoptional
Thumbnail Imageimage

Placed below the title

Stringoptional
Image Descriptionimage_desc

Small text below the thumbnail

Stringoptional
General (Category)general_category

Displayed Text

Stringoptional
Statusstatus

Status of the line

Stringoptional
Ownerowner

Owner of the route

Stringoptional
Localelocale

Approx city/country of this line's location

Stringoptional
Terminusterminus

Terminus, usually the start and the end of the line

Stringoptional
Stations Amountstation_amount

Amount of stations of the line

Stringoptional
Initialsinitials

Abbreviation of the route's name/Route Code

Stringoptional
Service (Category)service_category

Displayed Text

Stringoptional
Line Typeline_type

Transit Type of the line

Stringoptional
Operatorsoperators

Operators of the route

Stringoptional
Depotsdepots

List of depots that's assigned to run this route

Stringoptional
Rolling stockrolling_stock

List of trains the route is currently running

Stringoptional
Former rolling stockformer_rolling_stock

List of trains that had operated in this line

Stringoptional
Vehiclevehicle

List of vehicles the route is currently running (Bus)

Stringoptional
Farefare

For routes with one-time fare only

Stringoptional
History (Category)hist_category

Displayed Text

Stringoptional
Line Opened Dateline_opened

Date when the line started operation

Stringoptional
Line Closed Dateline_closed

Date when the line stopped operation

Stringoptional
Technical (Category)technical_category

Displayed Text

Stringoptional
Line Lengthline_length

Approx. distance of the entire line

Stringoptional
Track gaugetrack_gauge

Track gauge

Stringoptional
Electrificationelectrification

Electrification

Stringoptional
Operating Speedoperate_speed

Average operating speed of the line

Stringoptional
Route Map (Category)rtmap_category

Displayed Text

Stringoptional
Route Map imagertmap_image

Image of the route map of the line

Stringoptional