Template:MetroStationInfobox: Difference between revisions

From Tyne and Wear Metro wiki
Hopefully I can remove thumb now
Changed "Fare zone" to "Fare zones"
Line 35: Line 35:
     <th>Platforms</th>
     <th>Platforms</th>
     <td>{{#invoke:MetroStationInfobox|platforms|{{{Platforms}}}}}</td>
     <td>{{#invoke:MetroStationInfobox|platforms|{{{Platforms}}}}}</td>
  </tr>
}}
{{#if:{{{Fare zone|}}}|
  <tr>
    <th>Fare zone</th>
    <td>[[Has Metro fare zone::{{{Fare zone}}}]]</td>
   </tr>
   </tr>
}}
}}
Line 105: Line 99:
"CRS code": {
"CRS code": {
"type": "string"
"type": "string"
},
"Fare zone": {
"type": "string",
"suggestedvalues": [
"A",
"B",
"C",
"D"
]
},
},
"Metro opening date": {
"Metro opening date": {
Line 176: Line 161:
"description": "The distance (when following rail) in kilometers the station is from the datum point in Gosforth Depot.",
"description": "The distance (when following rail) in kilometers the station is from the datum point in Gosforth Depot.",
"type": "number"
"type": "number"
},
"Fare zones": {
"description": "Comma-separated list of fare zones the station is in",
"example": "A,B,C,D",
"type": "string"
}
}
},
},
Line 188: Line 178:
"Alternative codes",
"Alternative codes",
"Platforms",
"Platforms",
"Fare zone",
"Coordinates",
"Coordinates",
"Address",
"Address",
"Fare zones",
"Datum distance",
"Datum distance",
"Metro opening date",
"Metro opening date",

Revision as of 13:04, 24 August 2025


Infobox for pages about a Metro station

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Station nameStation name

no description

Stringsuggested
ImageImage

no description

Fileoptional
Is on green lineIs on green line

no description

Booleanoptional
Is on yellow lineIs on yellow line

no description

Booleanoptional
Nexus codeNexus code Code

no description

Stringoptional
CRS codeCRS code

no description

Stringoptional
Alternative codesAlternative codes

Comma-separated

Stringoptional
PlatformsPlatforms

Semicolon-separated platforms, with each platform in the format NUMBER,ROUTE_CODE,LENGTH_IN_METERS

Example
1,23,46;2,24,56
Stringoptional
CoordinatesCoordinates Coords

Latitude,Longitude

Example
55.0057849,-1.6083021
Stringoptional
AddressAddress

no description

Stringoptional
Fare zonesFare zones

Comma-separated list of fare zones the station is in

Example
A,B,C,D
Stringoptional
Datum distanceDatum distance

The distance (when following rail) in kilometers the station is from the datum point in Gosforth Depot.

Numberoptional
Metro opening dateMetro opening date

no description

Dateoptional
Original opening dateOriginal opening date

When the station first opened, even if it was prior to Metro

Dateoptional
Has bus interchangeHas bus interchange

no description

Booleanoptional
Has rail interchangeHas rail interchange

no description

Booleanoptional
Car parking spacesCar parking spaces

no description

Numberoptional
Cycle parking spacesCycle parking spaces

no description

Numberoptional