Template:Infobox house: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
(18 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: {{{jerriais| }}}| <br>''Jèrriais:'' {{{jerriais}}} }}{{#if: {{{dgernesiais| }}}| <br>Dgèrnésiais: ''{{{dgernesiais}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#vardefine:type|heritage}}{{#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: {{{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}}}}}}}}}{{#if: {{{county 1| }}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}}}
-->
|-
|-
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}{{#if:{{{county 1|}}}|'''[[{{namefix|{{{county 1}}}}}]]'''{{#if:{{{county 2|}}}|, '''[[{{namefix|{{{county 2}}}}}]]'''}}{{#if:{{{county 3|}}}|, '''[[{{namefix|{{{county 3}}}}}]]'''}}{{#if:{{{county 4|}}}|, '''[[{{namefix|{{{county 4}}}}}]]'''}}|'''[[{{#var:shire}}]]'''}}{{#ifeq:{{{county}}}|Yorkshire|{{#if:{{{riding|}}}|{{#vardefine:riding|{{ridingfix|{{{riding}}}}}}}<br/ ><small>{{ridinglink|{{{riding}}}}}</small>}}}}
{{#var:shire}}{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{riding|{{{riding}}}}}<br /><small>{{#switch:{{#var:riding}}
|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 16: Line 10:
! style="background: #D0F0C0;" {{!}}
! style="background: #D0F0C0;" {{!}}
{{!}} {{{class}}} }}
{{!}} {{{class}}} }}
|-
{{#if: {{{type<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Type:
{{!}} {{{type}}} }}
|-
|-
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Location'''
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Location'''
Line 25: Line 15:
{{#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}}}|zoom=14}} }}
{{!}} {{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 98: Line 92:
|country mansion
|country mansion
|estate house
|estate house
|plantation house=[[Category:Country houses in {{namefix 2|{{#var:shire}}}}]]{{riding category|Country houses}}
|plantation house={{Buildcat|Country houses|{{#var:shire}}}}{{riding category|Country houses}}
|museum=[[Category:Museums in {{namefix 2|{{#var:shire}}}}]]{{riding category|Museums}}
|museum={{buildcat|Museums|{{#var:shire}}}}{{riding category|Museums}}
|bastle house=[[Category:Bastle houses in {{#var:shire}}]]
|bastle house=[[Category:Bastle houses in {{#var:shire}}]]{{riding category|Bastle houses}}
|royal palace=[[Category:Royal palaces]][[Category:Buildings and structures in {{namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
|royal palace=[[Category:Royal palaces]]{{Buildcat|Buildings and structures|{{#var:shire}}}}{{riding category|Buildings and structures}}
|roman villa=[[Category:Roman villas in {{#var:shire}}]]{{riding category|Roman villas}}
|roman villa=[[Category:Roman villas in {{#var:shire}}]]{{riding category|Roman villas}}{{riding category|Roman villas}}
|[[Category:Buildings and structures in {{namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}
|{{buildcat|Buildings and structures|{{#var:shire}}}}
}}|[[Category:Buildings and structures in {{namefix 2|{{#var:shire}}}}]]{{riding category|Buildings and structures}}}}{{#ifeq:{{lc:{{{garden}}}}}|yes|[[Category:Gardens in {{namefix 2|{{#var:shire}}}}]]{{riding category|Gardens}}}}</includeonly><noinclude>[[Category:Infoboxes|House]]
}}|{{Buildcat|Buildings and structures|{{#var:shire}}}}{{riding category|Buildings and structures}}}}<!--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 code-->{{#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}}}}
}}}}<!--Picture test-->{{#if:{{{picture|}}}||[[Category:Building articles with no infobox picture]]}}</includeonly><noinclude>[[Category:Infoboxes|House]]

Revision as of 08:29, 13 August 2020

Infobox house
[[]]
[[File:{{{picture}}}|250px]]
{{{picture caption}}}
{{{class}}}
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}}}