Template:Owned by code: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
Line 14: Line 14:
|ght=Gibraltar Heritage Trust
|ght=Gibraltar Heritage Trust
|niea=State care
|niea=State care
|heritage ireland=Heritage Ireland
|state
|state
|state care={{#switch:{{part-BI|{{#var:shire}}}}
|state care={{#switch:{{part-BI|{{#var:shire}}}}
Line 20: Line 21:
|Scotland=Historic Environment Scotland
|Scotland=Historic Environment Scotland
|Wales=Cadw
|Wales=Cadw
|Republic of Ireland=Heritage Ireland
|State care}}
|State care}}
|{{{1}}}
|{{{1}}}

Revision as of 20:06, 3 May 2018

Template:Owned by code is triggered by:

These latter templates interrogate the {{{ownership}}} field and {{#var:shire}} variable to produce respectively a visible "Ownership" label with or without a link and a Category based on ownership and county / territory.

Template:Owned by code is to interrogate the {{{ownership}}} field and simply regularises some names and abbreviations and reduces any National Trust name just to "National Trust" so as to use the various National Trust templates.