Template:Facilities
This is the new template for displaying facilities at a service area. Examples of it in use are available at Help:Facilities. Quite simply, it takes the code used to display the facilities, and makes it a little easier on the eye.
Variable 1 is the type of facility. It accepts: Restaurant or Restaurants; Shop or Shops; Amenities; Outdoor Space; Charging Point or Charging Points; Fuel or Forecourt. They should be provided in that order, in line with Help:Facilities.
Variable 2 is the facilities that are available. Additionally, N, W, S and E may be used as variables as a way of stressing that a facility is available on one side of the road only. Again Help:Facilities should explain this.
Variable 3 is the type of road. This feeds straight into the stylesheet to change the colour of the box. It accepts primary, nonprimary, closed and truckstop. If nothing is provided, it will assume we have a motorway.
The 'restaurant' box normally comes first, and forecourt normally comes last, so these have special powers in the stylesheet to tidy the top/bottom.
This template organises the facilities at each service area. The key part is under 'brands'.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Category | 1 | Whether we are listing Restaurants, Shops, Amenities, Outdoor Space, Charging Points or the Forecourt.
| String | required |
Road Type | 3 | Whether the road is a Motorway, Primary, Nonprimary, Truckstop or Closed.
| String | optional |
Brands | 2 | List of facilities which are available to all traffic, often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | suggested |
Northbound Only | N | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
Southbound Only | S | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
Westbound Only | W | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
Eastbound Only | E | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
North-westbound Only | NW | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
North-eastbound Only | NE | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
South-westbound Only | SW | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
South-eastbound Only | SE | List of facilities which are only available on one side. Each item is often surrounded by curly brackets, which is what allows the search engine to find them.
| Content | optional |
Silencer | 4 | For outdoor space only really - set to s if you don't want this entry to appear in search results.
| Content | optional |