Difference between revisions of "Template:Infobox NT"

From Wikishire
Jump to: navigation, search
 
(28 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|-
 
|-
 
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
 
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
{{#if:{{{village|}}}|{{ifif|{{{village}}}}}<br/>}}{{#if:{{{town|}}}|{{ifif|{{{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 18: 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:
{{!}} {{map|{{{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}} }}
+
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14|name={{#if: {{{name| }}}|{{{name}}}|{{PAGENAME}}}}}} }}
 
|-
 
|-
 
{{#if: {{{address<includeonly>|</includeonly>}}} |
 
{{#if: {{{address<includeonly>|</includeonly>}}} |
Line 41: Line 41:
 
! style="background: {{#var:bground}};" {{!}} Website:
 
! style="background: {{#var:bground}};" {{!}} Website:
 
{{!}} {{{website}}} }}
 
{{!}} {{{website}}} }}
|}<includeonly>{{#if:{{{county|}}}|{{CatNT|{{#var:shire}}}}}}{{#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}}}}}
+
|}<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
 
|grand country house
 +
|stately home
 
|fortified house
 
|fortified house
 
|country house
 
|country house
 
|country mansion
 
|country mansion
|estate house
+
|manor house
|plantation house=[[Category:Country houses in {{#var:shire}}]]}}}}</includeonly><noinclude>{{Infobox NT property/doc}}
+
|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]]
 
[[Category:Infoboxes|National Trust]] [[Category:National Trust templates|Infobox]]

Latest revision as of 15:34, 27 August 2023

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