Template:Ownership cat: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
mNo edit summary
Line 9: Line 9:
|Cadw
|Cadw
|English Heritage
|English Heritage
|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}}]]}} }}

Revision as of 14:31, 18 February 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.)