Difference between revisions of "Template:Infobox tournament"

From Hattrick
(added parameter ''top_scorer'')
(comments to compress table)
Line 1: Line 1:
{{infobox/start|header={{{tournament}}}|infobox_style={{{infobox_style|}}}}}
+
{{infobox/start|header={{{tournament}}}|infobox_style={{{infobox_style|}}}}}<!--
{{#if:{{{local_name|}}}
+
-->{{#if:{{{local_name|}}}
  |{{infobox/row | data = {{{local_name}}} | datastyle = font-weight:bold; }}
+
  |{{infobox/row | data = {{{local_name}}} | datastyle = font-weight:bold; }}<!--
}}
+
-->}}<!--
{{#if:{{{logo|}}}
+
-->{{#if:{{{logo|}}}
 
  |{{infobox/row | data = {{{logo}}}}}
 
  |{{infobox/row | data = {{{logo}}}}}
}}
+
}}<!--
{{#if:{{{host|}}} {{{season|}}} {{{number_of_teams|}}}
+
-->{{#if:{{{host|}}} {{{season|}}} {{{number_of_teams|}}}
  |{{infobox/row | header = Tournament details }}
+
  |{{infobox/row | header = Tournament details }}<!--
   {{#if:{{{host|}}}
+
   -->{{#if:{{{host|}}}
 
   |{{infobox/row | label = Host | data = {{{host}}} }}
 
   |{{infobox/row | label = Host | data = {{{host}}} }}
   }}
+
   }}<!--
   {{#if:{{{season|}}}
+
   -->{{#if:{{{season|}}}
 
   |{{infobox/row | label = Season(s) | data = {{{season}}} }}
 
   |{{infobox/row | label = Season(s) | data = {{{season}}} }}
   }}
+
   }}<!--
   {{#if:{{{number_of_teams|}}}
+
   -->{{#if:{{{number_of_teams|}}}
 
   |{{infobox/row | label = Teams | data = {{{number_of_teams}}} }}
 
   |{{infobox/row | label = Teams | data = {{{number_of_teams}}} }}
   }}
+
   }}<!--
}}
+
-->}}<!--
{{#if:{{{champions|}}} {{{runner_up|}}} {{{semi_finalists|}}} {{{third_place|}}} {{{fourth_place|}}}
+
-->{{#if:{{{champions|}}} {{{runner_up|}}} {{{semi_finalists|}}} {{{third_place|}}} {{{fourth_place|}}}
  |{{infobox/row | header = Final positions }}
+
  |{{infobox/row | header = Final positions }}<!--
   {{#if:{{{champions|}}}
+
   -->{{#if:{{{champions|}}}
 
   |{{infobox/row | label = Champions | data = {{{champions}}} }}
 
   |{{infobox/row | label = Champions | data = {{{champions}}} }}
   }}
+
   }}<!--
   {{#if:{{{runner_up|}}}
+
   -->{{#if:{{{runner_up|}}}
 
   |{{infobox/row | label = Runner-up | data = {{{runner_up}}} }}
 
   |{{infobox/row | label = Runner-up | data = {{{runner_up}}} }}
   }}
+
   }}<!--
   {{#if:{{{third_place|}}}
+
   -->{{#if:{{{third_place|}}}
 
   |{{infobox/row | label = Third place | data = {{{third_place}}} }}
 
   |{{infobox/row | label = Third place | data = {{{third_place}}} }}
   }}
+
   }}<!--
   {{#if:{{{fourth_place|}}}
+
   -->{{#if:{{{fourth_place|}}}
 
   |{{infobox/row | label = Fourth place | data = {{{fourth_place}}} }}
 
   |{{infobox/row | label = Fourth place | data = {{{fourth_place}}} }}
   }}
+
   }}<!--
   {{#if:{{{semi_finalists|}}}
+
   -->{{#if:{{{semi_finalists|}}}
 
   |{{infobox/row | label = Semi-finalists | data = {{{semi_finalists}}} }}
 
   |{{infobox/row | label = Semi-finalists | data = {{{semi_finalists}}} }}
   }}
+
   }}<!--
}}
+
-->}}<!--
{{#if:{{{matches_played|}}} {{{goals_scored|}}} {{{top_scorer|}}}
+
-->{{#if:{{{matches_played|}}} {{{goals_scored|}}} {{{top_scorer|}}}
  |{{infobox/row | header = Tournament statistics }}
+
  |{{infobox/row | header = Tournament statistics }}<!--
   {{#if:{{{matches_played|}}}
+
   -->{{#if:{{{matches_played|}}}
 
   |{{infobox/row | label = Matches played | data = {{{matches_played}}} }}
 
   |{{infobox/row | label = Matches played | data = {{{matches_played}}} }}
   }}
+
   }}<!--
   {{#if:{{{goals_scored|}}}
+
   -->{{#if:{{{goals_scored|}}}
 
   |{{infobox/row | label = Goals scored | data = {{{goals_scored}}} }}
 
   |{{infobox/row | label = Goals scored | data = {{{goals_scored}}} }}
   }}
+
   }}<!--
   {{#if:{{{top_scorer|}}}
+
   -->{{#if:{{{top_scorer|}}}
 
   |{{infobox/row | label = Top scorer | data = {{{top_scorer}}} }}
 
   |{{infobox/row | label = Top scorer | data = {{{top_scorer}}} }}
   }}
+
   }}<!--
}}
+
-->}}<!--
{{#if:{{{previous|}}}{{{next|}}}
+
-->{{#if:{{{previous|}}}{{{next|}}}
 
  |{{infobox/row
 
  |{{infobox/row
 
   | label = {{#if:{{{previous|}}}|&larr; {{{previous}}}}}
 
   | label = {{#if:{{{previous|}}}|&larr; {{{previous}}}}}
Line 54: Line 54:
 
   | data = {{#if:{{{next|}}}|{{{next}}} &rarr;}}
 
   | data = {{#if:{{{next|}}}|{{{next}}} &rarr;}}
 
   | datastyle = text-align:right;
 
   | datastyle = text-align:right;
   }}
+
   }}<!--
}}
+
-->}}
 
{{infobox/end}}<noinclude>
 
{{infobox/end}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:26, 21 May 2010

{{{tournament}}}

[edit] Template documentation

Usage

Cup format without bronze match

{{Infobox tournament
| tournament = 
| infobox_style = 
| local_name = 
| logo = 
| host = 
| season = 
| number_of_teams = 
| champions = 
| runner_up = 
| semi_finalists = 
| matches_played = 
| goals_scored = 
| top_scorer = 
| previous = 
| next = 
| notes_header = 
| notes = 
}}

Bronze settled in group format or cup match

{{Infobox tournament
| tournament = 
| infobox_style = 
| local_name = 
| logo = 
| host = 
| season = 
| number_of_teams = 
| champions = 
| runner_up = 
| third_place = 
| fourth_place = 
| matches_played = 
| goals_scored = 
| top_scorer = 
| previous = 
| next = 
| notes_header = 
| notes = 
}}