Motorway Services Online

Retrieved from "https://motorwayservices.uk"

Asking about Christmas?

Motorway services are still open for snacks, fuel and toilets - more details.


Template:Ifexist

The parser function {{#ifexist:}} is a great way of checking that a link is available, before requesting it. However, doing this adds the page to Special:WantedPages, which can be unnecessary and make that page unusable.

This template does the same thing, but uses an alternative method of checking the status of the page, via a magic word. This means that you get the same result, but the page won't be recorded as "wanted", because really what you have is an error. Should MediaWiki ever disable that magic word, it would be really easy to fix this template.

Checks if a page exists before generating a link to it.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page Name1

Page to check

Example
M6
Contentrequired
Success Outcome2

What to do if the page exists (normally link to it)

Default
true
Example
[[M6]]
Contentsuggested
Fail Outcome3

What to show if the page doesn't exist

Contentsuggested