Difference between revisions of "Template:Infobox castle"

From Wikishire
Jump to: navigation, search
m
(25 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:type2|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|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: {{{latin| }}}| <br>Latin: ''{{{latin}}}'' }}{{#if: {{{greek| }}}| <br>Greek: ''{{{greek}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#vardefine:type2|heritage}}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#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}}
+
{{#var:shire}}{{#ifeq:{{#var:shire}}|Yorkshire|{{#if:{{{riding|}}}|{{#vardefine:riding|{{{riding}}}}}<br /><small>{{ridinglink|{{#var:riding}}}}</small>}} }}
 
|- class="note"
 
|- class="note"
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
Line 21: 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}}}|zoom=13}} }}
+
{{!}} {{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 61: Line 65:
 
{{#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: {{{garrison<includeonly>|</includeonly>}}} |
 
{{#if: {{{garrison<includeonly>|</includeonly>}}} |
Line 74: Line 78:
 
! style="background: #D0F0C0;" {{!}} E-mail:
 
! style="background: #D0F0C0;" {{!}} E-mail:
 
{{!}} {{{email}}} }}
 
{{!}} {{{email}}} }}
|}<includeonly>{{#ifeq:{{lc:{{{type}}}|broch}}|[[Category:Brochs of {{#var:shire}}]]|{{Castlecat|{{#var:shire}}}}}}{{#ifeq:{{lc:{{{garden}}}}}|yes|[[Category:Gardens in {{#var:shire}}]]}}</includeonly><noinclude>{{Infobox castle/doc}}
+
|}<includeonly>{{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
 +
|broch=[[Category:Brochs of {{#var:shire}}]]
 +
|hillfort
 +
|hill fort={{buildcat|Hill forts|{{#var:shire}}}}
 +
|martello tower={{buildcat|Martello towers|{{#var:shire}}}}
 +
|peel tower
 +
|pele tower=[[Category:Peel towers in {{#var:shire}}]]{{riding category|Peel towers}}
 +
|roman fort
 +
|roman milecastle
 +
|roman castrum
 +
|castrum=[[Category:Roman forts in {{#var:shire}}]]{{riding category|Roman forts}}
 +
|saxon shore fort=[[Category:Roman forts in {{#var:shire}}]]{{riding category|Roman forts}} [[Category:Saxon Shore forts]]
 +
|device fort=[[Category:Device forts]]{{Castlecat|{{#var:shire}}}}
 +
|palmerston fort=[[Category:Palmerston forts]]{{Castlecat|{{#var:shire}}}}
 +
|defensive wall
 +
|wall={{#switch:{{#var:shire}}
 +
|Akrotiri and Dhekelia
 +
|Bailiwick of Guernsey
 +
|Bailiwick of Jersey
 +
|Bermuda
 +
|Gibraltar
 +
|St Helena, Ascension and Tristan da Cunha=[[Category:Defensive walls of {{namefix 2|{{#var:shire}}}}]]
 +
|Anguilla
 +
|British Virgin Islands
 +
|Cayman Islands
 +
|Falkland Islands
 +
|Isle of Man
 +
|Montserrat=[[Category:Defensive walls on {{namefix 2|{{#var:shire}}}}]]
 +
|[[Category:Defensive walls in {{namefix 2|{{#var:shire}}}}]]
 +
}}
 +
|{{Castlecat|{{#var:shire}}}}
 +
}}|{{Castlecat|{{#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 line-->{{#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:Castle and fort articles with no infobox picture]]}}</includeonly><noinclude>{{Infobox castle/doc}}
 
[[Category:Infoboxes|Castle]]</noinclude>
 
[[Category:Infoboxes|Castle]]</noinclude>

Revision as of 08:20, 13 August 2020

Infobox castle
[[File:{{{picture}}}|250px]]
{{{picture caption}}}
{{{class}}}
Type: {{{type}}}
Location
Grid reference:
Location: {{{latitude}}} {{{longitude}}}
City: {{{city}}}
Town: {{{town}}}
Village: {{{village}}}
History
Built {{{built}}}
Material: {{{material}}}
Battles: {{{battles}}}
Key events: {{{events}}}
Information
Condition: {{{condition}}}
Owned by: {{{ownership}}}
(in the care of {{{controlled by}}})
Garrison: {{{garrison}}}
Website: {{{website}}}
E-mail: {{{email}}}
Template:Infobox castle/doc