Difference between revisions of "Template:Infobox sports ground"

From Wikishire
Jump to: navigation, search
 
(9 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|town}}{{#if: {{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{greek| }}}| <br>{{lang|el|{{{greek}}} }} }}{{#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 class= style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#vardefine:type|sports ground}}{{#if: {{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{greek| }}}| <br>{{lang|el|{{{greek}}} }} }}{{#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%;" {{!}}{{#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|{{#vardefine:riding|{{#if:{{{riding<includeonly>|</includeonly>}}}|{{#switch:{{namefix|{{{riding}}}}}
+
! 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/>{{ridinglink|{{{riding}}}}} }}}}
|East Riding of Yorkshire
+
|East Riding
+
|East=East Riding
+
|North Riding of Yorkshire
+
|North Riding
+
|North=North Riding
+
|West Riding of Yorkshire
+
|West Riding
+
|West=West Riding
+
|York}}}}|York}}{{#ifeq:{{#var:riding}}|York||<br>{{#var:riding}} }}}}
+
 
|- class="note"
 
|- class="note"
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
Line 19: Line 9:
 
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Location'''
 
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Location'''
 
|-
 
|-
{{#if:  {{{island 2<includeonly>|</includeonly>}}} |
+
{{#if:  {{{island<includeonly>|</includeonly>}}} |
!  style="background:  #D0F0C0;" {{!}} Between:
+
{{!}} {{IsleID|{{{island 1}}}|{{namefix|{{#var:shire}}}} }} and {{IsleID|{{{island 2}}}|{{namefix|{{#var:shire}}}} }} }}{{#if:  {{{island<includeonly>|</includeonly>}}} |
+
 
!  style="background:  #D0F0C0;" {{!}} Island:
 
!  style="background:  #D0F0C0;" {{!}} Island:
 
{{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }}
 
{{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }}
Line 39: Line 27:
 
{{#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>}}} |
Line 67: Line 55:
 
{{#if: {{{club 1<includeonly>|</includeonly>}}} |
 
{{#if: {{{club 1<includeonly>|</includeonly>}}} |
 
! style="background: #D0F0C0;" {{!}} Home to:
 
! style="background: #D0F0C0;" {{!}} Home to:
{{!}} {{{club 1}}}{{#if:{{{club 2}}}|<br />{{{club 2}}}{{#if:{{{club 3|}}}|<br />{{{club 3}}}{{#if:{{{club 4|}}}|<br />{{{club 4}}} }} }} }} }} }}
+
{{!}} {{{club 1}}}{{#if:{{{club 2}}}|<br />{{{club 2}}}{{#if:{{{club 3|}}}|<br />{{{club 3}}}{{#if:{{{club 4|}}}|<br />{{{club 4}}} }} }} }} }}
 
|-
 
|-
 
{{#if: {{{seating capacity<includeonly>|</includeonly>}}} |
 
{{#if: {{{seating capacity<includeonly>|</includeonly>}}} |
Line 84: Line 72:
 
! style="background: #D0F0C0;" {{!}} Website:
 
! style="background: #D0F0C0;" {{!}} Website:
 
{{!}} {{{website}}} }}
 
{{!}} {{{website}}} }}
|}<includeonly><!--Until the complicated one works-->{{sportcat|{{{sport}}}|{{#var:shire}}}}<!-- NOT WORKING {{#if:{{{county|}}}|{{sportcat 2|{{{county}}}}}|{{#if:{{{county 1|}}}|{{sportcat 2|{{{county 1}}} }}{{#if:{{{county 2|}}}|{{sportcat 2|{{{county 2}}} }}{{#if:{{{county 3|}}}|{{sportcat 2|{{{county 3}}} }}{{#if:{{{county 4|}}}|{{sportcat 2|{{{county 4}}} }} }} }} }} }} }}-->{{#if:{{{picture|}}}||[[Category:Sports ground articles with no infobox picture]]}}</includeonly><noinclude>[[Category:Infoboxes|Sports ground]]
+
|}<includeonly><!--Until the complicated one works{{sportcat|{{{sport}}}|{{#var:shire}}}}-->{{#vardefine:s1|{{#if:{{{sport|}}}|{{{sport}}}|{{#if:{{{sport 1|}}}|{{{sport 1}}}|0}} }} }}{{#vardefine:s2|{{#if:{{{sport 2|}}}|{{{sport 2}}}|0}} }}{{#vardefine:s3|{{#if:{{{sport 3|}}}|{{{sport 3}}}|0}} }}{{#vardefine:s4|{{#if:{{{sport 4|}}}|{{{sport 4}}}|0}} }}<!-- Try this now-->{{sportcat 2|{{#var:shire}}}}{{#if:{{{county 2|}}}|{{sportcat 2|{{{county 2}}} }}{{#if:{{{county 3|}}}|{{sportcat 2|{{{county 3}}} }}{{#if:{{{county 4|}}}|{{sportcat 2|{{{county 4}}} }} }} }} }}<!--End test-->{{#if:{{{picture|}}}||[[Category:Sports ground articles with no infobox picture]]}}</includeonly><noinclude>[[Category:Infoboxes|Sports ground]]

Latest revision as of 08:34, 13 August 2020

Infobox sports ground
[[]]
[[File:{{{picture}}}|240px]]
{{{picture caption}}}
Location
Island: [[{{{island}}}]]
City: {{{city}}}
Town: {{{town}}}
Village: {{{village}}}
Grid reference:
Location: {{{latitude}}} {{{longitude}}}
History
Built : {{{built}}}
Established: {{{establishment}}}
Information
Sport: {{{sport}}}
Home to: {{{club}}}
Home to: {{{club 1}}}
{{{club 2}}}
Seating capacity: {{{seating capacity}}}
Area: {{{area}}}
Owned by: {{{ownership}}}
Website: {{{website}}}