Difference between revisions of "Template:Infobox hurling championship"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Frietjes |
imported>Jonesey95 (Fix too small font per MOS:FONTSIZE.) |
||
Line 15: | Line 15: | ||
| data3 = {{{sponsor|}}} | | data3 = {{{sponsor|}}} | ||
| label4 = Champions | | label4 = Champions | ||
− | | data4 = {{#if:{{{champions|}}}|{{{champions}}} {{#if:{{{count|}}} |({{ordinal|{{{count}}}}} title)}}{{#if:{{{champions captain|}}}|<br /> | + | | data4 = {{#if:{{{champions|}}}|{{{champions}}} {{#if:{{{count|}}} |({{ordinal|{{{count}}}}} title)}}{{#if:{{{champions captain|}}}|<br />{{{champions captain}}} (captain)}}{{#if:{{{champions manager|}}}|<br />{{{champions manager}}} (manager)}}}} |
| label5 = Runners-up | | label5 = Runners-up | ||
− | | data5 = {{#if:{{{runners-up|}}}|{{{runners-up}}}{{#if:{{{runners-up captain|}}}|<br /> | + | | data5 = {{#if:{{{runners-up|}}}|{{{runners-up}}}{{#if:{{{runners-up captain|}}}|<br />{{{runners-up captain}}} (captain)}}{{#if:{{{runners-up manager|}}}|<br />{{{runners-up manager}}} (manager)}}}} |
| label6 = Promoted | | label6 = Promoted | ||
| data6 = {{{promoted|}}} | | data6 = {{{promoted|}}} | ||
Line 28: | Line 28: | ||
| data9 = {{{matches|}}} | | data9 = {{{matches|}}} | ||
| label10 = Goals scored | | label10 = Goals scored | ||
− | | data10 = {{#if:{{{goals|}}}|{{{goals}}} {{#iferror:{{#expr:({{{goals}}})/({{{matches}}})}}| | + | | data10 = {{#if:{{{goals|}}}|{{{goals}}} {{#iferror:{{#expr:({{{goals}}})/({{{matches}}})}}||({{#expr:({{{goals}}})/({{{matches}}}) round 2}} per match)}}}} |
| label11 = Points scored | | label11 = Points scored | ||
− | | data11 = {{#if:{{{points|}}}|{{{points}}} {{#iferror:{{#expr:({{{points}}})/({{{matches}}})}}| | + | | data11 = {{#if:{{{points|}}}|{{{points}}} {{#iferror:{{#expr:({{{points}}})/({{{matches}}})}}||({{#expr:({{{points}}})/({{{matches}}}) round 2}} per match)}}}} |
| label12 = Top scorer(s) | | label12 = Top scorer(s) | ||
| data12 = {{{top scorer|}}} | | data12 = {{{top scorer|}}} |
Latest revision as of 04:41, 20 February 2020
[[Category:Infobox templates|Template:Remove first word]]
Usage
{{Infobox hurling championship}}
is used to summarise information about a specific hurling championship.
Template:Parameter names example
{{Infobox hurling championship | name = | image = | imagesize = | caption = | dates = {{Start date|YYYY|MM|DD|df=y}}<br />– {{End date|YYYY|MM|DD|df=y}} | teams = | sponsor = | champions = | count = | champions captain = | champions manager = | runners-up = | runners-up captain = | runners-up manager = | promoted = | relegated = | matches = | goals = | points = | top scorer = | previous year = | previous tournament = | next year = | next tournament = }}
Example
The 1927 Railway Cup Hurling Championship
Dates | 21 November 1926 – 17 March 1927 | ||
---|---|---|---|
Teams | |||
Champions | Leinster (Template:Ordinal title) | ||
Tournament statistics | |||
Matches played | 2 | ||
|
{{Infobox hurling championship | name = 1927 Railway Cup | image = | imagesize = | caption = | dates = {{Start date|1926|11|21|df=y}}<br />– {{End date|1927|03|17|df=y}} | teams = {{plainlist| * [[Connacht GAA|Connacht]] * [[Leinster GAA|Leinster]] * [[Munster GAA|Munster]] }} | champions = [[Leinster GAA|Leinster]] | count = 1 | matches = 2 | goals = | points = | top scorer = | previous year = | previous tournament = | next year = 1928 | next tournament = 1928 Railway Cup Hurling Championship }}
Microformat
The above documentation is transcluded from Template:Infobox hurling championship/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |