Template:Namefix/doc: Difference between revisions
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 33: | Line 33: | ||
This is of use within categorisation protocols, for example {{tl|Infobox waterfall}} will automatically categorise an article as, for example "Category:Waterfalls of Devon" or "Category:Waterfalls of the Falkland Islands"; it is {{tl|Namefix 2}} which adds "the" where required. | This is of use within categorisation protocols, for example {{tl|Infobox waterfall}} will automatically categorise an article as, for example "Category:Waterfalls of Devon" or "Category:Waterfalls of the Falkland Islands"; it is {{tl|Namefix 2}} which adds "the" where required. | ||
Using examples as above: | |||
{| class="wikitable" cellpadding="5" | |||
! ''entry'' !! ''result'' | |||
|- | |||
| ''Carnarfonshire'' || {{namefix 2|Caernarfonshire}} | |||
|- | |||
| ''Down'' || {{namefix 2|Down}} | |||
|- | |||
| ''BIOT'' || {{namefix 2|British Indian Ocean Territory}} | |||
|- | |||
| ''Falklands'' || {{namefix 2|Falkland Islands}} | |||
|- | |||
| ''Jersey'' || {{namefix 2|Jersey}} | |||
|- | |||
| ''Man'' || {{namefix 2|Man}} | |||
|} | |||
This template is mainly used within [[:Category:Categorisation templates|Categorisation templates]]. | This template is mainly used within [[:Category:Categorisation templates|Categorisation templates]]. | ||
=={{tl|Namefix 3}}== | |||
{{tl|Namefix 3}} takes {{tl|Namefix 2}} a step on, applying to any given name, but choosing the right preposition for it: "in" or "on", for example "in Berkshire" but "on the Falkland Islands", "on the Isle of Man" and so forth. "On" is only used for a few island territories. | |||
This may be of use within categorisation protocols. | |||
Using examples as above: | |||
{| class="wikitable" cellpadding="5" | |||
! ''entry'' !! ''result'' | |||
|- | |||
| ''Carnarfonshire'' || {{namefix 3|Caernarfonshire}} | |||
|- | |||
| ''Down'' || {{namefix 3|Down}} | |||
|- | |||
| ''Gibraltar'' || {{namefix 3|Gibraltar}} | |||
|- | |||
| ''Falklands'' || {{namefix 3|Falkland Islands}} | |||
|- | |||
| ''Caymans'' || {{namefix 3|Caymans}} | |||
|- | |||
| ''Man'' || {{namefix 3|Man}} | |||
|} | |||
This template is only used within [[:Category:Categorisation templates|Categorisation templates]]. | |||
=={{tl|Namefix&sort}}== | =={{tl|Namefix&sort}}== | ||
Line 51: | Line 94: | ||
|{{tl|Hillfix}} || The names of ranges of hills (eg. 'Pennines' replacing 'Pennine Hills') | |{{tl|Hillfix}} || The names of ranges of hills (eg. 'Pennines' replacing 'Pennine Hills') | ||
|- | |- | ||
|{{tl|Islegroupfix}} || The names of island | |{{tl|Islegroupfix}} || The names of island groups (eg. 'Isles of Scilly' replacing 'Scilly') | ||
|- | |- | ||
|{{tl|Mountsort}} || Alphabetical sorting, so that hills beginning "Mount" are sorted under the name not the prefix | |{{tl|Mountsort}} || Alphabetical sorting, so that hills beginning "Mount" are sorted under the name not the prefix |
Latest revision as of 20:42, 19 August 2019
Template:Mbox {{Namefix}} and {{Namefix 2}} and {{Namefix&sort}} are Templates to deal with the fact that place-names have variant forms, and in particular county and territory names. They are not of use within the body of an article but they serve within the programming of other templates.
Wikishire categorises articles by county or territory automatically and it may contain automated links in an infobox, and this categorisation and linking is dependent on have a single, standard name for each county, or we could end up with some articles in "Category:Hills in Devon" and others in "Category:Hills in Devonshire"; both names are correct, but for Wikishire to work it has to work with one version. Therefore if in an infobox a contributor enters the county as "Devonshire", the system will, through these templates, silently amend it to "Devon".
{{Namefix}}
The most important of these templates, {{Namefix}} contains a list of variant names and the standard versions which Wikishire's systems.
Examples are:
Carnarvonshire | Caernarfonshire |
Caernarvonshire | |
Devonshire | Devon |
Downshire | County Down |
Dumbartonshire | Dunbartonshire |
Haddingtonshire | East Lothian |
BIOT | British Indian Ocean Territory |
Falklands | Falkland Islands |
The template is used in a great many templates and every Infobox, wherever the contributor is invited to enter the name of a county.
{{Namefix 2}}
{{Namefix 2}} applies {{Namefix}} to any given name, but then adds "the " in front of in the case of certain territories and crown dependencies, for example "the Falkland Islands", "the Isle of Man" and so forth.
This is of use within categorisation protocols, for example {{Infobox waterfall}} will automatically categorise an article as, for example "Category:Waterfalls of Devon" or "Category:Waterfalls of the Falkland Islands"; it is {{Namefix 2}} which adds "the" where required.
Using examples as above:
entry | result |
---|---|
Carnarfonshire | Caernarfonshire |
Down | County Down |
BIOT | the British Indian Ocean Territory |
Falklands | the Falkland Islands |
Jersey | the Bailiwick of Jersey |
Man | the Isle of Man |
This template is mainly used within Categorisation templates.
{{Namefix 3}}
{{Namefix 3}} takes {{Namefix 2}} a step on, applying to any given name, but choosing the right preposition for it: "in" or "on", for example "in Berkshire" but "on the Falkland Islands", "on the Isle of Man" and so forth. "On" is only used for a few island territories.
This may be of use within categorisation protocols.
Using examples as above:
entry | result |
---|---|
Carnarfonshire | in Caernarfonshire |
Down | in County Down |
Gibraltar | in Gibraltar |
Falklands | on the Falkland Islands |
Caymans | on the Cayman Islands |
Man | on the Isle of Man |
This template is only used within Categorisation templates.
{{Namefix&sort}}
This is a template to deal with the alphabetical order of county names; for example "County Antrim", and "County Durham" should be listed under "A" and "D" respectively, not "C".
This template is used within categorisation templates to ensure alphabetical sorting, for example in {{Rivers}} so that within "Rivers of Britain and Ireland", the category "Rivers of County Antrim" appears under "A".
Others
template | function |
---|---|
{{Check1shire}} | Gives an error message if the name entered is not a county nor an overseas territory. |
{{Hillfix}} | The names of ranges of hills (eg. 'Pennines' replacing 'Pennine Hills') |
{{Islegroupfix}} | The names of island groups (eg. 'Isles of Scilly' replacing 'Scilly') |
{{Mountsort}} | Alphabetical sorting, so that hills beginning "Mount" are sorted under the name not the prefix |
{{Saintsort}} | Alphabetical sorting, so that towns and villages beginning "St" are sorted as if it were written "Saint" |
{{Owned by code}} | For categories of ownership (see {{Owned by code}}). |
{{Unitfix}} | Works within the {{convert}} template: It render the names of units of measurement readable by the template |
{{Display admin}} | Abbreviates or puts line breaks in long constituency names in {{Infobox town}}, to avoid stretching the box. |
{{Display LG district}} | The same for long local government district names. |