Motorway Services Online

Retrieved from "https://motorwayservices.uk"

Template:Picture gallery

This script automatically generates the results for the gallery pages. To create a new gallery, put {{Picture gallery}} in a gallery page. It will then search for photos which are in the category Category:PAGE NAME pictures, where "PAGE NAME" is the name of the page where you've placed that code. That category is powered by Template:Photo - see Help:Photos for details.

If you want it to search for other galleries too, put {{Picture gallery|SECOND GALLERY}} or {{Picture gallery|SECOND GALLERY|THIRD GALLERY}} . This will affect the title of the page. If you don't want that, silence it with |s = yes .

If the subject of the gallery has nothing to do with Irish motorways, include |country = UK to force it to use the .co.uk version. If it has nothing to do with UK motorways, use |country = IE . Otherwise, use |country = both . If not provided, it will assume "both".

Photos missing from the gallery?

If there are some photos missing from the gallery, the first thing you need to check is that the missing photo is in the correct gallery. The spelling needs to match the gallery name letter-for-letter, including capital letters and apostrophes. (Truth be told, the system above means it can guess some common errors, but it's best not to rely on this.)

To do that, first you need to browse to where the photo is saved. If you can't find it, use Special:NewFiles to see our newest uploads. Tap on your photo, and then go to edit it using the edit button at the bottom. This should load the code with Template:Photo - you're looking for the line with "feature1", and the four lines below it.

The most common cause of the problem is simply that you need to wait, especially if the gallery was only recently created. This is to do with the way the photo page and the gallery page are both cached, so it can take up to 48 hours for them to communicate the new addition to each other.

If the problem is that the collection of photos is right but the count is wrong, this usually means some of the photos are tagged with the wrong spelling. There are a few ways to manipulate the figure (usually involving the variable 'gallery'), but doing that tends to cause further issues.

This template automatically generates a photo gallery. To edit a photo or change which galleries it appears in, you need to open that photo's page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Descriptions

What should the title of this page be? If 'yes', it will take the page's name. If 'no', it will take variable 1 (title).

Default
It will display both the page's name and variable 1 (title), if provided.
Example
yes, no or both
Page nameoptional
Gallery Orderorder

History pages and former brands should be ascending (oldest years first). This only affects the default setting - it can be overruled by the user.

Default
descending
Example
ascending
Stringoptional
Countrycountry

Decides which version of the website the gallery should appear under.

Default
both
Example
IE, UK or both
Stringrequired
Title1

By default, the script will search for photos tagged with this page name. To search for another tag too, enter it here.

Default
{{PAGENAME}}
Example
Keele
Stringoptional
More Pages2

If you want to add a second tag to search for, enter it here. Does not affect page description. We used to add a third (or more) using a broken vertical bar, but this is no longer necessary.

Example
Keele OR Keele pictures¦Keele
Stringoptional
Third Tag3

If you want to add a third tag to search for, enter it here.

Example
Keele
Stringoptional
Fourth Tag4

If you want to add a fourth tag to search for, enter it here.

Example
Keele
Stringoptional
Fifth Tag5

If you want to add a fifth tag to search for, enter it here.

Example
Keele
Stringoptional
Sixth Tag6

If you want to add a sixth tag to search for, enter it here.

Example
Keele
Stringoptional
Seventh Tag7

If you want to add a seventh tag to search for, enter it here.

Example
Keele
Stringoptional
Eighth Tag8

If you want to add an eighth tag to search for, enter it here.

Example
Keele
Stringoptional
Ninth Tag9

If you want to add a ninth tag to search for, enter it here.

Example
Keele
Stringoptional
Tenth Tag10

If you want to add a tenth tag to search for, enter it here. If you need any more, you'll have to use a broken vertical bar and the word pictures

Example
Keele OR Keele pictures¦Tebay
Stringoptional
User Gallery?usergallery

Galleries for users get treated differently, so say if it's one of them.

Default
false
Example
true
Booleanoptional