Difference between revisions of "Template:TrainStation"

From All About Ayrshire
Jump to: navigation, search
(Created page with "<noinclude> <templatedata> { "description": "", "params": { "name": { "description": "The name of the crossing", "type": "string", "required": true }, "type":...")
 
Line 113: Line 113:
  
 
Opened
 
Opened
-->{{#if: {{{open|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Opened'''</td></tr><tr><td colspan="2" align="center">
+
-->{{#if: {{{opened|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Opened'''</td></tr><tr><td colspan="2" align="center">
{{{open}}}  
+
{{{opened}}}  
 
</td></tr>}}<!--
 
</td></tr>}}<!--
  

Revision as of 17:33, 14 October 2015

<templatedata> { "description": "", "params": { "name": { "description": "The name of the crossing", "type": "string", "required": true }, "type": { "description": "This should be set as:\ntrain", "type": "string", "required": true }, "location": { "description": "The location it is located, this is the local town, village or suburb of city", "type": "string", "required": true }, "country": { "description": "The Country it is located in", "type": "string", "required": true }, "county": { "description": "The name of the County", "type": "string", "required": true }, "roads": { "description": "The name of the road that serves the station", "type": "string", "required": true }, "operator": { "description": "The comany that operated the railway", "type": "string", "required": true }, "open": { "description": "When the station opened" }, "closed": { "description": "When the station closed" }, "status": { "description": "What is the status of the station\n\nOperational\n\nClosed\n\nDemolished\n\nRuin", "required": true } } } </templatedata> Example:
The code for the map is added after the crossing type.

{{LevelCrossing 
 | name               = Ardrossan Level Crossing
 | type               = train
 | country            = Scotland
 | county             = North Ayrshire
 | location           = Ardrossan
 | roads              = Princes Street
 | open               =
 | closed             =
 | status             =
{{#display_map: 55.63950883290983,-4.812919646501541|mappingservice=leaflet|zoom=15}}
}}


TrainStation