Difference between revisions of "Template:LevelCrossing"

From All About Ayrshire
Jump to: navigation, search
Line 61: Line 61:
 
--><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"><!--
  
Number--><tr><td style="background:{{Get bg colour|{{{type|non primary}}} }}; border:1px solid #000000; color:{{Get road text colour|{{{type|non primary}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{number|}}} | {{{number|}}} | {{PAGENAME}} }}'''<!--
+
Number--><tr><td style="background:{{Get bg colour|{{{type|non primary}}} }}; border:1px solid #000000; color:{{Get road text colour|{{{type|non primary}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{name|}}} | {{{name|}}} | {{PAGENAME}} }}'''<!--
  
 
Check to see if type is valid
 
Check to see if type is valid

Revision as of 14:01, 13 October 2015

<templatedata> { "description": "", "params": { "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 }, "road": { "description": "The name of the street the crossing is located", "type": "string", "required": true }, "crossingtype": { "description": "This is the type of crossing.\n\nAutomatic Barriers\nManually Controlled Gates\nManually Controlled Barriers\nAutomatic Half Barrier\nAutomatic Open Crossing\nOpen Crossing\nOther Types", "type": "string", "required": true } } } </templatedata> Example:

{{LevelCrossing 
 | number             = Ardrossan Level Crossing
 | type               = train
 | country            = Scotland
 | county             = North Ayrshire
 | location           = Ardrossan
 | road               = Princes Street
 | crossingtype       = Automatic Barriers
}}


LevelCrossing