Difference between revisions of "Template:Ownership cat"

From Wikishire
Jump to: navigation, search
(Additional trusts)
Line 4: Line 4:
 
|Landmark Trust
 
|Landmark Trust
 
|Irish Landmark Trust
 
|Irish Landmark Trust
|An Taisce=[[Category:{{Owned by code|{{{1}}}}} properties in {{namefix 2|{{{2}}}}}]]
+
|An Taisce=[[Category:{{Owned by code|{{{1}}}}} properties in {{namefix 2|{{{2}}}}}]]{{#ifeq:{{#var:shire}}|Yorkshire|{{#ifexists:riding|[[Category:{{Owned by code|{{{1}}}}} properties in the {{#var:riding}}]]}} }}
 
|Cadw
 
|Cadw
 
|English Heritage
 
|English Heritage
 
|Scottish Natural Heritage
 
|Scottish Natural Heritage
|NIEA=[[Category:{{Owned by code|{{{1}}}}} sites in {{{2}}}]]
+
|NIEA=[[Category:{{Owned by code|{{{1}}}}} sites in {{{2}}}]]{{#ifeq:{{#var:shire}}|Yorkshire|{{#ifexists:riding|[[Category:{{Owned by code|{{{1}}}}} sites in the {{#var:riding}}]]}} }}
 
|Gibraltar Heritage Trust
 
|Gibraltar Heritage Trust
 
|National Trust of Guernsey
 
|National Trust of Guernsey

Revision as of 13:19, 3 December 2015

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.)