Difference between revisions of "Template:InfoBox route"
Views
Actions
Namespaces
Variants
Tools
(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:{{{ | {{#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:{{{ | {{#if:{{{line_opened|}}}|<tr> | ||
<th>Opened</th> | <th>Opened</th> | ||
<td>{{{ | <td>{{{line_opened}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{ | {{#if:{{{line_closed|}}}|<tr> | ||
<th>Closed</th> | <th>Closed</th> | ||
<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:{{{ | {{#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 | ||
| | |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 | ||
| | |line_opened = May 1, 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 | ||
| | |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
Owner | KCRC |
---|---|
Locale | Lamtsu |
Termini | Station 1 Station 2 |
Type | Rapid Transit |
---|---|
Operator(s) | Rigel Corp |
Depot(s) | Lightstone |
Rolling stock | C151C |
Former Rolling Stock | C151B |
Ridership | 1,025,432 daily average |
Opened | May 1, 1982 |
---|---|
Closed | May 2, 1982 |
Line Length | 20km |
---|---|
Track gauge | 1,432mm |
Electrification | 1.5 kV DC |
Infobox template for a route
Parameter | Description | Type | Status | |
---|---|---|---|---|
Route Name | title | Placed on the top | String | optional |
Colored Line | colorline1 | Displayed as a line below the title. Use hex color code | String | optional |
Colored Line (Extra) | colorline2 | Colored line, use for express color. Otherwise not needed | String | optional |
Thumbnail Image | image | Placed below the title | String | optional |
Image Description | image_desc | Small text below the thumbnail | String | optional |
General (Category) | general_category | Displayed Text | String | optional |
Locale | locale | Approx city/country of this line's location | String | optional |
Owner | owner | Owner of the route | String | optional |
Operators | operators | Operators of the route | String | optional |
Terminus | terminus | Terminus, usually the start and the end of the line | String | optional |
Service (Category) | service_category | Displayed Text | String | optional |
Line Type | line_type | Transit Type of the line | String | optional |
Depots | depots | List of depots that's assigned to run this route | String | optional |
Rolling stock | rolling_stock | List of trains the route is currently running | String | optional |
Former rolling stock | former_rolling_stock | List of trains that had operated in this line | String | optional |
Ridership | ridership | Number of people used this line. (Per day/month) | String | optional |
History (Category) | hist_category | Displayed Text | String | optional |
Line Opened Date | line_opened | Date when the line started operation | String | optional |
Line Closed Date | line_closed | Date when the line stopped operation | String | optional |
Technicial (Category) | technicial_category | Displayed Text | String | optional |
Line Length | line_length | Approx. distance of the entire line | String | optional |
Track gauge | track_gauge | Track gauge | String | optional |
Electrification | electrification | Electrification | String | optional |
Operating Speed | operate_speed | Average operating speed of the line | String | optional |
Route Map (Category) | rtmap_category | Displayed Text | String | optional |
Route Map image | rtmap_image | Image of the route map of the line | String | optional |