Difference between revisions of "Template:Infobox curling competition"

From blackwiki
Jump to navigation Jump to search
imported>Prayerfortheworld
(optional dates parameter)
Line 1: Line 1:
{| class="toccolours" style="float: right; margin: 0 0 1em 1em;" width: 40%;
+
{{Infobox
|colspan="2" style="background: #efefef; text-align: center;"| '''{{{Name}}}'''
+
| abovestyle = background: #efefef; font-size:120%;
|-
+
| above = {{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
{{#if:{{{Logo<includeonly>|</includeonly>}}}|
+
 
{{!}} colspan="2" style="text-align: center;" {{!}}
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Logo|}}}|size={{{Size|}}}|sizedefault=frameless|title={{{Name}}}}}
<noinclude>&dagger;&nbsp;</noinclude>[[Image:{{{Logo}}}|{{{Size}}}px|center|{{{Name}}}]]<br />
+
| caption = {{{caption|{{{Optional caption|}}}}}}
<small>{{{Optional caption|}}}</small>
+
 
}}
+
| label1 = Host city
|- style="vertical-align:top;"
+
| data1 = {{{Host city|}}}
| '''Host city'''
+
 
| {{{Host city}}}
+
| label2 = Arena
|- style="vertical-align:top;"
+
| data2 = {{#ifeq:{{{Arena}}}|none||{{{Arena|}}}}}
{{#ifeq:{{{Arena}}}|none||
+
 
{{!}} '''Arena'''
+
| label3 = Dates
{{!}} {{{Arena}}}}}
+
| data3 = {{#ifeq:{{{Dates}}}|none||{{{Dates|}}}}}
|- style="vertical-align:top;"
+
 
{{#ifeq:{{{Dates}}}|none||
+
| label4 = Attendance
{{!}} '''Dates'''
+
| data4 = {{{Attendance|}}}
{{!}} {{{Dates}}}}}
+
 
|- style="vertical-align:top;"
+
| label5 = Winner
{{#if:{{{Attendance|}}}|
+
| data5 = {{{Winner|}}}
{{!}} '''Attendance'''
+
 
{{!}} {{{Attendance}}}}}
+
| label6 = Winners
|- style="vertical-align:top;"
+
| data6 = {{{Winners|}}}
{{#if:{{{Winner|}}}|
+
 
{{!}} '''Winner'''
+
| label7 = Men's winner
{{!}} {{{Winner}}}}}
+
| data7 = {{{Men's winner|}}}
|- style="vertical-align:top;"
+
 
{{#if:{{{Winners|}}}|
+
| label8 = Curling club
{{!}} '''Winners'''
+
| data8 = {{#ifeq:{{{Curling club}}}|none||{{{Curling club|}}}}}
{{!}} {{{Winners}}}}}
+
 
|- style="vertical-align:top;"
+
| label9 = Skip
{{#if:{{{Men's winner|}}}|
+
| data9 = {{#ifeq:{{{Skip}}}|none||{{{Skip|}}}}}
{{!}} '''Men's winner'''
+
 
{{!}} {{{Men's winner}}}}}
+
| label10 = Fourth
|- style="vertical-align:top;"
+
| data10 = {{{Fourth|}}}
{{#ifeq:{{{Curling club}}}|none||
+
 
{{!}} '''Curling club'''
+
| label11 = Third
{{!}} {{{Curling club}}}}}
+
| data11 = {{#ifeq:{{{Third}}}|none||{{{Third|}}}}}
|- style="vertical-align:top;"
+
 
{{#ifeq:{{{Skip}}}|none||
+
| label12 = Second
{{!}} '''Skip'''
+
| data12 = {{#ifeq:{{{Second}}}|none||{{{Second|}}}}}
{{!}} {{{Skip}}}}}
+
 
|- style="vertical-align:top;"
+
| label13 = Lead
{{#if:{{{Fourth|}}}|
+
| data13 = {{#ifeq:{{{Lead}}}|none||{{{Lead|}}}}}
{{!}} '''Fourth'''
+
 
{{!}} {{{Fourth}}}}}
+
| label14 = Alternate
|- style="vertical-align:top;"
+
| data14 = {{{Alternate|}}}
{{#ifeq:{{{Third}}}|none||
+
 
{{!}} '''Third'''
+
| label15 = Coach
{{!}} {{{Third}}}}}
+
| data15 = {{{Coach|}}}
|- style="vertical-align:top;"
+
 
{{#ifeq:{{{Second}}}|none||
+
| label16 = Male
{{!}} '''Second'''
+
| data16 = {{{Male|}}}
{{!}} {{{Second}}}}}
+
 
|- style="vertical-align:top;"
+
| label17 = Female
{{#ifeq:{{{Lead}}}|none||
+
| data17 = {{{Female|}}}
{{!}} '''Lead'''
+
 
{{!}} {{{Lead}}}}}
+
| label18 = Finalist
|- style="vertical-align:top;"
+
| data18 = {{#ifeq:{{{Finalist}}}|none||{{{Finalist|}}}}}
{{#if:{{{Alternate|}}}|
+
 
{{!}} '''Alternate'''
+
| label19 = Women's winner
{{!}} {{{Alternate}}}}}
+
| data19 = {{{Women's winner|}}}
|- style="vertical-align:top;"
+
 
{{#if:{{{Coach|}}}|
+
| label20 = Curling club
{{!}} '''Coach'''
+
| data20 = {{{Curling club2|}}}
{{!}} {{{Coach}}}}}
+
 
|- style="vertical-align:top;"
+
| label21 = Skip
{{#if:{{{Male|}}}|
+
| data21 = {{{Skip2|}}}
{{!}} '''Male'''
+
 
{{!}} {{{Male}}}}}
+
| label22 = Fourth
|- style="vertical-align:top;"
+
| data22 = {{{Fourth2|}}}
{{#if:{{{Female|}}}|
+
 
{{!}} '''Female'''
+
| label23 = Third
{{!}} {{{Female}}}}}
+
| data23 = {{{Third2|}}}
|- style="vertical-align:top;"
+
 
{{#ifeq:{{{Finalist}}}|none||
+
| label24 = Second
{{!}} '''Finalist'''
+
| data24 = {{{Second2|}}}
{{!}} {{{Finalist}}}}}
+
 
|- style="vertical-align:top;"
+
| label25 = Lead
{{#if:{{{Women's winner|}}}|
+
| data25 = {{{Lead2|}}}
{{!}} '''Women's winner'''
+
 
{{!}} {{{Women's winner}}}}}
+
| label26 = Alternate
|- style="vertical-align:top;"
+
| data26 = {{{Alternate2|}}}
{{#if:{{{Curling club2|}}}|
+
 
{{!}} '''Curling club'''
+
| label27 = Coach
{{!}} {{{Curling club2}}}}}
+
| data27 = {{{Coach2|}}}
|- style="vertical-align:top;"
+
 
{{#if:{{{Skip2|}}}|
+
| label28 = Finalist
{{!}} '''Skip'''
+
| data28 = {{{Finalist2|}}}
{{!}} {{{Skip2}}}}}
+
 
|- style="vertical-align:top;"
+
| label29 = Previous
{{#if:{{{Fourth2|}}}|
+
| data29 = {{{Prev|}}}
{{!}} '''Fourth'''
+
 
{{!}} {{{Fourth2}}}}}
+
| label30 = Next
|- style="vertical-align:top;"
+
| data30 = {{{Next|}}}
{{#if:{{{Third2|}}}|
+
 
{{!}} '''Third'''
+
}}<noinclude>
{{!}} {{{Third2}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Second2|}}}|
 
{{!}} '''Second'''
 
{{!}} {{{Second2}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Lead2|}}}|
 
{{!}} '''Lead'''
 
{{!}} {{{Lead2}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Alternate2|}}}|
 
{{!}} '''Alternate'''
 
{{!}} {{{Alternate2}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Coach2|}}}|
 
{{!}} '''Coach'''
 
{{!}} {{{Coach2}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Finalist2|}}}|
 
{{!}} '''Finalist'''
 
{{!}} {{{Finalist2}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Prev|}}}|
 
{{!}} '''Previous'''
 
{{!}} {{{Prev}}}}}
 
|- style="vertical-align:top;"
 
{{#if:{{{Next|}}}|
 
{{!}} '''Next'''
 
{{!}} {{{Next}}}}}
 
|}<noinclude>
 
 
{{template doc}}
 
{{template doc}}
 
</noinclude>
 
</noinclude>

Revision as of 21:24, 9 March 2014

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

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

Usage

Template:Parameter names example

{{infobox curling
|Name = 
|Logo = 
|Size = 
|Host city = 
|Arena = 
|Dates = 
|Winner = 
|Men's winner = 
|Curling club = 
|Skip = 
|Fourth = <!-- include only if applicable (see below) -->
|Third = 
|Second = 
|Lead = 
|Alternate = 
|Coach = 
|Finalist = 
|Women's winner = 
|Curling club2 = 
|Skip2 = 
|Fourth2 = <!-- include only if applicable (see below) -->
|Third2 = 
|Second2 = 
|Lead2 = 
|Alternate2 = 
|Coach2 = 
|Finalist2 = 
|prev =
|next = 
}}

Notes

  • The parameters from "Women's winner" to "Finalist2" are optional and should only be used in tournaments with both men's and women's competitions.
  • IF no arena/venue can be listed for parameter "Arena", set parameter equal to none.
  • IF no curling club can be listed for parameter "Curling club", set parameter equal to none.
  • IF no skip or third can be listed (e.g. in a mixed doubles tournament), set parameters equal to none.
  • IF skip does not play fourth rocks, list skip as skip and use the Fourth or the Fourth2 parameter to list other teammate.