Template:Infobox club: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
-->{{#if:{{{teamid|}}}| <span class="plainlinks">([https://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])</span>|}}<!-- | -->{{#if:{{{teamid|}}}| <span class="plainlinks">([https://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])</span>|}}<!-- | ||
--></caption>|}}<!-- | --></caption>|}}<!-- | ||
-->{{#if:{{{logouri|}}}|<tr><td colspan="2" align="center">{{{logouri}}}</td></tr>|}}<!-- | |||
=== Logo === | |||
-->{{#if:{{{logouri|}}}|<tr><td colspan="2" align="center"><!-- | |||
Remote-hosted image: preserve existing URL syntax | |||
-->{{#ifeq:{{lc:{{#sub:{{{logouri}}}|0|4}}}}|http|<!-- | |||
-->{{{logouri}}}|<!-- | |||
Existing wiki/link/template/HTML markup: preserve unchanged | |||
-->{{#ifeq:{{#sub:{{{logouri}}}|0|1}}|[|<!-- | |||
-->{{{logouri}}}|<!-- | |||
-->{{#ifeq:{{#sub:{{{logouri}}}|0|1}}|{|<!-- | |||
-->{{{logouri}}}|<!-- | |||
-->{{#ifeq:{{#sub:{{{logouri}}}|0|1}}|<|<!-- | |||
-->{{{logouri}}}|<!-- | |||
File: or Image: namespace supplied without brackets | |||
-->{{#ifeq:{{lc:{{#sub:{{{logouri}}}|0|5}}}}|file:|<!-- | |||
-->[[{{{logouri}}}|{{{logo-width|200px}}}]]|<!-- | |||
-->{{#ifeq:{{lc:{{#sub:{{{logouri}}}|0|6}}}}|image:|<!-- | |||
-->[[{{{logouri}}}|{{{logo-width|200px}}}]]|<!-- | |||
Bare filename: assume image is uploaded to Hattrick Wiki | |||
--><!-- | |||
-->[[File:{{{logouri}}}|{{{logo-width|200px}}}]]<!-- | |||
-->{{!}}}}<!-- | |||
-->{{!}}}}<!-- | |||
-->{{!}}}}<!-- | |||
-->{{!}}}}<!-- | |||
-->{{!}}}}<!-- | |||
-->{{!}}}}<!-- | |||
--></td></tr>|}}<!-- | |||
=== Manager === | |||
-->{{#if:{{{manager|}}}|<!-- | -->{{#if:{{{manager|}}}|<!-- | ||
--><tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|<!-- | --><tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|<!-- | ||
| Line 64: | Line 97: | ||
| teamid = | | teamid = | ||
| logouri = | | logouri = | ||
| logo-width = | |||
| htuser = | | htuser = | ||
| fullname = | | fullname = | ||
| Line 86: | Line 120: | ||
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. | ||
=== Logo === | |||
For images uploaded to the Hattrick Wiki, only the filename needs to be entered: | |||
<pre> | |||
| logouri = 229554.png | |||
</pre> | |||
Uploaded images are displayed at <code>200px</code> wide by default. A different width may be specified with <code>logo-width</code>: | |||
<pre> | |||
| logouri = 229554.png | |||
| logo-width = 250px | |||
</pre> | |||
Existing image markup remains supported for backwards compatibility: | |||
<pre> | |||
| logouri = [[File:229554.png|200px]] | |||
</pre> | |||
Remote-hosted images beginning with <code>http</code> or <code>https</code> also remain supported: | |||
<pre> | |||
| logouri = https://example.com/logo.png | |||
</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 as supplied. | |||
== Example == | == Example == | ||
| Line 92: | Line 155: | ||
| teamname = Nashville FC | | teamname = Nashville FC | ||
| teamid = 229554 | | teamid = 229554 | ||
| logouri = | | logouri = 229554.png | ||
| htuser = Dalepopp | | htuser = Dalepopp | ||
| fullname = Nashville Football Club | | fullname = Nashville Football Club | ||
| Line 114: | Line 177: | ||
| teamname = Nashville FC | | teamname = Nashville FC | ||
| teamid = 229554 | | teamid = 229554 | ||
| logouri = | | logouri = 229554.png | ||
| htuser = Dalepopp | | htuser = Dalepopp | ||
| fullname = Nashville Football Club | | fullname = Nashville Football Club | ||
Revision as of 15:46, 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 200px wide by default. A different width may be specified with logo-width:
| logouri = 229554.png | logo-width = 250px
Existing image markup remains supported for backwards compatibility:
| logouri = [[File:229554.png|200px]]
Remote-hosted images beginning with http or https also remain supported:
| 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 as supplied.
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]]
}}