Services Search: Difference between revisions
m all good apart from the sort still doesn't happen |
m I think that's enough for now |
||
Line 8: | Line 8: | ||
{{#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| | ||
{{#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> }}}}{{#ifeq: {{#request:rating}} | 5 stars only || {{#ifeq: {{#request:rating}} | 1 star only || <th style="width:80px">Rating</th>}}}}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#ifeq:{{#request:road}}|Any||<th><span>sort by distance</span></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">,</td></tr>,</table> | table=class="aroadsearch" }} | 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>|Operator}}</th> }}}}{{#ifeq: {{#request:rating}} | 5 stars only || {{#ifeq: {{#request:rating}} | 1 star only || <th style="width:80px">Rating</th>}}}}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#ifeq:{{#request:road}}|Any||<th><span>sort by distance</span></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">,</td></tr>,</table> | 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> }}}}{{#ifeq: {{#request:rating}} | 5 stars only || {{#ifeq: {{#request:rating}} | 1 star only || <th style="width:80px">Rating</th>}}}}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#ifeq:{{#request:road}}|Any||<th><span>sort by distance</span></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">,</td></tr>,</table> | {{#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> }}}}{{#ifeq: {{#request:rating}} | 5 stars only || {{#ifeq: {{#request:rating}} | 1 star only || <th style="width:80px">Rating</th>}}}}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#ifeq:{{#request:road}}|Any||<th><span>sort by distance</span></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> | table=class="aroadsearch" }} | 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>|Operator}}</th> }}}}{{#ifeq: {{#request:rating}} | 5 stars only || {{#ifeq: {{#request:rating}} | 1 star only || <th style="width:80px">Rating</th>}}}}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#ifeq:{{#request:road}}|Any||<th><span>sort by distance</span></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> | 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> }}}}{{#ifeq: {{#request:rating}} | 5 stars only || {{#ifeq: {{#request:rating}} | 1 star only || <th style="width:80px">Rating</th>}}}}{{#if: {{#request:postcode}} | <th>Postcode</th>}}{{#if: {{#request:signposted}} || <th>Signposted from the road?</th> }}{{#ifeq:{{#request:road}}|Any||<th><span>sort by distance</span></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> | ||
}} | }} | ||
|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 41: | Line 40: | ||
|Nando%27s = Template:Nando's | |Nando%27s = Template:Nando's | ||
|Sainsbury%27s = Template:Sainsbury's | |Sainsbury%27s = Template:Sainsbury's | ||
|#default = Template:{{#request:brands}}}} | Template:Services }}| | |#default = Template:{{#request:brands}}}} | Template:Services }}|includepage = {{#if: {{#request:aroad}} | {{#ifeq: {{#request:aroad}} | Any | {{#if: {{#request:brands}} | {{#switch: {{#request:brands}} | ||
| Any = | | Any = | ||
|Supermac%27s = {Supermac's}, | |Supermac%27s = {Supermac's}, | ||
Line 76: | Line 75: | ||
{{#if: {{#request:changing}} | {{#request:changing}}}}| | {{#if: {{#request:changing}} | {{#request:changing}}}}| | ||
{{#if: {{#request:lpg}} | {{#request:lpg}}}}| | {{#if: {{#request:lpg}} | {{#request:lpg}}}}| | ||
{{#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}}| | ||
{{#if: {{#request:aroad}} | \n\n<span class="results">\n\n | Services are shown in alphabetical order. Use the arrow icon at the far right to sort by junction number.<br /><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= | {{#if: {{#request:aroad}} | \n\n<span class="results">\n\n | Services are shown in alphabetical order. Use the arrow icon at the far right to sort by junction number.<br /><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 /> }} |
Revision as of 10:08, 2 June 2020

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.