Template:Counties of England/sandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Counties of England:

Historic counties:
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Counties of England/doc.

This template is intended as a navigational aid in categories of the Counties of England

Usage

[edit]

{{Counties of England |prefix= |suffix= }}

Example

[edit]

In Category:Towns and villages in Bedfordshire, {{Counties of England|prefix=:Category:Towns and villages in|suffix=}} produces a navigation box with all the names of all the counties of England, with wikilinks to the respective "Towns and villages" categories.

Parameters

[edit]
Parameter Description Required or optional?
prefix Text of category namespace before the name of the county Required — minimum = :Category:
suffix Text of category namespace after the name of the county Optional
all Show all links without checking if they exist Optional
IOWprefix custom prefix for Isle of Wright Optional

Notes

[edit]
  • Categories that do not exist are suppressed.
  • The template contains the names of all present counties, all pre-1970 counties, but only some post-1970 defunct counties — e.g. 'Hereford and Worcester' is missing.

Examples

[edit]
{{Counties of England|prefix=:Category:|all=1}} gives {{Counties of England|prefix=:Category:Towns and villages in|all=1}} gives {{Counties of England|prefix=:Category:Towns and villages in|IOWprefix=:Category:Towns and villages on|all=1}} gives {{Counties of England|prefix=:Category:}} gives {{Counties of England|prefix=:Category:Towns and villages in}} gives