Template:Infobox building: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
mNo edit summary
 
(53 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| 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 class= style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#vardefine:type|castle}}{{#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: {{{greek| }}}| <br>''Greek:'' {{{greek}}} }}{{#if: {{{jerriais| }}}| <br>''Jèrriais:'' {{{jerriais}}} }}{{#if: {{{dgernesiais| }}}| <br>Dgèrnésiais: ''{{{dgernesiais}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#vardefine:type|building}}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}<!--Op codes here
|colspan=2 style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#vardefine:type|building}}{{#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: {{{greek| }}}| <br>''Greek:'' {{{greek}}} }}{{#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: {{{county 2| }}}|{{#vardefine:shire2|{{namefix|{{{county 2}}}}}}}}}{{#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%;" {{!}}
{{#var:shire}}{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{riding|{{{riding}}}}}<br /><small>{{#switch:{{#var:riding}}
{{#var:shire}}{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{#vardefine:riding|{{ridingfix|{{{riding}}}}}}}<br /><small>{{ridinglink|{{#var:riding}}}}</small>}} }}{{#if:{{{county 2|}}}|, {{#var:shire2}}}}
|East Riding of Yorkshire=[[East Riding of Yorkshire|East Riding]]
|North Riding of Yorkshire=[[North Riding of Yorkshire|North Riding]]
|West Riding of Yorkshire=[[West Riding of Yorkshire|West Riding]]
|}}</small>}} }}
|- class="note"
|- class="note"
{{#if: {{{picture<includeonly>|</includeonly>}}} |
{{#if: {{{picture<includeonly>|</includeonly>}}} |
Line 25: Line 21:
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Grid reference:
! style="background: #D0F0C0;" {{!}} Grid reference:
{{!}} {{map|{{{os grid ref}}}}} }}
{{!}} {{#if:{{{os grid ref|}}}|{{map|{{{os grid ref}}}}} }} }}
|-
|-
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Location:
! style="background: #D0F0C0;" {{!}} Location:
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}}} }}
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14|name={{#if: {{{name| }}}|{{{name}}}|{{PAGENAME}}}}}} }}
|-
{{#if: {{{city<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} City:
{{!}} {{ifif|{{{city}}}}} }}
|-
|-
{{#if: {{{town<includeonly>|</includeonly>}}} |
{{#if: {{{town<includeonly>|</includeonly>}}} |
Line 81: Line 81:
{{#if: {{{ownership<includeonly>|</includeonly>}}} |
{{#if: {{{ownership<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Owned by:
! style="background: #D0F0C0;" {{!}} Owned by:
{{!}} {{Ownership insert|{{{ownership}}}|{{#var:shire}}}}{{Ownership cat|{{{ownership}}}|{{#var:shire}}}} }}
{{!}} {{Ownership insert|{{{ownership}}}|{{#var:shire}}}}{{#if:{{{controlled by<includeonly>|</includeonly>}}}|<br/>(in the care of {{{controlled by}}}){{Ownership cat|{{{controlled by}}}|{{#var:shire}}}} }}{{Ownership cat|{{{ownership}}}|{{#var:shire}}}} }}
|-
|-
{{#if: {{{website<includeonly>|</includeonly>}}} |
{{#if: {{{website<includeonly>|</includeonly>}}} |
Line 90: Line 90:
! style="background: #D0F0C0;" {{!}} E-mail:
! style="background: #D0F0C0;" {{!}} E-mail:
{{!}} {{{email}}} }}
{{!}} {{{email}}} }}
|}<includeonly>{{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
|}{{#vardefine:t|{{#if:{{{type|}}}|{{{type}}}|0}}}}<includeonly>{{building types|{{#var:t}}|{{#var:shire}}}}{{#if:{{{county 2|}}}|{{building types|{{#var:t}}|{{#var:shire2}}}}}}<!--Townsite code line-->{{#vardefine:town|{{extract name|{{#if:{{{city|}}}|{{{city}}}|{{#if:{{{town|}}}|{{{town}}}|{{#if:{{{village|}}}|{{{village}}}|0 }} }} }} }} }}{{town site|{{town fix|{{#var:town}}}}|{{#var:type}}}}<!--garden & gardener codes-->{{#if:{{{garden|}}}|{{#vardefine:gtag|{{#ifeq:{{#sub:{{{garden}}}|0|3}}|by |{{#sub:{{{garden}}}|3|{{#len:{{{garden}}}}}-3}}|{{{garden}}} }} }}{{#switch:{{lc:{{{#var:gtag}}}}}
|grand country house
|no
|fortified house
|none=
|country house
|{{Gardener|{{#var:gtag}}|{{#var:shire}}}}
|country mansion
}}}}{{#if:{{{picture|}}}||[[Category:Building articles with no infobox picture]]}}</includeonly><noinclude>[[Category:Infoboxes|Building]]
|estate house
|plantation house=[[Category:Country houses in {{#var:shire}}]]{{riding category|Country houses}}
|folly=Follies in {{#var:shire}}]]{{riding category|Follies}}
|peel tower
|pele tower=Peel towers in {{#var:shire}}]]{{riding category|Peel towers}}
|town hall
|guild hall
|guildhall=Guildhalls in the United Kingdom
|shire hall
|county hall=Shire halls in the United Kingdom
|court
|court house
|courthouse=Court houses in the United Kingdom
|watermill
|water mill=[[Category:Watermills in {{#var:shire}}]]{{riding category|Watermills}}
|windmill=[[Category:Windmills in {{#var:shire}}]]{{riding category|Windmills}}
|[[Category:Buildings and structures in {{#var:shire}}]]{{riding category|Buildings and structures}}
}}|[[Category:Buildings and structures in {{#var:shire}}]]{{riding category|Buildings and structures}}}}</includeonly><noinclude>[[Category:Infoboxes|Building]]

Latest revision as of 16:53, 25 October 2024

Infobox building
[[File:{{{picture}}}|250px]]
{{{picture caption}}}
{{{class}}}
Type: {{{type}}}
Location
Grid reference:
Location: {{{latitude}}} {{{longitude}}}
City: {{{city}}}
Town: {{{town}}}
Village: {{{village}}}
History
Address: {{{address}}}
Built {{{built}}}
For: {{{client}}}
by {{{architect}}}
Material: {{{material}}}
Structure: {{{structural system}}}
{{{type}}}
{{{style}}}
Information
Condition: {{{condition}}}
Owned by: {{{ownership}}}
(in the care of {{{controlled by}}})
Website: {{{website}}}
E-mail: {{{email}}}