Template:Infobox NT: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Not working yet
 
mNo edit summary
 
(50 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:shire|Rutland}}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{county 1| }}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}{{#vardefine:trusttag|{{#switch:{{#var:shire}}
{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{county 1| }}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}{{#vardefine:part|{{Part-BI|{{#var:shire}}}}}}{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
|Bermuda=BNT
|colspan=2 style="text-align: center; background:#{{NT data|{{#var:part}}|colour}}; color:#{{#ifeq:{{NT data|{{#var:part}}|font}}| |000000|{{NT data|{{#var:part}}|font}}}}; font-size: 100%"|<big class="fn org">{{#if: {{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{jerriais| }}}| <br>''Jèrriais:'' {{{jerriais}}} }}{{#if: {{{dgernesiais| }}}| <br>Dgèrnésiais: ''{{{dgernesiais}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#vardefine:type|heritage}}<!--Op codes here
|Bailiwick of Guernsey=NTG
|Bailiwick of Jersey=NTJ
|Isle of Man=MNH
|St Helena, Ascension and Tristan da Cunha=NTSH
|{{#switch:{{part-BI|{{#var:shire}}
|England
|Northern Ireland
|Wales=NTE
|Republic of Ireland=AT
|Scotland=NTS
|GNT}}}}{{#switch:{{#var:trusttag}}
|BNT={{#vardefine:bground|085231}}{{#vardefine:namehead|[[Bermuda National Trust]]}}
|NTE={{#vardefine:bground|00b43c}}{{#vardefine:namehead|[[National Trust for Places of Historic Interest or Natural Beauty|National Trust]]}}{{#vardefine:logo|NTE logo.svg}}
|NTS={{#vardefine:bground|001f38}}{{#vardefine:namehead|[[National Trust for Scotland]]}} {{#vardefine:logo|National Trust for Scotland.svg}}
|NTG={{#vardefine:bground|1e483e}}{{#vardefine:namehead|[[National Trust of Guernsey]]}}
|NTJ={{#vardefine:bground|000fff}}{{#vardefine:namehead|[[National Trust for Jersey]]}}
|MNH={{#vardefine:bground|ff0000}}{{#vardefine:namehead|[[Manx National Heritage]]}}
|AT={{#vardefine:bground|000073}}{{#vardefine:namehead|[[An Taisce]]}}
{{#vardefine:bground|D0F0C0}}{{#vardefine:namehead|National Trust}}}}{{#vardefine:type|heritage}}<!--Box begins here
-->{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
|colspan=2 class= style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#if: {{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{jerriais| }}}| <br>''Jèrriais:'' {{{jerriais}}} }}{{#if: {{{dgernesiais| }}}| <br>Dgèrnésiais: ''{{{dgernesiais}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{county 1| }}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}<!--Op codes here
-->
-->
|-
|-
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
{{#if:{{{village|}}}|[[{{{village}}}]],&nbsp;}} {{#if:{{{town|}}}|[[{{{town}}}]],&nbsp;}}<br/>[[{{#var:shire}}]]
{{#if:{{{village|}}}|{{ifif|{{{village}}}}}<br/>}}{{#if:{{{town|}}}|{{ifif|{{{town}}}}}<br/>}}{{#if:{{{county 1|}}}|{{shead|{{namefix|{{{county 1}}}}}}}{{#if:{{{county 2|}}}|, [[{{namefix|{{{county 2}}}}}]]}}{{#if:{{{county 3|}}}|, [[{{namefix|{{{county 3}}}}}]]}}{{#if:{{{county 4|}}}|, [[{{namefix|{{{county 4}}}}}]]}}|{{shead|{{#var:shire}}}}}}{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{#vardefine:riding|{{ridingfix|{{{riding}}}}}}}<br /><small>{{ridinglink|{{#var:riding}}}}</small>}} }}
|-
|-
! colspan=2 style="background: white; text-align: left; font-size: 170%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
[[File:{{#var:logo}}|left|50px]] {{#var:namehead}}
{{#ifeq:{{NT data|{{#var:part}}|logo}}| | |[[File:{{NT data|{{#var:part}}|logo}}|left|25px]]}}''{{NT data|{{#var:part}}|name}}''
|- class="note"
|- class="note"
{{#if: {{{picture<includeonly>|</includeonly>}}} |
{{#if: {{{picture<includeonly>|</includeonly>}}} |
Line 39: Line 18:
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
! style="background: {{#var:bground}};" {{!}} Grid reference:
! style="background: {{#var:bground}};" {{!}} Grid reference:
{{!}} {{{os grid ref}}} }}
{{!}} {{#if:{{{os grid ref|}}}|{{map|{{{os grid ref}}}}} }} }}
|-
|-
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
! style="background: {{#var:bground}};" {{!}} Location:
! style="background: {{#var:bground}};" {{!}} Location:
{{!}} {{lat & long|{{{latitude}}}|{{{longitude}}}}} }}
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14|name={{#if: {{{name| }}}|{{{name}}}|{{PAGENAME}}}}}} }}
|-
|-
{{#if: {{{address<includeonly>|</includeonly>}}} |
{{#if: {{{address<includeonly>|</includeonly>}}} |
Line 62: Line 41:
! style="background: {{#var:bground}};" {{!}} Website:
! style="background: {{#var:bground}};" {{!}} Website:
{{!}} {{{website}}} }}
{{!}} {{{website}}} }}
|}<includeonly>[[Category:National Trust properties in {{#var:shire}}]]<noinclude>{{Infobox island/doc}}</noinclude>[[Category:Infoboxes|National Trust]]
|}<includeonly>{{#if:{{{county|}}}|{{CatNT|{{#var:shire}}}}}}{{#ifeq:{{#varexists:riding}}|1|[[Category:National Trust properties in {{ridingfix 2|{{#var:riding}}}}]]}}{{#if:{{{territory|}}}|{{CatNT|{{#var:shire}}}}}}{{#if:{{{bailiwick|}}}|{{CatNT|{{#var:shire}}}}}}{{#if:{{{county 1|}}}|{{CatNT|{{namefix|{{{county 1}}}}}}}}}{{#if:{{{county 2|}}}|{{CatNT|{{namefix|{{{county 2}}}}}}}}}{{#if:{{{county 3|}}}|{{CatNT|{{namefix|{{{county 3}}}}}}}}}{{#if:{{{county 4|}}}|{{CatNT|{{namefix|{{{county 4}}}}}}}}}{{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
|grand country house
|stately home
|fortified house
|country house
|country mansion
|manor house
|estate house=[[Category:Country houses {{namefix 3|{{#var:shire}}}}]]{{riding category|Country houses}}
|plantation house={{#switch:{{State-BI|{{#var:shire}}}}
|United Kingdom
|Republic of Ireland=[[Category:Country houses in {{#var:shire}}]]{{riding category|Country houses}}
|[[Category:Plantation houses {{namefix 3|{{#var:shire}}}}]]}}
|house
|cottage
|town house=[[Category:Buildings and structures {{namefix 3|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
|folly tower
|folly={{buildcat|Follies|{{#var:shire}}}}
|battery
|artillery battery
|gun-battery
|gun battery=[[Category:Gun batteries {{namefix 3|{{#var:shire}}}}]]
|nature reserve=[[Category:Nature reserves {{namefix 3|{{#var:shire}}}}]]{{riding category|Nature reserves}}
|wood
|woodland
|forest
|coppice=[[Category:Forests and woodlands of {{namefix 2|{{#var:shire}}}}]]{{riding category|Forests and woodlands|of}}
|watermill
|water mill=[[Category:Watermills {{namefix 3|{{#var:shire}}}}]]{{riding category|Watermills}}
|windmill=[[Category:Windmills {{namefix 3|{{#var:shire}}}}]]{{riding category|Windmills}}
|garden=[[Category:Gardens {{namefix 3|{{#var:shire}}}}]]{{riding category|Garden}}}}}}{{#if:{{{garden|}}}|{{#vardefine:gtag|{{#ifeq:{{#sub:{{{garden}}}|0|3}}|by |{{#sub:{{{garden}}}|3|{{#len:{{{garden}}}}}-3}}|{{{garden}}} }} }}{{#switch:{{lc:{{{#var:gtag}}}}}
|no
|none=
|{{Gardener|{{#var:gtag}}|{{#var:shire}}}}
}}}}{{#if:{{{picture|}}}||[[Category:National Trust articles with no infobox picture]]}}</includeonly><noinclude>{{Infobox NT property/doc}}
[[Category:Infoboxes|National Trust]] [[Category:National Trust templates|Infobox]]

Latest revision as of 16:55, 25 October 2024

Infobox NT

[[]]

National Trust

[[File:{{{picture}}}|250px]]
{{{picture caption}}}
{{{class}}}
Grid reference:
Location: {{{latitude}}} {{{longitude}}}
Address: {{{address}}}
Built {{{built}}}
Information
Owned by: {{{ownership}}}
Website: {{{website}}}

Template:Infobox NT property/doc