Services Search: Difference between revisions
m test |
mNo edit summary |
||
Line 7: | Line 7: | ||
|__NOINDEX__{{#vardefine:refuse|{{#if:{{#request:lpg}}{{#request:covid}}{{#request:electriccar}}{{#request:changing}}{{#request:meetingroom}}{{#request:playarea}}||{{#request:road}}{{#request:brands}}{{#request:operator}}{{#request:aroad}}{{#request:access}}{{#request:rating}}}}}} | |__NOINDEX__{{#vardefine:refuse|{{#if:{{#request:lpg}}{{#request:covid}}{{#request:electriccar}}{{#request:changing}}{{#request:meetingroom}}{{#request:playarea}}||{{#request:road}}{{#request:brands}}{{#request:operator}}{{#request:aroad}}{{#request:access}}{{#request:rating}}}}}} | ||
{{#ifeq:{{#var:refuse}}|AnyAnyAnyAnyAnyAny|'''Search found too many results to display.''' You should select at least one criteria to search by. At the very least, tick 'hide A-road services' so that you don't get hundreds of results. | {{#ifeq:{{#var:refuse}}|AnyAnyAnyAnyAnyAny|'''Search found too many results to display.''' You should select at least one criteria to search by. At the very least, tick 'hide A-road services' so that you don't get hundreds of results. | ||
{{Search|Services_Search|country={{#if: {{#request:country}} | {{#request:country}} | UK}}}}|{{#dpl:debug=0|count=60 | {{Search|Services_Search|country={{#if: {{#request:country}} | {{#request:country}} | UK}}}}|{{#dpl:debug=0|count=60|{{#ifeq:{{#request:aroad}}| Any | category=Services | notcategory=Planned Services }}| | ||
|{{#ifeq:{{#request:aroad}}| Any | category=Services | notcategory=Planned Services }}| | |||
{{#if: {{#request:aroad}} | {{#ifeq: {{#request:aroad}} | Any | format=<br />\n<span class="center"><table class="sortable default" style="text-align:left"><tr><th>Name<br /><span>''(tap for detail)''</span></th><th>Road</th>{{#ifeq: {{#request:operator}} | Any | <th>Main Operator</th> | {{#if: {{#request:operator}} || <th>{{#ifeq:{{#request:country}}|IE|Owner <span>(operator)</span>|Main Operator}}</th> }}}}{{#switch: {{#request:rating}} | {{#if: {{#request:aroad}} | {{#ifeq: {{#request:aroad}} | Any | format=<br />\n<span class="center"><table class="sortable default" style="text-align:left"><tr><th>Name<br /><span>''(tap for detail)''</span></th><th>Road</th>{{#ifeq: {{#request:operator}} | Any | <th>Main Operator</th> | {{#if: {{#request:operator}} || <th>{{#ifeq:{{#request:country}}|IE|Owner <span>(operator)</span>|Main Operator}}</th> }}}}{{#switch: {{#request:rating}} | ||
|At least 4 stars | |At least 4 stars | ||
Line 36: | Line 34: | ||
#default = }}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#if: {{#request:electriccar}} | <th>Charging Points</td> | {{#if: {{#request:fuel}} | <th>Fuel Provider</th>}}}}</tr>\n,<tr><td style="padding:0.5em 1.5em">[[%PAGE%]],</td></tr>,</table> | #default = }}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#if: {{#request:electriccar}} | <th>Charging Points</td> | {{#if: {{#request:fuel}} | <th>Fuel Provider</th>}}}}</tr>\n,<tr><td style="padding:0.5em 1.5em">[[%PAGE%]],</td></tr>,</table> | ||
}} | }} | ||
|{{#ifeq:{{#request:road}}|Any|{{#ifeq:{{#request:aroad}}|Any|ordermethod=titlewithoutnamespace|ordermethod=sortkey}} }} | |||
|category={{#if: {{#request:road}} | {{#switch: {{#request:road}} | |category={{#if: {{#request:road}} | {{#switch: {{#request:road}} | ||
| Any = {{#ifeq: {{#request:aroad}} | Any | Services | {{#request:aroad}} }} | | Any = {{#ifeq: {{#request:aroad}} | Any | Services | {{#request:aroad}} }} | ||
Line 104: | Line 103: | ||
{{#if: {{#request:lpg}} | {{#request:lpg}}}}| | {{#if: {{#request:lpg}} | {{#request:lpg}}}}| | ||
{{#if: {{#request:covid}} | {{#request:covid}}}}| | {{#if: {{#request:covid}} | {{#request:covid}}}}| | ||
{{#if: {{#request:electriccar}} | {{#request:electriccar}}}}}}{{#ifeq: {{#request:road}} | Any | {{#if: {{#request:aroad}} | \n\n<span class="results">\n\n}} | {{plural:%PAGES%| {{#if: {{#request:aroad}} | \n\n<span class="results">\n\n}}| | {{#if: {{#request:electriccar}} | {{#request:electriccar}}}}}}{{#ifeq: {{#request:road}} | Any | {{#if: {{#request:aroad}} | \n\n<span class="results">\n\n}} | {{plural:%PAGES%| {{#if: {{#request:aroad}} | \n\n<span class="results">\n\n}}| <span>}} }}|noresultsheader = No services matched your search criteria. This normally means your criteria was too specific: try using just one of the options, and then narrow it down if you need to.\n\n{{#ifeq:{{#request:country}}|IE|[[:Category:Irish services|Search again]]|[[Main Page#Search for Motorway Services|Search again]]}}?|resultsfooter= | ||
</span><br /><span class="center">{{#ifeq:{{#request:country}}|IE|[[:Category:Irish services|Search again]]|[[Main Page#Search for Motorway Services|Search again]]}}</span><br /> }} | </span><br /><span class="center">{{#ifeq:{{#request:country}}|IE|[[:Category:Irish services|Search again]]|[[Main Page#Search for Motorway Services|Search again]]}}</span><br /> }} | ||
{{#dpl:count=60|debug=0|redirects=include|{{#ifeq:{{#request:aroad}}| Any | category=Services | notcategory=Planned Services }}|{{#ifeq:{{#request:aroad}}| N1 and A1 | category=Services | {{#ifeq:{{#request:country}}|IE|category=Irish services|notcategory=Irish services}} }}|notcategory={{#if:{{#request:noTRSA}}|A-roads|Closed Services}}|notcategory={{#if:{{#request:nohgv}}|No HGVs|Closed Services}}|notcategory={{#if:{{#request:night}}|Daytime Only|Closed Services}}|category={{#if: {{#request:road}} | {{#switch: {{#request:road}} | {{#dpl:count=60|debug=0|redirects=include|{{#ifeq:{{#request:aroad}}| Any | category=Services | notcategory=Planned Services }}|{{#ifeq:{{#request:aroad}}| N1 and A1 | category=Services | {{#ifeq:{{#request:country}}|IE|category=Irish services|notcategory=Irish services}} }}|notcategory={{#if:{{#request:noTRSA}}|A-roads|Closed Services}}|notcategory={{#if:{{#request:nohgv}}|No HGVs|Closed Services}}|notcategory={{#if:{{#request:night}}|Daytime Only|Closed Services}}|category={{#if: {{#request:road}} | {{#switch: {{#request:road}} |
Revision as of 04:40, 26 February 2021

The form below allows you to search all the motorway services included in our database; whether you're looking for a service station which meets your precise criteria or just one that is near you. You will then be able to tap each of the results for more precise details. You can also use the map to find services near you.
It's best to start by using just one of the drop-down boxes - you can use another if you get too many results.
Looking for services near you?
Open up the map and tell it which road you are on, and the map should then be able to find your nearest motorway services.