Difference between revisions of "Template:Owned by code"

From Wikishire
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}
+
<includeonly>{{#switch:{{lc:{{{1}}}}}
|National Trust
+
|national trust
|NT
+
|nt
|NTE={{#switch:{{part-BI|{{#var:shire}}}}
+
|nte={{#switch:{{part-BI|{{#var:shire}}}}
 
|Republic of Ireland=An Taisce
 
|Republic of Ireland=An Taisce
 
|Scotland=National Trust for Scotland
 
|Scotland=National Trust for Scotland
 
|National Trust}}
 
|National Trust}}
|CADW=Cadw
+
|cadw=Cadw
|EH=English Heritage
+
|eh=English Heritage
|Historic Scotland
+
|historic scotland
|HS=Historic Environment Scotland
+
|hs=Historic Environment Scotland
|SNH=Scottish Natural Heritage
+
|snh=Scottish Natural Heritage
|MNH=Manx National Heritage
+
|mnh=Manx National Heritage
|GHT=Gibraltar Heritage Trust
+
|ght=Gibraltar Heritage Trust
 +
|niea=State care
 +
|state
 +
|state care={{#switch:{{part-BI|{{#var:shire}}}}
 +
|England=English Heritage
 +
|Republic of Ireland=Historic Ireland
 +
|Scotland=Historic Environment 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:

Revision as of 20:27, 25 October 2017

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.