Template:Infobox LT: Difference between revisions

From Wikishire
Jump to navigation Jump to search
Created page with '{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{county 1| }}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefin…'
 
mNo edit summary
 
(10 intermediate revisions by 2 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}}}}}}{| 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;"
{{#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;"
|colspan=2 class= style="text-align: center; background:#{{LT data|{{#var:part}}|colour}}; color:#{{#ifeq:{{LT data|{{#var:part}}|font}}| |000000|{{LT 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 style="text-align: center; background:#{{LT data|{{#var:part}}|colour}}; color:#{{#ifeq:{{LT data|{{#var:part}}|font}}| |000000|{{LT 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 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/>}}[[{{#var:shire}}]]{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{riding|{{{riding}}}}}<br /><small>{{ridinglink|{{{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:
{{!}} {{lat & long|{{{latitude}}}|{{{longitude}}}}} }}
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}}} }}
|-
|-
{{#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|}}}|{{CatLT|{{#var:shire}}}}}}{{#if:{{{territory|}}}|{{CatLT|{{#var:shire}}}}}}{{#if:{{{bailiwick|}}}|{{CatLT|{{#var:shire}}}}}}{{#if:{{{county 1|}}}|{{CatLT|{{namefix|{{{county 1}}}}}}}}}{{#if:{{{county 2|}}}|{{CatLT|{{namefix|{{{county 2}}}}}}}}}{{#if:{{{county 3|}}}|{{CatLT|{{namefix|{{{county 3}}}}}}}}}{{#if:{{{county 4|}}}|{{CatLT|{{namefix|{{{county 4}}}}}}}}}</includeonly><noinclude>{{Infobox LT property/doc}}
|}<includeonly>{{#if:{{{county|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{#var:shire}}}}]]}}{{#if:{{{territory|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{#var:shire}}}}]]}}{{#if:{{{bailiwick|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{#var:shire}}}}]]}}{{#if:{{{county 1|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{{county 1}}}}}]]}}{{#if:{{{county 2|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{{county 2}}}}}]]}}{{#if:{{{county 3|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{{county 3}}}}}]]}}{{#if:{{{county 4|}}}|[[Category:Landmark Trust properties in {{namefix 2|{{{county 4}}}}}]]}}{{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
|grand country house
|stately home
|fortified house
|country house
|country mansion
|manor house
|estate house
|plantation house=[[Category:Country houses in {{namefix 2|{{#var:shire}}}}]]{{riding category|Country houses}}
|house
|cottage
|town house=[[Category:Buildings and structures in {{namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
|folly tower
|folly={{buildcat|Follies|{{#var:shire}}}}
|wood
|woodland
|forest
|coppice=[[Category:Forests and woodlands of {{#var:shire}}]]{{riding category|Forests and woodlands|of}}
|watermill
|water mill=[[Category:Watermills in {{namefix 2|{{#var:shire}}}}]]{{riding category|Watermills}}
|windmill=[[Category:Windmills in {{namefix 2|{{#var:shire}}}}]]{{riding category|Windmills}}
|garden=[[Category:Gardens in {{namefix 2|{{#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:Building articles with no infobox picture]]}}</includeonly><noinclude>{{Infobox LT property/doc}}
[[Category:Infoboxes|Landmark Trust]] [[Category:Landmark Trust templates|Infobox]]
[[Category:Infoboxes|Landmark Trust]] [[Category:Landmark Trust templates|Infobox]]

Latest revision as of 17:05, 25 October 2024

Infobox LT

[[]]

Landmark Trust

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

Template:Infobox LT property/doc