Difference between revisions of "Template:TrainStation"
(10 intermediate revisions by the same user not shown) | |||
Line 40: | Line 40: | ||
}, | }, | ||
"open": { | "open": { | ||
− | "description": "When the station opened" | + | "description": "When the station opened", |
+ | "type": "number" | ||
}, | }, | ||
"closed": { | "closed": { | ||
− | "description": "When the station closed" | + | "description": "When the station closed", |
+ | "type": "number" | ||
}, | }, | ||
"status": { | "status": { | ||
"description": "What is the status of the station\n\nOperational\n\nClosed\n\nDemolished\n\nRuin", | "description": "What is the status of the station\n\nOperational\n\nClosed\n\nDemolished\n\nRuin", | ||
− | "required": true | + | "required": true, |
+ | "type": "string" | ||
+ | }, | ||
+ | "guage": { | ||
+ | "description": "What is the guage of the rail track", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "dates": { | ||
+ | "description": "The dates of operation", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "image": { | ||
+ | "description": "the image you want to show\n\nFile:example.jpg", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "successor": { | ||
+ | "description": "The names of company", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "predecessor": { | ||
+ | "description": "The names of companies", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "miles": { | ||
+ | "description": "The distance of track", | ||
+ | "type": "number" | ||
} | } | ||
} | } | ||
Line 58: | Line 85: | ||
| name = Caledonian Station | | name = Caledonian Station | ||
| type = train | | type = train | ||
+ | | image = | ||
| country = Scotland | | country = Scotland | ||
| county = North Ayrshire | | county = North Ayrshire | ||
Line 63: | Line 91: | ||
| roads = Montgomerie Street | | roads = Montgomerie Street | ||
| operator = Lanarkshire and Ayrshire Railway<br />Caledonian Railway<br />London, Midland and Scottish Railway | | operator = Lanarkshire and Ayrshire Railway<br />Caledonian Railway<br />London, Midland and Scottish Railway | ||
+ | | predessor = | ||
+ | | successor = | ||
| opened = 3rd Sepetmber 1888 | | opened = 3rd Sepetmber 1888 | ||
| closed = 4th July 1932 | | closed = 4th July 1932 | ||
| status = Demolished | | status = Demolished | ||
− | + | | guage = | |
+ | | miles = | ||
{{#display_map: 55.63950883290983,-4.812919646501541|mappingservice=leaflet|zoom=15}} | {{#display_map: 55.63950883290983,-4.812919646501541|mappingservice=leaflet|zoom=15}} | ||
}} | }} | ||
Line 80: | Line 111: | ||
Start the table | Start the table | ||
+ | |||
--><table style="margin:6px;clear:right;" class="toc colour" align="right" width="267"><!-- | --><table style="margin:6px;clear:right;" class="toc colour" align="right" width="267"><!-- | ||
Line 94: | Line 126: | ||
--></td></tr><!-- | --></td></tr><!-- | ||
− | + | --><td><td align=center>{{{image}}}</td><!-- | |
− | -- | ||
− | {{{image}}} | ||
− | </td> | ||
Location | Location |
Latest revision as of 09:46, 2 November 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",
"type": "number"
},
"closed": {
"description": "When the station closed",
"type": "number"
},
"status": {
"description": "What is the status of the station\n\nOperational\n\nClosed\n\nDemolished\n\nRuin",
"required": true,
"type": "string"
},
"guage": {
"description": "What is the guage of the rail track",
"type": "string"
},
"dates": {
"description": "The dates of operation",
"type": "string"
},
"image": {
"description": "the image you want to show\n\nFile:example.jpg",
"type": "string"
},
"successor": {
"description": "The names of company",
"type": "string"
},
"predecessor": {
"description": "The names of companies",
"type": "string"
},
"miles": {
"description": "The distance of track",
"type": "number"
}
}
}
</templatedata>
Example:
The code for the map is added after the status.
{{TrainStation | name = Caledonian Station | type = train | image = | country = Scotland | county = North Ayrshire | location = Ardrossan | roads = Montgomerie Street | operator = Lanarkshire and Ayrshire Railway<br />Caledonian Railway<br />London, Midland and Scottish Railway | predessor = | successor = | opened = 3rd Sepetmber 1888 | closed = 4th July 1932 | status = Demolished | guage = | miles = {{#display_map: 55.63950883290983,-4.812919646501541|mappingservice=leaflet|zoom=15}} }}
TrainStation | |
{{{image}}} |