Help:Related Pages

From All About Ayrshire
Jump to: navigation, search
Help Files
Getting Started
Wiki Guides
Formatting
Images
Talk and Organisation
Routeboxes, Infoboxes and other Templates
Editing Guidelines
Now what?

The related pages system runs in the background unknown to many. It involves the act of relating a "child" article to its parent(s), which enables links to the sub page to be shown in the routebox, thus easing navigation throughout the wiki.

How to relate a page[edit]

Many templates relate pages together automatically

Infoboxes[edit]

Template:Junction Box, Template:Services, Template:Primary Destination and Template:Services all accept up to 5 "rel" parameters (rel1, rel2, rel3, rel4 and rel5), which should be populated with a single (non wikilinked) route number. This will generate a list of all of the other similar features on that road, and automatically relate the page to its parent. For example, adding rel1 = M5 to a services infobox will generate a list of all services on the M5, as well as relating the page itself to the M5.

Note: The current page is always omitted from the generated list

Route Lists[edit]

Any entry given in a route list automatically causes the page to be related to that road.

Manual Relation[edit]

Some articles will not use an infobox or route list, and you will need to manually relate them. When editing the child article, simply add [[Category:<parent article>]] to the list of categories, e.g. putting [[Category:M5]] on the Strensham Services page will relate that page to the M5. You will notice that normally, the relation category will not show up where categories are listed, this is because they are psuedo categories, only used for linking information together.

As of October 2009, only individual road articles (those with a {{Routebox}}) can be parent articles in this way.

For the purposes of creating a map[edit]

Many list articles have an associated Google Map, however the list is often split into several pages to organise by region or country. When creating a map, a category must be specified, in which all coordinates given on pages contained within that category will be plotted onto the map.

This is where related pages comes in again, all list articles will have a "parent article", e.g. Bromsgrove is a child of Primary Destinations, and has been related by adding the list article into the Primary Destinations category. Now, when Map:Primary Destinations is loaded, it'll scour the related category looking for coordinates to plot on the map.