Template:Infobox club: Difference between revisions

From Hattrick
Jump to navigationJump to search
Megnat73 (talk | contribs)
mNo edit summary
Dalepopp (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table class="infobox" style="float:right; font-size:88%;"><!--
<includeonly><table class="infobox" style="float:right; font-size:88%;"><!--


=== Names and Id's ===
=== Names and Id's ===
-->{{#if:{{{teamname|{{{clubname|}}}}}}|<caption>'''{{{teamname|{{{clubname}}}}}}'''<!--  
-->{{#if:{{{teamname|{{{clubname|}}}}}}|<caption style="font-weight:bold;"><!--
     -->{{#if:{{{teamid|}}}|&nbsp;([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])|}}<!--
    -->{{#if:{{{country|}}}|{{flagicon|{{{country}}}}}&nbsp;|}}<!--
    -->{{{teamname|{{{clubname}}}}}}<!--
     -->{{#if:{{{teamid|}}}|&nbsp;<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|}}}|{{#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 ===
-->{{#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>|<!--
     -->{{#if:{{{htuser|}}}|<!--
     -->{{#if:{{{htuser|}}}|<!--
           --><tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''[[User:{{{htuser}}}|{{{htuser}}}]]'''</td></tr>|<!--
           --><tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''[[User:{{{htuser}}}|{{{htuser}}}]]'''</td></tr>}}}}<!--
    -->}}<!--
-->}}<!--


=== Divider ===
=== Divider ===
--><tr><td colspan="2"><hr /></td></tr><!--
--><tr><td align="center" colspan="2" style="background:#ddd; border:1px #aaa solid">'''Club information'''</td></tr><!--


=== Additional names ===
=== Additional names ===
Line 37: 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}}}}}&nbsp;|}}{{{coach}}}</td></tr>|}}<!--
    -->{{#if:{{{coach-nat|}}}|{{flagicon|{{{coach-nat}}}}}&nbsp;|}}<!--
-->{{{coach}}}</td></tr>|}}<!--


=== Fan Club ===
=== Fan Club ===
Line 54: Line 58:


