Difference between revisions of "Template:TrainStation"
Line 81: | Line 81: | ||
--><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"><!-- | ||
− | + | Name and colour in heading row | |
+ | --><tr><td style="background:{{Get bg colour|{{{type|non primary}}} }}; border:1px solid #AFA3BF; color:{{Get text colour|{{{type|non primary}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''<!-- | ||
+ | -->{{#if: {{{welsh|}}} | <br/><span style="font-size:12pt;color:{{Get welsh colour|{{{type|non primary}}}}}">''{{{welsh}}}''</span> }}<!-- | ||
+ | -->{{#if: {{{irish|}}} | <br/><span style="font-size:12pt;color:{{Get irish colour|{{{type|non primary}}}}}">''{{{irish}}}''</span> }}<!-- | ||
+ | -->{{#if: {{{gaelic|}}} | <br/><span style="font-size:12pt;color:{{Get gaelic colour|{{{type|non primary}}}}}">''{{{gaelic}}}''</span> }}<!-- | ||
+ | --></td></tr><tr><td></td></tr><!-- | ||
Check to see if type is valid | Check to see if type is valid |
Revision as of 20:29, 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 status.
{{TrainStation | name = Caledonian Station | type = train | country = Scotland | county = North Ayrshire | location = Ardrossan | roads = Montgomerie Street | operator = Lanarkshire and Ayrshire Railway<br />Caledonian Railway<br />London, Midland and Scottish Railway | opened = 3rd Sepetmber 1888 | closed = 4th July 1932 | status = Demolished {{#display_map: 55.63950883290983,-4.812919646501541|mappingservice=leaflet|zoom=15}} }}
TrainStation | |