Template:Infobox club: Difference between revisions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
=== Logo === | === Logo === | ||
-->{{#if:{{{logouri|}}}| | -->{{#if:{{{logouri|}}}|{{#ifeq:{{lc:{{{logouri}}}}}|n/a||<tr><td colspan="2" align="center">{{#ifexist:File:{{{logouri}}}|[[File:{{{logouri}}}|{{#if:{{{logo-width|}}}|{{{logo-width}}}|210px}}]]|{{#ifexist:{{{logouri}}}|[[{{{logouri}}}|{{#if:{{{logo-width|}}}|{{{logo-width}}}|210px}}]]|{{{logouri}}}}}}}</td></tr>}}|}}<!-- | ||
=== Manager === | === Manager === | ||
| Line 41: | Line 41: | ||
=== Ground === | === Ground === | ||
-->{{#if:{{{arena|}}}|<tr><td>'''Arena'''</td><td>{{{arena}}}</td></tr><!-- | -->{{#if:{{{arena|}}}|<tr><td>'''Arena'''</td><td>{{{arena}}}</td></tr><!-- | ||
-->{{#if:{{{capacity|}}}|<tr><td>'''Capacity'''</td><td>{{{capacity}}}</td></tr>|}}<!-- | -->{{#if:{{{capacity|}}}|<tr><td>'''Capacity'''</td><td>{{{capacity}}}</td></tr>|<!-- | ||
-->{{#if:{{{arena-capacity|}}}|<tr><td>'''Capacity'''</td><td>{{{arena-capacity}}}</td></tr>|}}<!-- | |||
-->}}<!-- | |||
-->|}}<!-- | -->|}}<!-- | ||
=== Coach === | === Coach === | ||
-->{{#if:{{{coach|}}}|<tr><td>'''Coach'''</td><td | -->{{#if:{{{coach|}}}|<tr><td>'''Coach'''</td><td>{{#if:{{{coach-nat|}}}|{{flagicon|{{{coach-nat}}}}} |}}{{{coach}}}</td></tr>|}}<!-- | ||
=== Fan Club === | === Fan Club === | ||
| Line 58: | Line 58: | ||
=== Kits === | === Kits === | ||
-->{{#if:{{{homekit| | -->{{#if:{{{homekit|}}}{{{awaykit|}}}{{{thirdkit|}}}|<tr><td align=center colspan=2 style="background: #ddd; border:1px #aaa solid">'''Team Kits'''</td></tr>|}}<!-- | ||
-->{{#if:{{{homekit|}}}{{{awaykit|}}}{{{thirdkit|}}}|<tr><td align=center colspan=2>{{{homekit|}}} {{{awaykit|}}} {{{thirdkit|}}}</td></tr>|}}<!-- | |||
--></table></includeonly><noinclude> | --></table></includeonly><noinclude> | ||
| Line 87: | Line 88: | ||
| homekit = | | homekit = | ||
| awaykit = | | awaykit = | ||
| thirdkit = | |||
}} | }} | ||
</pre> | </pre> | ||
The <code>manager</code> parameter may be used instead of <code>htuser</code> when the manager name should not link to a Hattrick Wiki user page. | The <code>manager</code> parameter may be used instead of <code>htuser</code> when the manager name should not link to a Hattrick Wiki user page. | ||
The legacy <code>arena-capacity</code> parameter remains supported for backwards compatibility. New uses should use <code>capacity</code>. | |||
=== Logo === | === Logo === | ||
| Line 99: | Line 103: | ||
| logouri = 229554.png | | logouri = 229554.png | ||
</pre> | </pre> | ||
If the file exists on the Hattrick Wiki, the template automatically displays it as a wiki-hosted image. | |||
Uploaded images are displayed at <code>210px</code> wide by default. A different width may be specified with <code>logo-width</code>: | Uploaded images are displayed at <code>210px</code> wide by default. A different width may be specified with <code>logo-width</code>: | ||
| Line 109: | Line 115: | ||
If <code>logo-width</code> is omitted or left blank, the image is displayed at <code>210px</code>. | If <code>logo-width</code> is omitted or left blank, the image is displayed at <code>210px</code>. | ||
Existing complete wiki image markup remains supported for backwards compatibility: | Existing complete wiki image markup remains supported for backwards compatibility and is displayed exactly as supplied: | ||
<pre> | <pre> | ||
| logouri = [[File:229554.png| | | logouri = [[File:229554.png|200px]] | ||
</pre> | </pre> | ||
| Line 118: | Line 124: | ||
<pre> | <pre> | ||
| logouri = [[Image:229554.png| | | logouri = [[Image:229554.png|200px]] | ||
</pre> | </pre> | ||
| Line 127: | Line 133: | ||
</pre> | </pre> | ||
Remote-hosted images | Remote-hosted images remain supported and are displayed as supplied: | ||
<pre> | <pre> | ||
| Line 133: | Line 139: | ||
</pre> | </pre> | ||
The <code>logo-width</code> parameter applies | A value of <code>n/a</code> is treated as no available logo and does not produce a logo row. | ||
The <code>logo-width</code> parameter applies when the template creates the wiki image markup itself. Existing complete image markup and remote-hosted images retain their supplied formatting. | |||
=== Coach === | |||
The coach name may be supplied by itself: | |||
<pre> | |||
| coach = Tomi Aittakumpu | |||
</pre> | |||
The coach's nationality may optionally be displayed with a flag: | |||
<pre> | |||
| coach = Tomi Aittakumpu | |||
| coach-nat = Finland | |||
</pre> | |||
=== Kits === | |||
The current home, away and third kits may be supplied using complete wiki image markup: | |||
<pre> | |||
| homekit = [[File:229554_home.png|125px]] | |||
| awaykit = [[File:229554_away.png|125px]] | |||
| thirdkit = [[File:229554_goalkeeper.png|125px]] | |||
</pre> | |||
== Example == | == Example == | ||
| Line 156: | Line 189: | ||
| homekit = [[File:229554_home.png|125px]] | | homekit = [[File:229554_home.png|125px]] | ||
| awaykit = [[File:229554_away.png|125px]] | | awaykit = [[File:229554_away.png|125px]] | ||
| thirdkit = [[File:229554_goalkeeper.png|125px]] | |||
}} | }} | ||
| Line 178: | Line 212: | ||
| homekit = [[File:229554_home.png|125px]] | | homekit = [[File:229554_home.png|125px]] | ||
| awaykit = [[File:229554_away.png|125px]] | | awaykit = [[File:229554_away.png|125px]] | ||
| thirdkit = [[File:229554_goalkeeper.png|125px]] | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 16:19, 19 August 2026
Copy/paste
{{Infobox club
| teamname =
| teamid =
| logouri =
| logo-width =
| htuser =
| fullname =
| shortname =
| nickname =
| region =
| country =
| league =
| league-pos =
| league-pos-last =
| arena =
| capacity =
| coach =
| coach-nat =
| fanclub =
| fanclub-size =
| founded =
| homekit =
| awaykit =
| thirdkit =
}}
The manager parameter may be used instead of htuser when the manager name should not link to a Hattrick Wiki user page.
The legacy arena-capacity parameter remains supported for backwards compatibility. New uses should use capacity.
Logo
For images uploaded to the Hattrick Wiki, only the filename needs to be entered:
| logouri = 229554.png
If the file exists on the Hattrick Wiki, the template automatically displays it as a wiki-hosted image.
Uploaded images are displayed at 210px wide by default. A different width may be specified with logo-width:
| logouri = 229554.png | logo-width = 250px
If logo-width is omitted or left blank, the image is displayed at 210px.
Existing complete wiki image markup remains supported for backwards compatibility and is displayed exactly as supplied:
| logouri = [[File:229554.png|200px]]
The older Image: namespace syntax also remains supported:
| logouri = [[Image:229554.png|200px]]
The namespace may also be supplied without brackets:
| logouri = File:229554.png
Remote-hosted images remain supported and are displayed as supplied:
| logouri = https://example.com/logo.png
A value of n/a is treated as no available logo and does not produce a logo row.
The logo-width parameter applies when the template creates the wiki image markup itself. Existing complete image markup and remote-hosted images retain their supplied formatting.
Coach
The coach name may be supplied by itself:
| coach = Tomi Aittakumpu
The coach's nationality may optionally be displayed with a flag:
| coach = Tomi Aittakumpu | coach-nat = Finland
Kits
The current home, away and third kits may be supplied using complete wiki image markup:
| homekit = [[File:229554_home.png|125px]] | awaykit = [[File:229554_away.png|125px]] | thirdkit = [[File:229554_goalkeeper.png|125px]]
Example
![]() | |
| Managed by Dalepopp | |
| Club information | |
| Full name | Nashville Football Club |
|---|---|
| Nickname | Boys In Gold |
| Location | Tennessee, |
| League | V.212 |
| Last season | 3rd, V.212 (Season 94) |
| Arena | Chris Jones Park |
| Capacity | 47,839 |
| Coach | Tomi Aittakumpu |
| Fan Club | The Roadies |
| Size | 2,484 |
| Founded | 9 August 2022 |
| Team Kits | |
{{Infobox club
| teamname = Nashville FC
| teamid = 229554
| logouri = 229554.png
| htuser = Dalepopp
| fullname = Nashville Football Club
| nickname = Boys In Gold
| region = Tennessee
| country = USA
| league = V.212
| league-pos-last = 3rd, V.212 (Season 94)
| arena = Chris Jones Park
| capacity = 47,839
| coach = Tomi Aittakumpu
| fanclub = The Roadies
| fanclub-size = 2,484
| founded = 9 August 2022
| homekit = [[File:229554_home.png|125px]]
| awaykit = [[File:229554_away.png|125px]]
| thirdkit = [[File:229554_goalkeeper.png|125px]]
}}
