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

Difference between revisions of "Template:InfoBox station"

Template page
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly> <div class="infobox">
<div class="infobox">
{{#if:{{{name_small|}}}|<div class="infobox-title"><small>{{{name_small}}}</small></div>}}
{{#if:{{{name_small|}}}|<div class="infobox-title"><small>{{{name_small}}}</small></div>}}
{{#if:{{{name_large|}}}|<div class="infobox-title">{{{name_large}}}</div>}}
{{#if:{{{name_large|}}}|<div class="infobox-title">{{{name_large}}}</div>}}
{{#if:{{{colorline1|}}}|<div style="margin-top:5px;height: 6px;width:100%;background-color:{{{colorline1}}}"></div>|}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}}
{{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}}
Line 15: Line 15:
     <td>{{{chin_simp}}}</td>
     <td>{{{chin_simp}}}</td>
</tr>}}
</tr>}}
{{#if:{{{Jyutping|}}}|<tr>
{{#if:{{{Jyutping|}}}|<tr>
     <th>Jyutping</th>
     <th>Jyutping</th>
Line 21: Line 20:
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{general_category|}}}|<div class="infobox-category">{{{general_category}}}</div>}}
{{#if:{{{general_category|}}}|<div class="infobox-category">{{{general_category}}}</div>}}
<table>
<table>
Line 31: Line 29:
     <th>Coordinates</th>
     <th>Coordinates</th>
     <td>{{{coords}}}</td>
     <td>{{{coords}}}</td>
</tr>}}
{{#if:{{{fare_zone|}}}|<tr>
    <th>Fare Zone</th>
    <td>{{{fare_zone}}}</td>
</tr>}}
{{#if:{{{world|}}}|<tr>
    <th>World</th>
    <td>{{{world}}}</td>
</tr>}}
</tr>}}
{{#if:{{{owner|}}}|<tr>
{{#if:{{{owner|}}}|<tr>
Line 91: Line 97:
</table>
</table>
</div>
</div>
</includeonly>
</includeonly> <noinclude>
 
<noinclude>
Infobox for stations, WIP.
{{InfoBox station
{{InfoBox station
|name_small = 中文
|name_small = 中文
Line 100: Line 103:
|image = joban_logo_transparent.png
|image = joban_logo_transparent.png
|image_desc = Insert station photo
|image_desc = Insert station photo
|general_category = General information
|general_category=General Information
|location = Joban
|location = Joban
|coords = 4984 -1053
|coords = 4984 -1053
|fare_zone = 5
|platforms = 14
|platforms = 14
|tracks = 14
|tracks = 14
Line 115: Line 119:
|stn_opened = Jan 3, 2003
|stn_opened = Jan 3, 2003
}}
}}
</noinclude>


<noinclude>
{{Documentation}}
==General Information (general_category)==
 
{|class="wikitable"
<templatedata>
! ID
{
! Displayed Content
    "description": "Infobox template for a station",
! Example
    "params": {
|-
        "name_small": {
|location
            "label": "Station Name (Small)",
|Location
            "description": "Placed on the title, use for Chinese",
|A district/city/country
            "type": "string"
|-
        },
|coords
        "name_large": {
|Coordinates
            "label": "Station Name (Large)",
|X, Z
            "description": "Placed on the title, use for English",
|-
            "type": "string"
|platforms
        },
|Platforms
        "image": {
|Amount of Platforms
            "label": "Thumbnail Image",
|-
            "description": "Placed below the title",
|tracks
            "type": "string"
|Tracks
        },
|Amount of tracks
        "image_desc": {
|-
            "label": "Image Description",
|connections
            "description": "Small text below the thumbnail",
|Connections
            "type": "string"
|Other transport on that stations
        },
|}
        "general_category": {
            "label": "General (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "location": {
            "label": "Location",
            "description": "X and Z position of a station",
            "type": "string"
        },
        "owner": {
            "label": "Owner",
            "description": "Owner of the station",
            "type": "string"
        },
        "operator": {
            "label": "Operator",
            "description": "Operator of the station",
            "type": "string"
        },
        "lines": {
            "label": "Lines",
            "description": "All lines passing by this station",
            "type": "string"
        },
        "platforms": {
            "label": "Platforms",
            "description": "Number of platforms in this station",
            "type": "string"
        },
        "tracks": {
            "label": "Tracks",
            "description": "Number of tracks in this station",
            "type": "string"
        },
        "connections": {
            "label": "Connections",
            "description": "Transport interchange",
            "type": "string"
        },
        "disabled_access": {
            "label": "Disabled Access",
            "description": "Does the station has disabled access? Yes/No/Partial",
            "type": "string"
        },
        "construction_category": {
            "label": "Construction (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "structure_type": {
            "label": "Structure Type",
            "description": "At-Grade/Underground/Elevated",
            "type": "string"
        },
        "platform_levels": {
            "label": "Platform Levels",
            "description": "Number of platform level (w/o concourse)",
            "type": "string"
        },
        "other_category": {
            "label": "Others (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "stn_code": {
            "label": "Station Code",
            "description": "Station code, negotiate with other operator on interchange.",
            "type": "string"
        },
        "history_category": {
            "label": "History (Category)",
            "description": "Displayed Text",
            "type": "string"
        },
        "stn_opened": {
            "label": "Station Opened Date",
            "description": "Date when the station started operation",
            "type": "string"
        },
        "stn_closed": {
            "label": "Station Closed Date",
            "description": "Date when the station stopped operation",
            "type": "string"
        }
    }
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 22:53, 15 August 2022

中文
English
Joban logo transparent.png
Insert station photo
General Information
Location Joban
Coordinates 4984 -1053
Fare Zone 5
Platforms 14
Tracks 14
Connections Bus
Construction
Structure Type At-Grade
Platform Levels 2
Disabled Access Yes
Other information
Station Code ADM
History
Opened Jan 3, 2003


Template:Documentation

Infobox template for a station

Template parameters

ParameterDescriptionTypeStatus
Station Name (Small)name_small

Placed on the title, use for Chinese

Stringoptional
Station Name (Large)name_large

Placed on the title, use for English

Stringoptional
Thumbnail Imageimage

Placed below the title

Stringoptional
Image Descriptionimage_desc

Small text below the thumbnail

Stringoptional
General (Category)general_category

Displayed Text

Stringoptional
Locationlocation

X and Z position of a station

Stringoptional
Ownerowner

Owner of the station

Stringoptional
Operatoroperator

Operator of the station

Stringoptional
Lineslines

All lines passing by this station

Stringoptional
Platformsplatforms

Number of platforms in this station

Stringoptional
Trackstracks

Number of tracks in this station

Stringoptional
Connectionsconnections

Transport interchange

Stringoptional
Disabled Accessdisabled_access

Does the station has disabled access? Yes/No/Partial

Stringoptional
Construction (Category)construction_category

Displayed Text

Stringoptional
Structure Typestructure_type

At-Grade/Underground/Elevated

Stringoptional
Platform Levelsplatform_levels

Number of platform level (w/o concourse)

Stringoptional
Others (Category)other_category

Displayed Text

Stringoptional
Station Codestn_code

Station code, negotiate with other operator on interchange.

Stringoptional
History (Category)history_category

Displayed Text

Stringoptional
Station Opened Datestn_opened

Date when the station started operation

Stringoptional
Station Closed Datestn_closed

Date when the station stopped operation

Stringoptional