Template:Infobox NT: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(43 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#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}}}}}} | {{#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;" | ||
{| 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 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 | ||
|colspan=2 | |||
--> | --> | ||
|- | |- | ||
! 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}}}}}{{#if:{{{town|}}}|{{{town}}}}}<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: center; font-size: 100%;" {{!}} | ! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}} | ||
Line 19: | 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: | ||
{{!}} {{ | {{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14|name={{#if: {{{name| }}}|{{{name}}}|{{PAGENAME}}}}}} }} | ||
|- | |- | ||
{{#if: {{{address<includeonly>|</includeonly>}}} | | {{#if: {{{address<includeonly>|</includeonly>}}} | | ||
Line 42: | Line 41: | ||
! style="background: {{#var:bground}};" {{!}} Website: | ! style="background: {{#var:bground}};" {{!}} Website: | ||
{{!}} {{{website}}} }} | {{!}} {{{website}}} }} | ||
|}<includeonly>{{#if:{{{county|}}}|{{CatNT|{{ | |}<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}}} |