Difference between revisions of "Template:Infobox building"

From Wikishire
Jump to: navigation, search
 
(11 intermediate revisions by the same user 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|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: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}<!--Op codes here
+
|colspan=2 class= 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|}}}|{{#vardefine:riding|{{ridingfix|{{{riding}}}}}}}<br /><small>{{ridinglink|{{#var:riding}}}}</small>}} }}
+
{{#var:shire}}{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{#vardefine:riding|{{ridingfix|{{{riding}}}}}}}<br /><small>{{ridinglink|{{#var:riding}}}}</small>}} }}{{#if:{{{county 2|}}}|, {{#var:shire2}}}}
 
|- class="note"
 
|- class="note"
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
 
{{#if: {{{picture<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
+
|fortified house
+
|country house
+
|country mansion
+
|estate house
+
|plantation house={{buildcat|Country houses|{{#var:shire}}}}
+
|art gallery={{buildcat|Art galleries|{{#var:shire}}}}
+
|astronomical observatory=[[Category:Astronomical observatories in {{State2|{{#var:shire}}}}]][[Category:Buildings and structures in {{Namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
+
|folly tower
+
|folly={{buildcat|Follies|{{#var:shire}}}}
+
|clock tower
+
|clocktower={{buildcat|Clock towers|{{#var:shire}}}}
+
|peel tower
+
|pele tower={{Buildcat|Peel towers|{{#var:shire}}}}
+
|city hall
+
|tolbooth
+
|townhall
+
|town hall
+
|guild hall
+
|guildhall=[[Category:Town halls in {{#var:shire}}]][[Category:Town halls in {{State2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
+
|shire hall
+
|county hall=[[Category:Shire halls in {{State2|{{#var:shire}}}}]][[Category:Buildings and structures in {{Namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
+
|former townhall
+
|former town hall=[[Category:Former town halls in {{#var:shire}}]]{{riding category|Buildings and structures}}
+
|concert hall={{buildcat|Concert halls|{{#var:shire}}}}
+
|court
+
|court house
+
|courthouse=[[Category:Court houses in {{State2|{{#var:shire}}}}]][[Category:Buildings and structures in {{Namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
+
|livery hall={{#switch:{{{city}}}
+
|London
+
|City of London=[[Category:Livery halls of the City of London]]
+
}}
+
|university museum={{buildcat|Museums|{{#var:shire}}}}[[Category:University museums]]
+
|industrial museum
+
|industry museum
+
|museum={{buildcat|Museums|{{#var:shire}}}}
+
|bastle house=[[Category:Bastle houses in {{#var:shire}}]]
+
|royal palace=[[Category:Royal palaces]]{{buildcat|Buildings and structures|{{#var:shire}}}}
+
|playhouse
+
|school={{buildcat|Schools|{{#var:shire}}}}
+
|theatre={{buildcat|Theatres|{{#var:shire}}}}
+
|watermill
+
|water mill={{buildcat|Watermills|{{#var:shire}}}}
+
|windmill={{buildcat|Windmills|{{#var:shire}}}}
+
|roman villa={{buildcat|Roman villas|{{#var:shire}}}}
+
|{{buildcat|Buildings and structures|{{#var:shire}}}}
+
}}|{{buildcat|Buildings and structures|{{#var:shire}}}}}}<!--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}}}}}
+
 
|no
 
|no
 
|none=
 
|none=
 
|{{Gardener|{{#var:gtag}}|{{#var:shire}}}}
 
|{{Gardener|{{#var:gtag}}|{{#var:shire}}}}
 
}}}}{{#if:{{{picture|}}}||[[Category:Building articles with no infobox picture]]}}</includeonly><noinclude>[[Category:Infoboxes|Building]]
 
}}}}{{#if:{{{picture|}}}||[[Category:Building articles with no infobox picture]]}}</includeonly><noinclude>[[Category:Infoboxes|Building]]

Latest revision as of 11:12, 8 April 2023

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}}}