Difference between revisions of "Template:Infobox GrandSlamTournamentsDisciplines"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(start bringing this into line with standard infobox stying)
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: 22em; font-size: 88%; line-height: 1.5em"
+
{{ infobox
|-
+
| title  = {{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
! style="text-align: center;" colspan="3" |<big>{{{Name}}}</big>
+
| image   = {{#if:{{{Logo|}}}|[[File:{{{Logo}}}|{{#if:{{{Logo size|}}}|{{{Logo size}}}|frameless}}]]
|-
 
{{#if:{{{Logo|}}}
 
  |<tr style="text-align: center;"><td colspan="3">[[File:{{{Logo}}}|{{{Logo size}}}]]</tr>
 
}}
 
|-
 
! style="background:{{{Bar Color|#ccccff}}};" colspan="3" | [{{{Web site}}} Official web]
 
|-
 
{{#if:{{{City|}}}{{{Country|}}}
 
   |<tr><td>'''Location'''</td><td colspan="2">{{{City}}}<br>{{{Country}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Venue|}}}
 
  |<tr><td>'''Venue'''</td><td colspan="2">{{{Venue}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Governing Body|}}}
 
  |<tr><td>'''Governing Body'''</td><td colspan="2">{{{Governing Body}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Created|}}}
 
  |<tr><td>'''Created'''</td><td colspan="2">{{{Created}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Surface|}}}
 
  |<tr><td>'''Surface'''</td><td colspan="2">{{{Surface}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Prize Money|}}}
 
  |<tr><td>'''Prize Money'''</td><td colspan="2">{{{Prize Money}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Trophy|}}}
 
  |<tr><td>'''Trophy'''</td><td colspan="2">{{{Trophy}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Most Amateur Era Titles|}}}
 
  |<tr><td>'''Most Amateur</br>Era Titles'''</td><td colspan="2">{{{Most Amateur Era Titles}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Most Open Era Titles|}}}
 
  |<tr><td>'''Most Open</br>Era Titles'''</td><td colspan="2">{{{Most Open Era Titles}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Most Consecutive Titles Amateur Era|}}}
 
  |<tr><td>'''Most Consecutive</br>Titles Amateur Era'''</td><td colspan="2">{{{Most Consecutive Titles Amateur Era}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Most Consecutive Titles Open Era|}}}
 
  |<tr><td>'''Most Consecutive</br>Titles Open Era'''</td><td colspan="2">{{{Most Consecutive Titles Open Era}}}</td></tr>
 
}}<!--
 
-->{{#if:{{{Current Champion|}}}
 
  |<tr><td>'''Current Champion'''</td><td colspan="2">{{{Current Champion}}}</td></tr>
 
}}
 
|}<noinclude>
 
  
==Syntax==
+
| label1  = Location
<pre>
+
| data1  = {{{City|}}}{{#if:{{{Country|}}}|{{#if:{{{City|}}}|<br />}}{{{Country}}}}}
{{GrandSlamTournamentsDisciplines
+
| label2  = Venue
| Name        =  
+
| data2  = {{{Venue|}}}
| Logo        =  
+
| label3  = Governing body
| Logo size  =  
+
| data3   = {{{Governing Body|}}}
| Bar Color   =  
+
| label4  = Created
| City        =  
+
| data4  = {{{Created|}}}
| Country    =  
+
| label5  = Surface
| Venue      =  
+
| data5  = {{{Surface|}}}
| Governing Body    =
+
| label6  = Prize money
| Created    =
+
| data6  = {{{Prize Money|}}}
| Surface    =  
+
| label7  = Trophy
| Prize Money   =
+
| data7   = {{{Trophy|}}}
| Trophy    =
+
| label8  = Most amateur era titles
| Most Amateur Era Titles   =  
+
| data8  = {{{Most Amateur Era Titles|}}}
| Most Open Era Titles =  
+
| label9  = Most Open era titles
| Most Consecutive Titles Amateur Era =  
+
| data9  = {{{Most Open era Titles|}}}
| Most Consecutive Titles Open Era =  
+
| label10 = Most consecutive titles (amateur era)
| Current Champion   =
+
| data10  = {{{Most Consecutive Titles Amateur Era|}}}
| Web site   =
+
| label11 = Most Consecutive titles (Open era)
}}
+
| data11  = {{{Most Consecutive Titles Open Era|}}}
</pre>
+
| label12 = Current champion
 +
| data12  = {{{Current Champion|}}}
 +
| label13 = Website
 +
| data13  = {{{Web site|}}}
  
==Colors==
+
}}<noinclude>{{doc}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
*AUS: #F9D251
 
*FRA: #FF915F
 
*WIM: #C0D077
 
*USA: #B2C8FF
 
 
 
[[Category:Tennis tournaments infobox templates|{{PAGENAME}}]]
 

Revision as of 11:03, 2 July 2010

{{ infobox | title =

| image = label1 = Location

Template documentation[view] [edit] [history] [purge]

Usage

{{Infobox GrandSlamTournamentsDisciplines  
| Name             =    
| Logo             =   
| Logo size        =    
| Bar Color        = <!-- AUS / FRA / WIM / USA / DEF -->
| City             =    
| Country          =   
| Venue            =    
| Governing body   =   
| Created          = 
| Editions         =    
| Surface          =   
| Prize money      =   
| Trophy           =    
| Current champion =
| Most Amateur Era Titles =  
| Most Open Era Titles =  
| Most Consecutive Titles Amateur Era =   
| Most Consecutive Titles Open Era = 
| Website          =
}}

Colors

  • AUS: #0091D2
  • FRA: #05482F
  • WIM: #006633
  • USA: #00288C
  • DEF: #CEC8EF

See also