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

Difference between revisions of "Template:InfoBox route"

Template page
(Created page with "<includeonly> <div class="infobox"> <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:{{{image|}}}|<div class="infobox-image">File:{...")
 
(Template data my brain ong)
Line 3: Line 3:
<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:{{{imgdesc|}}}|<div class="infobox-imgdesc">{{{imgdesc}}}</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_category}}}</div>}}
<table>
<table>
Line 52: Line 52:
{{#if:{{{hist_category|}}}|<div class="infobox-category">{{{hist_category}}}</div>}}
{{#if:{{{hist_category|}}}|<div class="infobox-category">{{{hist_category}}}</div>}}
<table>
<table>
{{#if:{{{lineopened|}}}|<tr>
{{#if:{{{line_opened|}}}|<tr>
     <th>Opened</th>
     <th>Opened</th>
     <td>{{{lineopened}}}</td>
     <td>{{{line_opened}}}</td>
</tr>}}
</tr>}}


{{#if:{{{lineclosed|}}}|<tr>
{{#if:{{{line_closed|}}}|<tr>
     <th>Closed</th>
     <th>Closed</th>
     <td>{{{lineclosed}}}</td>
     <td>{{{line_closed}}}</td>
</tr>}}
</tr>}}
</table>
</table>
Line 83: Line 83:
{{#if:{{{rtmap_category|}}}|<div class="infobox-category">{{{rtmap_category}}}</div>}}
{{#if:{{{rtmap_category|}}}|<div class="infobox-category">{{{rtmap_category}}}</div>}}
<table>
<table>
{{#if:{{{rtimage|}}}|<div class="infobox-image">[[File:{{{rtimage}}}|250px]]</div>}}
{{#if:{{{rtmap_image|}}}|<div class="infobox-image">[[File:{{{rtmap_image}}}|250px]]</div>}}
</table>
</table>
</div>
</div>
Line 93: Line 93:
|colorline2 = #FF0022
|colorline2 = #FF0022
|image = joban_logo_transparent.png
|image = joban_logo_transparent.png
|imgdesc = Insert route images
|image_desc = Insert route images
|general_category = General Information
|general_category = General Information
|locale = [[Lamtsu]]
|locale = [[Lamtsu]]
Line 106: Line 106:
|ridership = 1,025,432 daily average
|ridership = 1,025,432 daily average
|hist_category = History
|hist_category = History
|lineopened = May 1, 1982
|line_opened = May 1, 1982
|lineclosed = May 2, 1982
|line_closed = May 2, 1982
|technicial_category = Technicial
|technicial_category = Technicial
|line_length = 20km
|line_length = 20km
Line 113: Line 113:
|electrification =1.5 kV DC
|electrification =1.5 kV DC
|rtmap_category = Route map
|rtmap_category = Route map
|rtimage = Routemap.png
|rtmap_image = Routemap.png
}}
}}
<templatedata>
{
    "description": "Infobox template for a route",
    "params": {
        "title": {
            "label": "Route Name",
            "description": "Placed on the top",
            "type": "string"
        },
        "colorline1": {
            "label": "Colored Line",
            "description": "Displayed as a line below the title. Use hex color code",
            "type": "string"
        },
        "colorline2": {
            "label": "Colored Line (Extra)",
            "description": "Colored line, use for express color. Otherwise not needed",
            "type": "string"
        },
        "image": {
            "label": "Thumbnail Image",
            "description": "Placed below the title",
            "type": "string"
        },
        "image_desc": {
            "label": "Image Description",
            "description": "Small text below the thumbnail",
            "type": "string"
        },
        "general_category": {
            "label": "General (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "locale": {
            "label": "Locale",
            "description": "Approx city/country of this line's location",
            "type": "string"
        },
        "owner": {
            "label": "Owner",
            "description": "Owner of the route",
            "type": "string"
        },
        "operators": {
            "label": "Operators",
            "description": "Operators of the route",
            "type": "string"
        },
        "terminus": {
            "label": "Terminus",
            "description": "Terminus, usually the start and the end of the line",
            "type": "string"
        },
        "service_category": {
            "label": "Service (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "line_type": {
            "label": "Line Type",
            "description": "Transit Type of the line",
            "type": "string"
        },
        "depots": {
            "label": "Depots",
            "description": "List of depots that's assigned to run this route",
            "type": "string"
        },
        "rolling_stock": {
            "label": "Rolling stock",
            "description": "List of trains the route is currently running",
            "type": "string"
        },
        "former_rolling_stock": {
            "label": "Former rolling stock",
            "description": "List of trains that had operated in this line",
            "type": "string"
        },
        "ridership": {
            "label": "Ridership",
            "description": "Number of people used this line. (Per day/month)",
            "type": "string"
        },
        "hist_category": {
            "label": "History (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "line_opened": {
            "label": "Line Opened Date",
            "description": "Date when the line started operation",
            "type": "string"
        },
        "line_closed": {
            "label": "Line Closed Date",
            "description": "Date when the line stopped operation",
            "type": "string"
        },
        "technicial_category": {
            "label": "Technicial (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "line_length": {
            "label": "Line Length",
            "description": "Approx. distance of the entire line",
            "type": "string"
        },
        "track_gauge": {
            "label": "Track gauge",
            "description": "Track gauge",
            "type": "string"
        },
        "electrification": {
            "label": "Electrification",
            "description": "Electrification",
            "type": "string"
        },
        "operate_speed": {
            "label": "Operating Speed",
            "description": "Average operating speed of the line",
            "type": "string"
        },
        "rtmap_category": {
            "label": "Route Map (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "rtmap_image": {
            "label": "Route Map image",
            "description": "Image of the route map of the line",
            "type": "string"
        }
    }
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 17:12, 27 April 2022


Route Name
Joban logo transparent.png
Insert route images
General Information
Owner KCRC
Locale Lamtsu
Termini Station 1
Station 2
Service
Type Rapid Transit
Operator(s) Rigel Corp
Depot(s) Lightstone
Rolling stock C151C
Former Rolling Stock C151B
Ridership 1,025,432 daily average
History
Opened May 1, 1982
Closed May 2, 1982
Technicial
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
Colored Linecolorline1

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

Stringoptional
Colored Line (Extra)colorline2

Colored line, use for 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
Localelocale

Approx city/country of this line's location

Stringoptional
Ownerowner

Owner of the route

Stringoptional
Operatorsoperators

Operators of the route

Stringoptional
Terminusterminus

Terminus, usually the start and the end of the line

Stringoptional
Service (Category)service_category

Displayed Text

Stringoptional
Line Typeline_type

Transit Type of the line

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
Ridershipridership

Number of people used this line. (Per day/month)

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
Technicial (Category)technicial_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