Difference between revisions of "Template:Infobox tournament"

From Hattrick
(reformatted end)
Line 1: Line 1:
 
{{infobox/start|header={{{tournament}}}}}
 
{{infobox/start|header={{{tournament}}}}}
{{infobox/row | label = Host | data = {{{host}}} }}
+
{{#if:{{{host|}}} {{{season|}}} {{{number_of_teams|}}}
{{infobox/row | label = Seasons | data = {{{season}}} }}
+
|{{infobox/row | header = Tournament details }}
{{infobox/row | label = Teams | data = {{{number_of_teams}}} }}
+
  {{#if:{{{host|}}}
{{infobox/row | header = Final positions }}
+
  |{{infobox/row | label = Host | data = {{{host}}} }}
{{infobox/row | label = Champions | data = {{{champions}}} }}
+
  }}
{{infobox/row | label = Runner-up | data = {{{runner_up}}} }}
+
  {{#if:{{{season|}}}
{{infobox/row | label = Semi-finalists | data = {{{semi_finalists}}} }}
+
  |{{infobox/row | label = Season(s) | data = {{{season}}} }}
{{#if:{{{matches_played|}}}{{{goals_scored|}}}
+
  }}
 +
  {{#if:{{{number_of_teams|}}}
 +
  |{{infobox/row | label = Teams | data = {{{number_of_teams}}} }}
 +
  }}
 +
}}
 +
{{#if:{{{champions|}}} {{{runner_up|}}} {{{semi_finalists|}}} {{{third_place|}}} {{{fourth_place|}}}
 +
|{{infobox/row | header = Final positions }}
 +
  {{#if:{{{champions|}}}
 +
  |{{infobox/row | label = Champions | data = {{{champions}}} }}
 +
  }}
 +
  {{#if:{{{runner_up|}}}
 +
  |{{infobox/row | label = Runner-up | data = {{{runner_up}}} }}
 +
  }}
 +
  {{#if:{{{third_place|}}}
 +
  |{{infobox/row | label = Third place | data = {{{third_place}}} }}
 +
  }}
 +
  {{#if:{{{fourth_place|}}}
 +
  |{{infobox/row | label = Fourth place | data = {{{fourth_place}}} }}
 +
  }}
 +
  {{#if:{{{semi_finalists|}}}
 +
  |{{infobox/row | label = Semi-finalists | data = {{{semi_finalists}}} }}
 +
  }}
 +
}}
 +
{{#if:{{{matches_played|}}} {{{goals_scored|}}}
 
  |{{infobox/row | header = Tournament statistics }}
 
  |{{infobox/row | header = Tournament statistics }}
 
   {{#if:{{{matches_played|}}}
 
   {{#if:{{{matches_played|}}}

Revision as of 10:51, 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 = 
}}