Difference between revisions of "Template:England Ceremonial Counties Labelled Map/doc"
imported>Dr Greg (add cat) |
imported>Dr Greg (add cat) |
||
| Line 130: | Line 130: | ||
<!-- Categories and interwikis go here: --> | <!-- Categories and interwikis go here: --> | ||
[[Category:English county map templates]] | [[Category:English county map templates]] | ||
| + | [[Category:Labelled image map templates]] | ||
[[mk:Шаблон:Церемонијални грофовии во Англија-Карта]] | [[mk:Шаблон:Церемонијални грофовии во Англија-Карта]] | ||
Revision as of 01:54, 1 February 2012
| 40px | This is a documentation subpage for Template:England Ceremonial Counties Labelled Map. It contains usage information, categories and other content that is not part of the original template page. |
This template displays a labelled map of the present-day ceremonial counties of England, with each county name linked to a Wikipedia article or category associated with that county. It is intended to provide a navigation template for family of county-related articles about the same subject matter. For example, the links could all take the form "List of rivers in <countyname>".
Links to articles that do not exist will be displayed as red links, following normal practice. (It would be technically possible to make this template hide red links, but that would make the source code rather more complicated.)
The county of the City of London is not served by this template; if a link to a City of London article is required, you will have to provide this link yourself outside the template.
Usage
All parameters are optional. Without parameters, the links are to the articles named after each county, e.g. "Essex". Note that the London link defaults to "London". To override this to link to "Greater London", use {{England Ceremonial Counties Labelled Map|Londonprefix=Greater|LondonLabel=Gr. London}}. Also, the West Midlands link defaults to "West Midlands". To override this to link to "West Midlands (county)", use {{England Ceremonial Counties Labelled Map|WMsuffix=(county)}}.
| Parameter | Default | Usage |
|---|---|---|
| width= | 448 | Overall width of the map. It is recommended to omit this parameter and use the default setting. Small values will not work very well, as the county labels will overlap each other and become illegible. |
| float= | none |
|
| ns= | Namespace for the links, if not the default (article namespace). E.g. :Category: Must begin and end with a colon. | |
| prefix= | Text to precede every county name when forming links. E.g. List of rivers in. If this parameter is specified, the word "the" will automatically be appended for the three counties "East Riding of Yorkshire", "West Midlands", and "Isle of Wight". This can be overridden using the parameters ERYprefix, WMprefix and IOWprefix. | |
| suffix= | Text to follow every county name when forming links. | |
| ERYprefix= | Text to precede "East Riding of Yorkshire" when forming its link. This overrides prefix if specified, and the word "the" is not automatically appended. | |
| WMprefix= | Text to precede "West Midlands" when forming its link. This overrides prefix if specified, and the word "the" is not automatically appended. | |
| IOWprefix= | Text to precede "Isle of Wight" when forming its link. This overrides prefix if specified, and the word "the" is not automatically appended. This can be used if the Isle of Wight article name ends with "on the Isle of Wight" but other names end with "in <Countyname>" | |
| Londonprefix= | Text to precede "London" when forming its link. This overrides prefix if specified. Use this to generate a link including "Greater London". | |
| WMsuffix= | Text to follow "West Midlands" when forming its link. This overrides suffix if specified. Use this to generate a link ending in "West Midlands (county)" or "West Midlands county". | |
| LondonLabel= | The label to use instead of the default "London". Use this to generate a label "Gr. London". | |
| hash= | Set this to # if the links are to anchors in the current article, otherwise leave blank. Unlike prefix, the "#" is placed immediately before the county name, without a space character. This parameter could also be set to <ArticleName># for anchors in another article. Incompatible with prefix or any of the overriding prefixes. |
Examples
| Example link | Template usage |
|---|---|
| [[Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|Londonprefix = Greater This example replicates the behaviour of earlier versions of this template, before 31 January 2011.
|
| [[List of places in Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|prefix = List of places in
|
| [[List of bus routes in Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|prefix = List of bus routes in
|
| [[List of civil parishes in Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|prefix = List of civil parishes in
|
| [[:Category:Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|ns = :Category:
|
| [[:Category:People from Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|ns = :Category:
|
| [[#Trumptonshire|Trumps.]] | {{England Ceremonial Counties Labelled Map|hash = #}}
|