Difference between revisions of "Template:Infobox sport centre"

From blackwiki
Jump to navigation Jump to search
imported>Fuhghettaboutit
m (fix name)
imported>Thumperward
(convert to {{infobox}} for code clarity and future maintainability. if there are any issues with the code, please let me know and I'll try to fix them ASAP)
Line 1: Line 1:
{| class="infobox" style="width: 20em; float:right; clear:right;" cellspacing="4"
+
{{ infobox
|- style="vertical-align: top;"
+
| above          = {{{centre_name|<includeonly>{{PAGENAME}}</includeonly>}}}
! colspan="2" style="text-align: center; font-size: larger;" | {{{centre_name}}}
+
| subheader      = {{{nickname|}}}
|- style="vertical-align: top;"
+
| subheaderstyle = font-style: italics
| colspan="2" style="text-align: center;" | ''{{{nickname}}}''
+
| image          = {{{image|}}}
|- style="vertical-align: top;"
+
| caption        = {{{caption|}}}
{{#if:{{{image<includeonly>|</includeonly>}}}|
 
{{!}} colspan="2" style="text-align: center;" {{!}} <noinclude>†&nbsp;</noinclude>{{{image}}}<br /><small>{{{caption|}}}</small>}}
 
|- style="text-align:center;"
 
!style="background: #efefef;" colspan="2"|Facility statistics
 
|- style="vertical-align: top;"
 
! Location
 
| {{{location}}}
 
|-
 
{{#if:{{{coordinates<includeonly>|</includeonly>}}}|
 
! [[Geographic coordinate system|Coordinates]]
 
{{!}} <noinclude>†&nbsp;</noinclude><span class="label">{{{coordinates}}}</span>}}
 
|- style="vertical-align: top;"
 
! Opened
 
| {{{opened}}}
 
|- style="vertical-align: top;"
 
{{#if:{{{closed<includeonly>|</includeonly>}}}|
 
! Closed
 
{{!}} <noinclude>†&nbsp;</noinclude>{{{closed}}}
 
}}
 
|- style="vertical-align: top;"
 
{{#if:{{{renovated<includeonly>|</includeonly>}}}|
 
! Renovated
 
{{!}} <noinclude>†&nbsp;</noinclude>{{{renovated}}}
 
}}
 
|- style="vertical-align: top;"
 
{{#if:{{{expanded<includeonly>|</includeonly>}}}|
 
! Expanded
 
{{!}} <noinclude>†&nbsp;</noinclude>{{{expanded}}}
 
}}
 
|- style="vertical-align: top;"
 
{{#if:{{{demolished<includeonly>|</includeonly>}}}|
 
! Demolished
 
{{!}} <noinclude>†&nbsp;</noinclude>{{{demolished}}}
 
}}
 
|- style="vertical-align: top;"
 
! Owner
 
| {{{owner}}}
 
|- style="vertical-align: top;"
 
{{#if:{{{operator<includeonly>|</includeonly>}}}|
 
! Operator
 
{{!}} <noinclude>†&nbsp;</noinclude>{{{operator}}}
 
}}
 
|- style="vertical-align: top;"
 
{{#if:{{{construction_cost<includeonly>|</includeonly>}}}|
 
! Construction Cost
 
{{!}} <noinclude>†&nbsp;</noinclude>{{{construction_cost}}}
 
}}
 
|- style="vertical-align: top;"
 
! Architect
 
| {{{architect}}}
 
|- style="text-align:center;"
 
!style="background: #efefef;" colspan="2"|Former names
 
|- style="vertical-align: top;"
 
| colspan="2" | {{{former_names}}}
 
|- style="text-align:center;"
 
!style="background: #efefef;" colspan="2"|Tenants
 
|- style="vertical-align: top;"
 
| colspan="2" | {{{tenants}}}
 
|- style="text-align:center;"
 
!style="background: #efefef;" colspan="2"|Seating capacity
 
|- style="vertical-align: top;"
 
| colspan="2" | {{{seating_capacity}}}
 
|}<noinclude>
 
Optional parameters marked "†".
 
  
[[Category:Buildings and structures infobox templates|Sport centre]]
+
| label2        = Location
</noinclude>
+
| data2          = {{{location|}}}
<noinclude>
+
 
<pre>{{Infobox sport centre
+
| label3        = [[Geographic coordinate system|Coordinates]]
|centre_name=
+
| class3        = label
|nickname=
+
| data3          = {{{coordinates|}}}
|image=
+
| label4        = Opened
|caption=
+
| data4          = {{{opened|}}}
|location=
+
| label5        = Closed
|coordinates= {{Coord|0|0|0|N|0|0|0|W|type=landmark}}
+
| data5          = {{{closed|}}}
|opened=
+
| label6        = Renovated
|closed=
+
| data6          = {{{renovated|}}}
|renovated=
+
| label7        = Expanded
|expanded=
+
| data7          = {{{expanded|}}}
|demolished=
+
| label8        = Demolished
|owner=
+
| data8          = {{{demolished|}}}
|operator=
+
| label9        = Owner
|construction_cost=
+
| data9          = {{{owner|}}}
|architect=
+
| label10        = Operator
|former_names=
+
| data10        = {{{operator|}}}
|tenants=
+
| label11        = Construction Cost
|seating_capacity=
+
| data11        = {{{construction_cost|}}}
}}
+
| label12        = Architect
</pre>
+
| data12        = {{{architect|}}}
</noinclude>
+
 
 +
| header13      = {{#if:{{{former_names|}}}|Former names}}
 +
| data14        = {{{former_names|}}}
 +
 
 +
| header15      = {{#if:{{{tenants|}}}|Tenants}}
 +
| data16        = {{{tenants|}}}
 +
 
 +
| header17      = {{#if:{{{seating_capacity|}}}|Seating capacity}}
 +
| data18        = {{{seating_capacity|}}}
 +
}}<noinclude>{{doc}}<!-- please place category and language links on the /doc sub-page, not here --></noinclude>

Revision as of 09:08, 3 December 2009

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[create]