Template:Infobox club: Difference between revisions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
=== Logo === | === Logo === | ||
-->{{#if:{{{logouri|}}}|<tr><td colspan="2" align="center" | -->{{#if:{{{logouri|}}}|<tr><td colspan="2" align="center">{{#ifeq:{{lc:{{#sub:{{{logouri}}}|0|4}}}}|http|{{{logouri}}}|{{#ifeq:{{#sub:{{{logouri}}}|0|1}}|[|{{{logouri}}}|{{#ifeq:{{lc:{{#sub:{{{logouri}}}|0|5}}}}|file:|[[{{{logouri}}}|{{#if:{{{logo-width|}}}|{{{logo-width}}}|210px}}]]|{{#ifeq:{{lc:{{#sub:{{{logouri}}}|0|6}}}}|image:|[[{{{logouri}}}|{{#if:{{{logo-width|}}}|{{{logo-width}}}|210px}}]]|[[File:{{{logouri}}}|{{#if:{{{logo-width|}}}|{{{logo-width}}}|210px}}]]}}}}}}}}</td></tr>|}}<!-- | ||
=== Manager === | === Manager === | ||
| Line 75: | Line 46: | ||
=== Coach === | === Coach === | ||
-->{{#if:{{{coach|}}}|<tr><td>'''Coach'''</td><td><!-- | -->{{#if:{{{coach|}}}|<tr><td>'''Coach'''</td><td><!-- | ||
-->{{#if:{{{coach-nat|}}}|{{flagicon|{{{coach-nat | -->{{#if:{{{coach-nat|}}}|{{flagicon|{{{coach-nat}}}} |}}<!-- | ||
-->{{{coach}}}</td></tr>|}}<!-- | -->{{{coach}}}</td></tr>|}}<!-- | ||
| Line 129: | Line 100: | ||
</pre> | </pre> | ||
Uploaded images are displayed at <code> | Uploaded images are displayed at <code>210px</code> wide by default. A different width may be specified with <code>logo-width</code>: | ||
<pre> | <pre> | ||
| Line 136: | Line 107: | ||
</pre> | </pre> | ||
Existing image markup remains supported for backwards compatibility: | 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: | |||
<pre> | |||
| logouri = [[File:229554.png|210px]] | |||
</pre> | |||
The older <code>Image:</code> namespace syntax also remains supported: | |||
<pre> | |||
| logouri = [[Image:229554.png|210px]] | |||
</pre> | |||
The namespace may also be supplied without brackets: | |||
<pre> | <pre> | ||
| logouri = | | logouri = File:229554.png | ||
</pre> | </pre> | ||
Remote-hosted images beginning with <code>http</code> or <code>https</code> | Remote-hosted images beginning with <code>http</code> or <code>https</code> remain supported and are displayed as supplied: | ||
<pre> | <pre> | ||
| Line 148: | Line 133: | ||
</pre> | </pre> | ||
The <code>logo-width</code> parameter applies only when the template creates the wiki image markup itself. Existing complete image markup and remote-hosted images are displayed | The <code>logo-width</code> parameter applies only when the template creates the wiki image markup itself. Existing complete image markup and remote-hosted images are displayed unchanged. | ||
== Example == | == Example == | ||
Revision as of 16:00, 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 =
}}
The manager parameter may be used instead of htuser when the manager name should not link to a Hattrick Wiki user page.
Logo
For images uploaded to the Hattrick Wiki, only the filename needs to be entered:
| logouri = 229554.png
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:
| logouri = [[File:229554.png|210px]]
The older Image: namespace syntax also remains supported:
| logouri = [[Image:229554.png|210px]]
The namespace may also be supplied without brackets:
| logouri = File:229554.png
Remote-hosted images beginning with http or https remain supported and are displayed as supplied:
| logouri = https://example.com/logo.png
The logo-width parameter applies only when the template creates the wiki image markup itself. Existing complete image markup and remote-hosted images are displayed unchanged.
Example
{{#if:Tomi Aittakumpu|![]() | |
| 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 | |
| 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]]
}}
