Difference between revisions of "Template:Infobox hurling championship"

From blackwiki
Jump to navigation Jump to search
imported>Jmcgnh
(Maybe the space vs underscore issues was not the space issue I should have been looking at. You try to space things out to look nice and the system begs to differ.)
imported>Jonesey95
(Fix too small font per MOS:FONTSIZE.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{infobox
 
{{infobox
 
| bodyclass = vevent
 
| bodyclass = vevent
| title = {{ifempty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
+
| title = {{if empty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
 
| titleclass = summary
 
| titleclass = summary
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=frameless}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=frameless}}
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 />{{small|{{{champions captain}}} (captain)}}}}{{#if:{{{champions manager|}}}|<br />{{small|{{{champions manager}}} (manager)}}}} }}
+
| 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 />{{small|{{{runners-up captain}}} (captain)}}}}{{#if:{{{runners-up manager|}}}|<br />{{small|{{{runners-up manager}}} (manager)}}}} }}
+
| 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}}})}}||{{small|({{#expr:({{{goals}}})/({{{matches}}}) round 2}} per match)}}}}}}
+
| 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}}})}}||{{small|({{#expr:({{{points}}})/({{{matches}}}) round 2}} per match)}}}}}}
+
| 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

Script error: No such module "If empty".

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

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

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

Script error: No such module "If empty".
Dates21 November 1926 (1926-11-21)
– 17 March 1927 (1927-03-17)
Teams
ChampionsLeinster (Template:Ordinal title)
Tournament statistics
Matches played2
(Next) 1928
[[Category:Infobox templates|Template:Remove first word]]
{{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

Template:UF-hcal