Template:Infobox tournament: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
added notes field |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{infobox/start|header={{{tournament | {{infobox/start|header={{{tournament}}}|infobox_style=width:250px; {{{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}}}|{{{logo_size|240px}}}]]}} | ||
}} | }}<!-- | ||
{{#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|}}} | -->{{#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:{{{previous|}}}{{{next|}}} | |{{infobox/row | label = Top scorer | data = {{{top_scorer}}} }} | ||
}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{{previous|}}}{{{next|}}} | |||
|{{infobox/row | |{{infobox/row | ||
| label = {{#if:{{{previous|}}}|← {{{previous}}}}} | | label = {{#if:{{{previous|}}}|← {{{previous}}}}} | ||
| labelstyle = font-weight:normal; | | labelstyle = font-weight:normal; | ||
| data = {{#if:{{{next|}}}|{{{next}}} →}} | | data = {{#if:{{{next|}}}|{{{next}}} →| }} | ||
| datastyle = text-align:right; | | datastyle = text-align:right; | ||
}} | }}<!-- | ||
}} | -->}}<!-- | ||
-->{{#if:{{{notes|}}} | |||
|{{#if:{{{notes_header|}}} | |||
|{{infobox/row | header = {{{notes_header}}} }} | |||
}}<!-- | |||
-->{{infobox/row | data = {{{notes}}} }}<!-- | |||
-->}} | |||
{{infobox/end}}<noinclude> | {{infobox/end}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:01, 25 May 2010
[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 =
}}