Difference between revisions of "Template:LevelCrossing"

From All About Ayrshire
Jump to: navigation, search
Line 4: Line 4:
 
"description": "",
 
"description": "",
 
"params": {
 
"params": {
 +
"name": {
 +
"description": "The name of the crossing",
 +
"type": "string",
 +
"required": true
 +
},
 
"type": {
 
"type": {
 
"description": "This should be set as:\ntrain",
 
"description": "This should be set as:\ntrain",
Line 24: Line 29:
 
"required": true
 
"required": true
 
},
 
},
"road": {
+
"roads": {
"description": "The name of the street the crossing is located",
+
"description": "The name of the road the crossing is located",
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 
},
 
},
 
"crossingtype": {
 
"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",
+
"description": "This is the type of crossing.\n\nAutomatic Barriers\n\nManually Controlled Gates\n\nManually Controlled Barriers\n\nAutomatic Half Barrier\n\nAutomatic Open Crossing\n\nOpen Crossing\n\nOther Types",
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
Line 40: Line 45:
 
<pre>
 
<pre>
 
{{LevelCrossing  
 
{{LevelCrossing  
  | number            = Ardrossan Level Crossing
+
  | name              = Ardrossan Level Crossing
 
  | type              = train
 
  | type              = train
 
  | country            = Scotland
 
  | country            = Scotland
 
  | county            = North Ayrshire
 
  | county            = North Ayrshire
 
  | location          = Ardrossan
 
  | location          = Ardrossan
  | road              = Princes Street
+
  | roads              = Princes Street
 
  | crossingtype      = Automatic Barriers
 
  | crossingtype      = Automatic Barriers
 
}}
 
}}

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

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


LevelCrossing