Template:Ownership cat: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{Owned by code|{{{1}}}}} | ħ{{#switch:{{Owned by code|{{{1}}}}} | ||
|National Trust | |National Trust | ||
|National Trust for Scotland={{CatNT|{{{2}}}}} | |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 the {{#var:riding}}]]}} }} | |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 the {{#var:riding}} of Yorkshire]]}} }} | ||
|Heritage Ireland=[[Category:Heritage Ireland sites in {{namefix 2|{{{2}}}}}]] | |Heritage Ireland=[[Category:Heritage Ireland sites in {{namefix 2|{{{2}}}}}]] | ||
|State care=[[Category:State care monuments in {{namefix 2|{{{2}}}}}]] | |State care=[[Category:State care monuments in {{namefix 2|{{{2}}}}}]] | ||
Line 11: | Line 11: | ||
|Historic Scotland | |Historic Scotland | ||
|Historic Environment 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 the {{#var:riding}}]]}} }} | |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 the {{#var:riding}} of Yorkshire]]}} }} | ||
|Gibraltar Heritage Trust | |Gibraltar Heritage Trust | ||
|National Trust of Guernsey | |National Trust of Guernsey |
Revision as of 21:12, 3 August 2019
ħ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. (Currently the only ownership categories which it anticipates are various national trusts and some statutory heritage bodies.)