Template:Brand Search List: Difference between revisions
m trying it as a whole script |
m Protected "Template:Brand Search List": High traffic page: No need to edit ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(45 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1|}}} | <includeonly>{{#ifeq: {{{type|}}} | template | Template: }}{{#switch: {{{1|}}} | ||
|Any = | |Any = | ||
|Supermac%27s = {Supermac's}:1, | |Supermac%27s | ||
|McDonald%27s = {McDonald's}:1, | |Supermac%27s Drive Thru = {Supermac's}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Supermac's Drive Thru} | ||
|M%26S Simply Food = {M&S Simply Food}:1, | |McDonald%27s | ||
| | |McDonald%27s Drive Thru = {McDonald's}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{McDonald's Drive Thru} | ||
| | |M%26S Simply Food = {M&S Simply Food}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{M&S Food} | ||
|Nando%27s = {Nando's} | |Dunkin%27 Donuts = {Dunkin' Donuts} | ||
|BP = {BP} | |Domino%27s = {Domino's} | ||
|Burger King Drive Thru = {Burger King}:1, | |Nando%27s = {Nando's} | ||
| | |BP = {BP} | ||
|Costa = {Costa}:1, | |Burger King Drive Thru | ||
|Costa Express = {Costa Express} | |Burger King = {Burger King}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Burger King Drive Thru} | ||
|Chozen Noodle = {Chozen Noodle} | |Costa Drive Thru | ||
|Deli by Shell = {Deli by Shell} | |Costa Coffee | ||
|JET = {JET} | |Costa = {Costa Coffee}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Costa Drive Thru} | ||
|Fresh Food Cafe = {Fresh Food Cafe} | |Costa Express = {Costa Express} | ||
|Chopstix Noodle Bar = {Chopstix Noodle Bar} | |Chozen Noodle = {Chozen Noodle} | ||
|Ramada = {Ramada} | |Deli by Shell = {Deli by Shell} | ||
| | |JET = {JET} | ||
| | |Phat Pasty | ||
|Chow = {Chow} | |The Phat Pasty Co | ||
| | |Phat Pasty Co = {Phat Pasty Co} | ||
| | |Petite Camile = {Petite Camile} | ||
|Greggs | |Fresh Food Cafe = {Fresh Food Cafe} | ||
| | |Chopstix Noodle Bar = {Chopstix Noodle Bar} | ||
|Braeburn Coffee = {Braeburn Coffee}:1, | |Ramada = {Ramada} | ||
|Braeburn Drive Thru | |Game Zone = {Game Zone} | ||
|Ibis Budget = {Ibis Budget}:1, | |Days Inn = {Days Inn} | ||
|El Mexicana = {El Mexicana} | |Chow = {Chow} | ||
|Coco Di Mama = {Coco | |Garden Square Deli | ||
|LEON = {LEON} | |The Garden Square Deli = {Garden Square Deli} | ||
|PizzaExpress = {PizzaExpress} | |Greggs Drive Thru | ||
|The Bakewell = {The Bakewell} | |Greggs = {Greggs}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Greggs Drive Thru} | ||
|Esso = {Esso} | |Braeburn Coffee | ||
|ASDA = {ASDA} | |Braeburn Drive Thru = {Braeburn Coffee}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Braeburn Drive Thru} | ||
|The Good Breakfast = {The Good Breakfast}:1, | |Ibis | ||
| | |Ibis Budget = {Ibis Budget}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Ibis} | ||
|KFC = {KFC}:1, | |El Mexicana = {El Mexicana} | ||
|Brewers Fayre = {Brewers Fayre} | |Tapori = {Tapori} | ||
|Taco Bell = {Taco Bell}:1, | |Coco di Mama | ||
|Brightside = {Brightside} | |Coco Di Mama = {Coco di Mama} | ||
|Krispy Kreme = {Krispy Kreme} | |LEON = {LEON} | ||
|Co-op Food = {Co-op Food} | |PizzaExpress = {PizzaExpress} | ||
|Morrisons = {Morrisons}:1, | |The Bakewell = {The Bakewell} | ||
|Tesco = {Tesco}:1, | |Esso = {Esso} | ||
|Beefeater = {Beefeater} | |Wash.ME | ||
|Table Table = {Table Table} | |Wash ME | ||
|Brewers Fayre = {Brewers Fayre} | |Revolution | ||
|The Cornish Bakery = { | |Revolution Laundry = {Wash ME} | ||
|Applegreen = {Applegreen} | |Asda Express | ||
|Shell = {Shell} | |ASDA Express | ||
|SPAR = {SPAR}:1, | |ASDA = {ASDA} | ||
|Starbucks = {Starbucks}:1, | |The Good Breakfast = {The Good Breakfast} | ||
|Subway = {Subway} | |Select = {Select}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Budgens}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Little Waitrose} | ||
|Texaco = {Texaco} | |Budgens = {Budgens} | ||
|Travelodge = {Travelodge} | |KFC Drive Thru | ||
|Top Gift = {Top Gift} | |KFC = {KFC}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{KFC Drive Thru} | ||
|Circle K = {Circle K} | |Brewers Fayre = {Brewers Fayre} | ||
|WHSmith = {WHSmith} | |Taco Bell Drive Thru | ||
|Nisa = {Nisa} | |Taco Bell = {Taco Bell}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Taco Bell Drive Thru} | ||
|Lavazza = {Lavazza} | |Brightside = {Brightside} | ||
|Gulf = {Gulf} | |Cantina = {Cantina} | ||
| | |Offbeat Donuts | ||
| | |Offbeat = {Offbeat Donuts} | ||
| | |Krispy Kreme = {Krispy Kreme} | ||
|Harvester = {Harvester} | |Co-op | ||
|Mace = {Mace} | |Co-op Food = {Co-op Food} | ||
|Pizza Hut = {Pizza Hut} | |Morrisons Daily | ||
|Morrisons = {Morrisons}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Morrisons Daily} | |||
|Murco = {Murco} | |Tesco Express | ||
|OK Diner = {OK Diner} | |Tesco = {Tesco}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Tesco Express} | ||
|TotalEnergies = {TotalEnergies} | |Beefeater = {Beefeater} | ||
| | |Table Table = {Table Table} | ||
|Holiday Inn = {Holiday Inn}:1, | |Brewers Fayre = {Brewers Fayre} | ||
|Waitrose = {Waitrose}:1, | |The Cornish Bakery | ||
|West Cornwall Pasty Co = {West Cornwall Pasty Co}:1, | |Cornish Bakery = {Cornish Bakery} | ||
| | |Applegreen = {Applegreen} | ||
| | |Shell = {Shell} | ||
|SPAR Express | |||
|SPAR = {SPAR}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{SPAR Express} | |||
|Starbucks Drive Thru | |||
|Starbucks = {Starbucks}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Starbucks Drive Thru} | |||
|Subway = {Subway} | |||
|Texaco = {Texaco} | |||
|Travelodge = {Travelodge} | |||
|Top Gift = {Top Gift} | |||
|Phone Tech = {Phone Tech} | |||
|Circle K = {Circle K} | |||
|WHSmith = {WHSmith} | |||
|Nisa Local | |||
|Nisa = {Nisa} | |||
|Lavazza = {Lavazza} | |||
|Gulf = {Gulf} | |||
|Select = {Select} | |||
|Quicksilver = {Quicksilver} | |||
|Costcutter = {Costcutter} | |||
|Harvester = {Harvester} | |||
|Mace = {Mace} | |||
|Pizza Hut = {Pizza Hut} | |||
|Murco = {Murco} | |||
|OK Diner = {OK Diner} | |||
|TotalEnergies = {TotalEnergies} | |||
|Premier Inn = {Premier Inn} | |||
|Freshii = {Freshii} | |||
|Holiday Inn Express | |||
|Holiday Inn = {Holiday Inn}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Holiday Inn Express} | |||
|Little Waitrose | |||
|Waitrose = {Waitrose}{{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}{Little Waitrose} | |||
|West Cornwall Pasty Co = {West Cornwall Pasty Co} | |||
|Wild Bean Cafe = {Wild Bean Cafe} | |||
|#default = {Dir} }}{{#ifeq: {{{1|}}} | Any || {{#ifeq: {{{type|}}} | kml | :1, | {{#ifeq: {{{type|}}} | main | , }} }}}}</includeonly><noinclude>This template lists every brand template that people may want to search by. It is called upon by [[Services Search]] and [[Map:Services]], so we can find any labels associated with that branch, without allowing the user to enter whatever brand name they want. | |||
Note that brands with punctuation in their name have to be logged on those two pages too. | |||
[[Category:Templates|Brand Search List]][[Category:Facility Templates| ]][[Category:Facility Templates IE| ]][[Category:Hide From Drop-Down]]<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Brand Requested", | |||
"description": "Tells us what brand is requested.", | |||
"example": "KFC", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"type": { | |||
"label": "Format", | |||
"description": "Formats the output depending on which part of the search engine wants it.", | |||
"example": "main, kml or template", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "This is an automatic template that takes data from other pages. To make changes, you need to find the page where that data is being hosted - normally a service area's page.", | |||
"format": "inline", | |||
"paramOrder": [ | |||
"type", | |||
"1" | |||
] | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 21:36, 29 March 2025
This template lists every brand template that people may want to search by. It is called upon by Services Search and Map:Services, so we can find any labels associated with that branch, without allowing the user to enter whatever brand name they want.
Note that brands with punctuation in their name have to be logged on those two pages too.
This is an automatic template that takes data from other pages. To make changes, you need to find the page where that data is being hosted - normally a service area's page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Format | type | Formats the output depending on which part of the search engine wants it.
| String | suggested |
Brand Requested | 1 | Tells us what brand is requested.
| String | required |