Jump to content

Template:Infobox Gaelic games province and Template:Infobox Gaelic games province/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Fix case where Irish field is empty
 
 
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
| bodyclass = vcard
| bodyclass = vcard
| title = {{{province|}}}
| above = {{{province}}}
| aboveclass = fn org
| labelstyle = white-space: nowrap;
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|}}}|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|}}}|alt={{{alt|}}}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}


| label1 = [[Irish language|Irish]]
| headerstyle = background:#EEEEEE;
| data1 = {{{irish|}}}
| labelstyle = white-space: nowrap
| label2 = Location
| datastyle = white-space: nowrap

| label1 = [[Irish language|Irish]]:
| data1 = {{#if: {{{irish|}}}| ''{{{irish|}}}''|}}
| label2 = Location:
| data2 = {{{location|}}}
| data2 = {{{location|}}}
| label3 = Number of counties:
| label3 = Number of counties
| data3 = {{{county number|}}}
| data3 = {{{counties|}}}
| label4 = Province colours:
| label4 = Province colours
| data4 = {{{colours|}}}
| data4 = {{{colours|}}}
| label5 = Major grounds:
| label5 = Major grounds
| data5 = {{{grounds|}}}
| data5 = {{{grounds|}}}
| header6 = {{#if:{{{AI hurling|}}}{{{AI football|}}}|Most All-Ireland titles}}
| header6 = {{#if:{{{AI hurling|}}}{{{AI football|}}}|Most All-Ireland titles}}
| label7 = [[All-Ireland Senior Hurling Championship|Hurling]]:
| label7 = [[All-Ireland Senior Hurling Championship |Hurling]]
| data7 = {{{AI hurling|}}}
| data7 = {{{AI hurling|}}}
| label8 =[[All-Ireland Senior Football Championship|Football]]:
| label8 =[[All-Ireland Senior Football Championship|Football]]
| data8 = {{{AI football|}}}
| data8 = {{{AI football|}}}


| header9 = {{#if:{{{pro hurling|}}}{{{pro football|}}}|Most provincial titles}}
| header9 = {{#if:{{{pro hurling|}}}{{{pro football|}}}|Most provincial titles}}
| label10 = Hurling:
| label10 = Hurling
| data10 = {{{pro hurling|}}}
| data10 = {{{pro hurling|}}}
| label11 = Football:
| label11 = Football
| data11 = {{{pro football|}}}
| data11 = {{{pro football|}}}


| header12 = {{#if:{{{pro hurling|}}}{{{pro football|}}}|[[Interprovincial Championship]] wins}}
| header12 = {{#if:{{{pro hurling|}}}{{{pro football|}}}|[[Interprovincial Championship]] wins}}
| label13 = Hurling:
| label13 = Hurling
| data13 = {{{RC hurling|}}}
| data13 = {{{RC hurling|}}}
| label14 = Football:
| label14 = Football
| data14 = {{{RC football|}}}
| data14 = {{{RC football|}}}


| rowstyle15 = background: #ffffff;
| header15 = {{#if: {{{pattern_la|}}}{{{pattern_b|}}}{{{pattern_ra|}}}{{{leftarm|}}}{{{rightarm|}}}{{{body|}}}{{{shorts|}}}{{{socks|}}} | Standard kit }}
| data16 = {{Football kit
| data15 = {{Football kit
| pattern_la = {{{pattern_la|}}}
| pattern_la = {{{pattern_la|}}}
| pattern_b = {{{pattern_b|}}}
| pattern_b = {{{pattern_b|}}}
Line 47: Line 45:
| shorts = {{{shorts|}}}
| shorts = {{{shorts|}}}
| socks = {{{socks|}}}
| socks = {{{socks|}}}
| title = Regular kit
| title = Kit
}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Testcase table
{{documentation}}
| province = "province "
| image = Placeholder.png
| image size = 20px
| irish = "irish "
| location = "location "
| counties = "counties "
| colours = "colours "
| grounds = "grounds "
| AI hurling = "AI hurling "
| AI football = "AI football "
| pro hurling = "pro hurling "
| pro football = "pro football "
| RC hurling = "RC hurling "
| RC football = "RC football "
| pattern_la = #FF0000
| pattern_b = "pattern_b "
| pattern_ra = "pattern_ra "
| leftarm = FF0000
| body = 00FF00
| rightarm = 0000FF
| shorts = 005500
| socks = 009900
}}
</noinclude>
</noinclude>