Template:Ownership cat: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{Owned by code|{{{1}}}}} | {{#switch:{{Owned by code|{{{1}}}}} | ||
|National Trust={{CatNT|{{{2}}}}} | |National Trust | ||
|National Trust for Scotland={{CatNT|{{{2}}}}} | |||
|Landmark Trust | |Landmark Trust | ||
|Irish Landmark Trust | |Irish Landmark Trust | ||
|An Taisce=[[Category:{{Owned by code|{{{1}}}}} properties in {{namefix 2|{{{2}}}}}]]{{#ifeq:{{#var:shire}}|Yorkshire|{{#ifeq:{{#varexists:riding}}|1|[[Category:{{Owned by code|{{{1}}}}} properties in | |An Taisce=[[Category:{{Owned by code|{{{1}}}}} properties in {{namefix 2|{{{2}}}}}]]{{#ifeq:{{#var:shire}}|Yorkshire|{{#ifeq:{{#varexists:riding}}|1|[[Category:{{Owned by code|{{{1}}}}} properties in {{ridingfix 2|{{#var:riding}}}}]]}}}} | ||
|Office of Public Works | |||
|Heritage Ireland=[[Category:Heritage Ireland sites in {{namefix 2|{{{2}}}}}]] | |||
|State care=[[Category:State care monuments in {{namefix 2|{{{2}}}}}]] | |||
|Cadw | |Cadw | ||
|English Heritage | |English Heritage | ||
|Scottish Natural Heritage | |Historic Scotland | ||
|Historic Environment Scotland | |||
|Scottish Natural Heritage=[[Category:{{Owned by code|{{{1}}}}} sites in {{{2}}}]]{{#ifeq:{{#var:shire}}|Yorkshire|{{#ifeq:{{#varexists:riding}}|1|[[Category:{{Owned by code|{{{1}}}}} sites in {{ridingfix 2|{{#var:riding}}}}]]}}}} | |||
|Gibraltar Heritage Trust | |Gibraltar Heritage Trust | ||
|National Trust of Guernsey | |National Trust of Guernsey | ||
|National Trust for Jersey | |National Trust for Jersey | ||
|Manx National Heritage=[[Category:{{Owned by code|{{{1}}}}} properties]] | |Manx National Heritage=[[Category:{{Owned by code|{{{1}}}}} properties]] | ||
|Shakespeare Birthplace Trust | |||
|The Shakespeare Birthplace Trust=[[Category:Shakespeare Birthplace Trust]] | |||
|Commissioners of Irish Lights | |||
|Commissioners of the Irish Lights | |||
|Irish Lighthouse Board={{#ifeq:{{#var:type}}|lighthouse|[[Category:Lighthouses of the Commissioners of Irish Lights]]}} | |||
|Commissioners of Northern Lights | |||
|Commissioners of the Northern Lights | |||
|Northern Lighthouse Board={{#ifeq:{{#var:type}}|lighthouse|[[Category:Lighthouses of the Northern Lighthouse Board]]}} | |||
|Trinity House={{#ifeq:{{#var:type}}|lighthouse|[[Category:Lighthouses of Trinity House]]}} | |||
}}<noinclude>'''Template:Ownership cat''' is for placing in infoboxes. | }}<noinclude>'''Template:Ownership cat''' is for placing in infoboxes. | ||
This template interrogates the ''<nowiki>{{{</nowiki>ownership<nowiki>}}}</nowiki>'' field and ''<nowiki>{{#var:shire}}</nowiki>'' variable to produce a Category for the article based on ownership and county / territory, if such a category has been created and included in this template. | This template interrogates the ''<nowiki>{{{</nowiki>ownership<nowiki>}}}</nowiki>'' field and ''<nowiki>{{#var:shire}}</nowiki>'' variable to produce a Category for the article based on ownership and county / territory, if such a category has been created and included in this template. In Yorkshire it will add an ownership category based on the riding also. | ||
==Ownership categories== | |||
Currently the only ownership categories which it anticipates are: | |||
*National Trusts (incl the National Trust National Trust for Scotland and those for the Crown dependencies and overseas territories) | |||
*An Taisce | |||
*Landmark Trust and Irish Landmark Trust | |||
*Heritage and state care bodies: | |||
**Heritage Ireland | |||
**Cadw | |||
**English Heritage | |||
**Historic Scotland / Historic Environment Scotland | |||
**Manx National Heritage | |||
**State care | |||
*Scottish Natural Heritage | |||
*Gibraltar Heritage Trust | |||
*Shakespeare Birthplace Trust | |||
*Lighthouse boards: | |||
**Commissioners of Irish Lights | |||
**Northern Lighthouse Board | |||
**Trinity House | |||
[[Category:Ownership templates|Ownership cat]] | [[Category:Ownership templates|Ownership cat]] |
Latest revision as of 08:48, 20 January 2022
Template:Ownership cat is for placing in infoboxes.
This template interrogates the {{{ownership}}} field and {{#var:shire}} variable to produce a Category for the article based on ownership and county / territory, if such a category has been created and included in this template. In Yorkshire it will add an ownership category based on the riding also.
Ownership categories
Currently the only ownership categories which it anticipates are:
- National Trusts (incl the National Trust National Trust for Scotland and those for the Crown dependencies and overseas territories)
- An Taisce
- Landmark Trust and Irish Landmark Trust
- Heritage and state care bodies:
- Heritage Ireland
- Cadw
- English Heritage
- Historic Scotland / Historic Environment Scotland
- Manx National Heritage
- State care
- Scottish Natural Heritage
- Gibraltar Heritage Trust
- Shakespeare Birthplace Trust
- Lighthouse boards:
- Commissioners of Irish Lights
- Northern Lighthouse Board
- Trinity House