Difference between revisions of "Template:Infobox tournament"

From blackwiki
Jump to navigation Jump to search
imported>Pbrks
m (fix parameters)
imported>Jonesey95
(Fix too small font per MOS:FONTSIZE.)
 
Line 85: Line 85:
  
 
| label26  = Goals scored
 
| label26  = Goals scored
| data26  = {{{goals|}}} {{#if:{{both|{{{matches|}}}|{{{goals|}}}}}|{{#iferror:{{#expr:{{{goals|}}}/{{{matches|}}}}}||{{small|({{#expr:{{{goals|}}}/{{{matches|}}} round 2}} per match)}}}}}}
+
| data26  = {{{goals|}}} {{#if:{{both|{{{matches|}}}|{{{goals|}}}}}|{{#iferror:{{#expr:{{{goals|}}}/{{{matches|}}}}}||({{#expr:{{{goals|}}}/{{{matches|}}} round 2}} per match)}}}}
  
 
| label27  = Points scored
 
| label27  = Points scored
| data27  = {{{points|}}} {{#if:{{both|{{{matches|}}}|{{{points|}}}}}|{{#iferror:{{#expr:{{{points|}}}/{{{matches|}}}}}||{{small|({{#expr:{{{points|}}}/{{{matches|}}} round 2}} per match)}}}}}}
+
| data27  = {{{points|}}} {{#if:{{both|{{{matches|}}}|{{{points|}}}}}|{{#iferror:{{#expr:{{{points|}}}/{{{matches|}}}}}||({{#expr:{{{points|}}}/{{{matches|}}} round 2}} per match)}}}}
  
 
| label28  = Tries scored
 
| label28  = Tries scored
| data28  = {{{tries|}}} {{#if:{{both|{{{matches|}}}|{{{tries|}}}}}|{{#iferror:{{#expr:{{{tries|}}}/{{{matches|}}}}}||{{small|({{#expr:{{{tries|}}}/{{{matches|}}} round 2}} per match)}}}}}}
+
| data28  = {{{tries|}}} {{#if:{{both|{{{matches|}}}|{{{tries|}}}}}|{{#iferror:{{#expr:{{{tries|}}}/{{{matches|}}}}}||({{#expr:{{{tries|}}}/{{{matches|}}} round 2}} per match)}}}}
  
 
| label29  = Attendance
 
| label29  = Attendance
| data29  = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#ifeq:{{{noaverage|}}}|1||{{#if:{{{matches|}}}|&nbsp;<small>({{formatnum: {{#expr: {{{attendance|0}}} / {{{matches|1}}} round 0}}}} per match)</small>}}}}}}
+
| data29  = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#ifeq:{{{noaverage|}}}|1||{{#if:{{{matches|}}}|&nbsp;({{formatnum: {{#expr: {{{attendance|0}}} / {{{matches|1}}} round 0}}}} per match)}}}}}}
  
 
| label30 = {{#if:{{{mvp_label|}}}|{{{mvp_label}}}|[[Most valuable player|MVP]]}}
 
| label30 = {{#if:{{{mvp_label|}}}|{{{mvp_label}}}|[[Most valuable player|MVP]]}}
Line 235: Line 235:
 
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox tournament with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox tournament]] with unknown parameter "_VALUE_"|ignoreblank=y| 2nd place | 3rd place| administrator | administrators | alt | attendance | best_player | broadcast | caption | champion | champions | current | Current Champion | current_champion | date | defunct | end_date | established | establishment | events | event1 | event2 | event3 | event4 | event1_champion | event2_champion | event3_champion | event4_champion | event1_dates | event2_dates | event3_dates | event4_dates | event1_location | event2_location | event3_location | event4_location | event1_matches | event2_matches | event3_matches | event4_matches | event1_mvp | event2_mvp | event3_mvp | event4_mvp | event1_purse | event2_purse | event3_purse | event4_purse | event1_runner-up | event2_runner-up | event3_runner-up | event4_runner-up | event1_venue | event2_venue | event3_venue | event4_venue | Final Champion | final year | final_champion | final_year | format | game | goals | host | image | image_size | location | matches | month played | month_played | mvp | mvp_label | name | next | noaverage | number | participants | points | previous | purse | runner-up1 | runner-up2 | runners-up1 | runners-up2 | sport | start_date | stat1 | stat1_label | stat2 | stat2_label | stat3 | stat3_label | teams | top_scorer | top_try_scorer | tournament format | tournament_format | tournament_name | tries | venue | venues | website | year }}<noinclude>
 
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox tournament with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox tournament]] with unknown parameter "_VALUE_"|ignoreblank=y| 2nd place | 3rd place| administrator | administrators | alt | attendance | best_player | broadcast | caption | champion | champions | current | Current Champion | current_champion | date | defunct | end_date | established | establishment | events | event1 | event2 | event3 | event4 | event1_champion | event2_champion | event3_champion | event4_champion | event1_dates | event2_dates | event3_dates | event4_dates | event1_location | event2_location | event3_location | event4_location | event1_matches | event2_matches | event3_matches | event4_matches | event1_mvp | event2_mvp | event3_mvp | event4_mvp | event1_purse | event2_purse | event3_purse | event4_purse | event1_runner-up | event2_runner-up | event3_runner-up | event4_runner-up | event1_venue | event2_venue | event3_venue | event4_venue | Final Champion | final year | final_champion | final_year | format | game | goals | host | image | image_size | location | matches | month played | month_played | mvp | mvp_label | name | next | noaverage | number | participants | points | previous | purse | runner-up1 | runner-up2 | runners-up1 | runners-up2 | sport | start_date | stat1 | stat1_label | stat2 | stat2_label | stat3 | stat3_label | teams | top_scorer | top_try_scorer | tournament format | tournament_format | tournament_name | tries | venue | venues | website | year }}<noinclude>
 
{{documentation}}
 
{{documentation}}
[[Category:Infobox templates using small or smaller]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 02:49, 20 February 2020

Script error: No such module "If empty".
Runner-upScript error: No such module "If empty".
2nd runners-upScript error: No such module "If empty".

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

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

Usage

Template:Parameter names example

Sport tournament series

{{Infobox tournament
| name =
| image =
| caption = 
| sport =
| location =
| start_date = <!-- or | date = or | month_played = -->
| end_date = <!-- or | month_played = -->
| established =
| defunct = 
| teams = 
| number = Number of tournaments
| commissioner =
| format =
| current_champion = <!--Use if still played-->
| final_champion = <!--Use if no longer played-->
}}

Single sport tournament

{{Infobox tournament
| name =
| sport =
| year =
| image =
| caption = 
| location =
| start_date = <!-- or | date = -->
| end_date =
| established = 
| administrator =
| tournament_format =
| host =
| venues =
| participants = <!-- or | teams = -->
| purse =
| champions = <!-- or | champion = -->
| runners-up1 = <!-- or | runner-up1 = -->
| runners-up2 = <!-- or | runner-up2 = -->
| matches =
| points =
| tries = 
| goals = 
| attendance = 
| noaverage = <!-- Set to 1 to exclude average attendance per match -->
| mvp = 
| top_scorer = 
| top_try_scorer = 
| stat1_label =
| stat1 =
| stat2_label =
| stat2 =
| stat3_label =
| stat3 =
| previous = 
| next = 
}}

Tracking category

See also