Template:Owned by code: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
mNo edit summary
RB (talk | contribs)
HS retro-branded
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#sub:0|14|{{{1}}}}}
<includeonly>{{#switch:{{lc:{{{1}}}}}
|National Trust
|national trust
|NT
|nt
|NTE=National Trust
|nte={{#switch:{{part-BI|{{#var:shire}}}}
}}{{#switch:{{{ownership}}}
|Republic of Ireland=An Taisce
|CADW=Cadw
|Scotland=National Trust for Scotland
|EH=English Heritage
|National Trust}}
|HS=Historic Scotland
|cadw=Cadw
|SNH=Scottish Natural Heritage
|eh=English Heritage
|MNH=Manx National Heritage
|historic scotland
|GHT=Gibraltar Heritage Trust
|historic environment scotland
|hs=Historic Scotland
|snh=Scottish Natural Heritage
|mnh=Manx National Heritage
|ght=Gibraltar Heritage Trust
|niea=State care
|heritage ireland=Heritage Ireland
|state
|state care={{#switch:{{part-BI|{{#var:shire}}}}
|England=English Heritage
|Republic of Ireland=Heritage Ireland
|Scotland=Historic Scotland
|Wales=Cadw
|State care}}
|{{{1}}}
|{{{1}}}
}}</includeonly><noinclude>'''Template:Owned by code''' is triggered by:
}}</includeonly><noinclude>'''Template:Owned by code''' is triggered by:

Latest revision as of 14:32, 18 February 2019

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.