Difference between revisions of "Template:Ownership cat"

From Wikishire
Jump to: navigation, search
m
Line 1: Line 1:
 
{{#switch:{{Owned by code|{{{1}}}}}
 
{{#switch:{{Owned by code|{{{1}}}}}
 
|National Trust={{CatNT|{{{2}}}}}
 
|National Trust={{CatNT|{{{2}}}}}
|Cadw
 
|English Heritage
 
 
|Historic Scotland
 
|Historic Scotland
|Scottish Natural Heritage=[[Category:{{Owned by code|{{{1}}}}} properties in {{{2}}}]]
+
|Landmark Trust
 +
|Irish Landmark Trust=[[Category:{{Owned by code|{{{1}}}}} properties in {{{2}}}]]
 +
|Cadw
 +
|English Heritage=
 +
|Scottish Natural Heritage=[[Category:{{Owned by code|{{{1}}}}} sites in {{{2}}}]]
 
}}<noinclude>'''Template:Ownership cat''' is for placing in infoboxes.
 
}}<noinclude>'''Template:Ownership cat''' is for placing in infoboxes.
  

Revision as of 21:16, 10 March 2014

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