=== Kits ===
=== Kits ===
-->{{#if:{{{homekit|}}}{{{awaykit|}}}|<tr><td colspan="2"><hr /><br /><!--
-->{{#if:{{{homekit|}}}{{{awaykit|}}}{{{thirdkit|}}}|<tr><td align="center" colspan="2" style="background:#ddd; border:1px #aaa solid">'''Team Kits'''</td></tr>|}}<!--
--><td align="center">{{{homekit}}}</td><td align="center">{{{awaykit}}}</td></tr><tr><td align="center">'''Home Kit'''</td><td align="center">'''Away Kit'''</td></tr>|}}<!--
-->{{#if:{{{homekit|}}}{{{awaykit|}}}{{{thirdkit|}}}|<tr><td align="center" colspan="2">{{{homekit|}}} {{{awaykit|}}} {{{thirdkit|}}}</td></tr>|}}<!--
-->{{#if:{{{thirdkit|}}}|<tr><td colspan="2" align="center">{{{thirdkit}}}</td></tr><tr colspan="2" align="center"><td colspan="2" align="center">'''Third Kit'''</td></tr>|}}<!--
 
--></table><noinclude>
=== Current season ===
{{documentation}}
-->{{#if:{{{current-season|}}}|<tr><td colspan="2" align="center" style="border-top:1px solid #aaa; padding:0.35em 0;">[[File:Soccerball_current_event.png|20px|link=]]&nbsp;<i>{{{current-season}}}</i></td></tr>|}}<!--
--></table></includeonly><noinclude>
__NOTOC__
 
== Copy/paste ==
 
<pre>
{{Infobox club
| teamname        =
| clubname        =
| teamid          =
| logouri        =
| logo-width      =
| htuser          =
| manager        =
| fullname        =
| shortname      =
| nickname        =
| region          =
| country        =
| league          =
| league-pos      =
| league-pos-last =
| arena          =
| capacity        =
| arena-capacity  =
| coach          =
| coach-nat      =
| fanclub        =
| fanclub-size    =
| founded        =
| homekit        =
| awaykit        =
| thirdkit        =
| current-season  =
}}
</pre>
 
The <code>teamname</code> parameter is preferred for the club name. The legacy <code>clubname</code> parameter remains supported for backwards compatibility.
 
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. If both are supplied, <code>manager</code> takes precedence.
 
The legacy <code>arena-capacity</code> parameter remains supported for backwards compatibility. New uses should use <code>capacity</code>.
 
=== Logo ===
 
For images uploaded to the Hattrick Wiki, only the filename needs to be entered:
 
<pre>
| logouri = example_fc.png
</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>:
 
<pre>
| logouri    = example_fc.png
| logo-width = 250px
</pre>
 
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 and is displayed exactly as supplied:
 
<pre>
| logouri = [[File:example_fc.png|200px]]
</pre>
 
The older <code>Image:</code> namespace syntax also remains supported:
 
<pre>
| logouri = [[Image:example_fc.png|200px]]
</pre>
 
The namespace may also be supplied without brackets:
 
<pre>
| logouri = File:example_fc.png
</pre>
 
Remote-hosted images remain supported and are displayed as supplied:
 
<pre>
| logouri = https://example.com/logo.png
</pre>
 
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.
 
=== Manager ===
 
For a manager with a Hattrick Wiki user page, use <code>htuser</code>:
 
<pre>
| htuser = ExampleManager
</pre>
 
The manager name will automatically link to that user's page.
 
For a manager name that should not link to a Hattrick Wiki user page, use <code>manager</code> instead:
 
<pre>
| manager = Example Manager
</pre>
 
If both <code>manager</code> and <code>htuser</code> are supplied, <code>manager</code> takes precedence.
 
=== League ===
 
The club's current league or series may be supplied with <code>league</code>:
 
<pre>
| league = V.123
</pre>
 
When <code>country</code> is also supplied, the league name is automatically linked to the corresponding country-specific league page.
 
The current league position may optionally be supplied with <code>league-pos</code>:
 
<pre>
| league-pos = 4th
</pre>
 
The previous season's final position may be supplied with <code>league-pos-last</code>:
 
<pre>
| league-pos-last = 2nd, V.123 (Season 99)
</pre>
 
=== Arena ===
 
The club's home ground and capacity may be supplied with:
 
<pre>
| arena    = Example Park
| capacity = 25,000
</pre>
 
The legacy <code>arena-capacity</code> parameter remains supported if <code>capacity</code> is not supplied.
 
=== Coach ===
 
The coach name may be supplied by itself:
 
<pre>
| coach = Example Coach
</pre>
 
The coach's nationality may optionally be displayed with a flag:
 
<pre>
| coach    = Example Coach
| coach-nat = Sweden
</pre>
 
=== Fan club ===
 
The club's supporter group and its current size may be supplied with:
 
<pre>
| fanclub      = Example Supporters
| fanclub-size = 1,250
</pre>
 
=== Kits ===
 
The current home, away and third kits may be supplied using complete wiki image markup:
 
<pre>
| homekit  = [[File:example_fc_home.png|125px]]
| awaykit  = [[File:example_fc_away.png|125px]]
| thirdkit = [[File:example_fc_third.png|125px]]
</pre>
 
Any combination of the three kit parameters may be used. The '''Team Kits''' section is hidden automatically when no kit parameters are supplied.
 
=== Current season ===
 
The <code>current-season</code> parameter may be used to link to a separate article for the club's current season:
 
<pre>
| current-season = [[Example FC/Season 100|Season 100]]
</pre>
 
When supplied, the current-season link is displayed centered and italicized at the bottom of the infobox with the current-season football icon. If <code>current-season</code> is omitted or left blank, the entire row is hidden automatically.
 
The current-season icon uses:
 
<pre>
File:Soccerball_current_event.png
</pre>
 
The file must exist on the Hattrick Wiki under that filename for the icon to display.
 
== Example ==
 
{{Infobox club
| teamname        = Example FC
| teamid          = 123456
| logouri        = example_fc.png
| htuser          = ExampleManager
| fullname        = Example Football Club
| shortname      = EFC
| nickname        = The Examples
| region          = Example Region
| country        = England
| league          = V.123
| league-pos      = 4th
| league-pos-last = 2nd, V.123 (Season 99)
| arena          = Example Park
| capacity        = 25,000
| coach          = Example Coach
| coach-nat      = Sweden
| fanclub        = Example Supporters
| fanclub-size    = 1,250
| founded        = 1 January 2020
| homekit        = [[File:example_fc_home.png|125px]]
| awaykit        = [[File:example_fc_away.png|125px]]
| current-season  = [[Example FC/Season 100|Season 100]]
}}
 
<pre>
{{Infobox club
| teamname        = Example FC
| teamid          = 123456
| logouri        = example_fc.png
| htuser          = ExampleManager
| fullname        = Example Football Club
| shortname      = EFC
| nickname        = The Examples
| region          = Example Region
| country        = England
| league          = V.123
| league-pos      = 4th
| league-pos-last = 2nd, V.123 (Season 99)
| arena          = Example Park
| capacity        = 25,000
| coach          = Example Coach
| coach-nat      = Sweden
| fanclub        = Example Supporters
| fanclub-size    = 1,250
| founded        = 1 January 2020
| homekit        = [[File:example_fc_home.png|125px]]
| awaykit        = [[File:example_fc_away.png|125px]]
| current-season  = [[Example FC/Season 100|Season 100]]
}}
</pre>
 
</noinclude>
</noinclude>

Latest revision as of 08:01, 22 August 2026


Copy/paste

{{Infobox club
| teamname        =
| clubname        =
| teamid          =
| logouri         =
| logo-width      =
| htuser          =
| manager         =
| fullname        =
| shortname       =
| nickname        =
| region          =
| country         =
| league          =
| league-pos      =
| league-pos-last =
| arena           =
| capacity        =
| arena-capacity  =
| coach           =
| coach-nat       =
| fanclub         =
| fanclub-size    =
| founded         =
| homekit         =
| awaykit         =
| thirdkit        =
| current-season  =
}}

The teamname parameter is preferred for the club name. The legacy clubname parameter remains supported for backwards compatibility.

The manager parameter may be used instead of htuser when the manager name should not link to a Hattrick Wiki user page. If both are supplied, manager takes precedence.

The legacy arena-capacity parameter remains supported for backwards compatibility. New uses should use capacity.

For images uploaded to the Hattrick Wiki, only the filename needs to be entered:

| logouri = example_fc.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    = example_fc.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:example_fc.png|200px]]

The older Image: namespace syntax also remains supported:

| logouri = [[Image:example_fc.png|200px]]

The namespace may also be supplied without brackets:

| logouri = File:example_fc.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.

Manager

For a manager with a Hattrick Wiki user page, use htuser:

| htuser = ExampleManager

The manager name will automatically link to that user's page.

For a manager name that should not link to a Hattrick Wiki user page, use manager instead:

| manager = Example Manager

If both manager and htuser are supplied, manager takes precedence.

League

The club's current league or series may be supplied with league:

| league = V.123

When country is also supplied, the league name is automatically linked to the corresponding country-specific league page.

The current league position may optionally be supplied with league-pos:

| league-pos = 4th

The previous season's final position may be supplied with league-pos-last:

| league-pos-last = 2nd, V.123 (Season 99)

Arena

The club's home ground and capacity may be supplied with:

| arena    = Example Park
| capacity = 25,000

The legacy arena-capacity parameter remains supported if capacity is not supplied.

Coach

The coach name may be supplied by itself:

| coach = Example Coach

The coach's nationality may optionally be displayed with a flag:

| coach     = Example Coach
| coach-nat = Sweden

Fan club

The club's supporter group and its current size may be supplied with:

| fanclub      = Example Supporters
| fanclub-size = 1,250

Kits

The current home, away and third kits may be supplied using complete wiki image markup:

| homekit  = [[File:example_fc_home.png|125px]]
| awaykit  = [[File:example_fc_away.png|125px]]
| thirdkit = [[File:example_fc_third.png|125px]]

Any combination of the three kit parameters may be used. The Team Kits section is hidden automatically when no kit parameters are supplied.

Current season

The current-season parameter may be used to link to a separate article for the club's current season:

| current-season = [[Example FC/Season 100|Season 100]]

When supplied, the current-season link is displayed centered and italicized at the bottom of the infobox with the current-season football icon. If current-season is omitted or left blank, the entire row is hidden automatically.

The current-season icon uses:

File:Soccerball_current_event.png

The file must exist on the Hattrick Wiki under that filename for the icon to display.

Example

England Example FC (123456)
example_fc.png
Managed by ExampleManager
Club information
Full name Example Football Club
Short name EFC
Nickname The Examples
LocationExample Region,  England
LeagueV.123
Current position4th
Last season2nd, V.123 (Season 99)
ArenaExample Park
Capacity25,000
CoachSweden Example Coach
Fan ClubExample Supporters
Size1,250
Founded1 January 2020
Team Kits
File:Example fc home.png File:Example fc away.png
 Season 100
{{Infobox club
| teamname        = Example FC
| teamid          = 123456
| logouri         = example_fc.png
| htuser          = ExampleManager
| fullname        = Example Football Club
| shortname       = EFC
| nickname        = The Examples
| region          = Example Region
| country         = England
| league          = V.123
| league-pos      = 4th
| league-pos-last = 2nd, V.123 (Season 99)
| arena           = Example Park
| capacity        = 25,000
| coach           = Example Coach
| coach-nat       = Sweden
| fanclub         = Example Supporters
| fanclub-size    = 1,250
| founded         = 1 January 2020
| homekit         = [[File:example_fc_home.png|125px]]
| awaykit         = [[File:example_fc_away.png|125px]]
| current-season  = [[Example FC/Season 100|Season 100]]
}}