Template:Infobox club

From Hattrick
(Redirected from Template:Club)
Jump to navigationJump to search


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]]
}}