Template:Football squad on pitch: Difference between revisions

From Hattrick
Jump to navigationJump to search
Polimares (talk | contribs)
No edit summary
Plethon (talk | contribs)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div class="thumb {{#switch:{{{align|center}}}
<includeonly><div class="thumb {{#switch:{{{align|center}}}
  | left = tleft
  | left = floatleft
  | right = tright
  | right = floatright
  | center = center
  | center = center
  | none = tnone
  | none = tnone
Line 8: Line 8:
<div class="thumbinner" style="width:{{#expr:{{{width|200}}}+4}}px">
<div class="thumbinner" style="width:{{#expr:{{{width|200}}}+4}}px">
<div style="position: relative;font-size:{{{font-size|80%}}}">
<div style="position: relative;font-size:{{{font-size|80%}}}">
[[image:Soccer Field Transparant.png|{{{width|200}}}px]]
[[File:{{#switch:{{lc:{{{image|}}}}}
|striped = Campofutebol.svg
|#default = Soccer Field Transparant.png
}}|{{{width|200}}}px|class=notpageimage noviewer]]
{{#if:{{{GK|}}}{{{GK_nat|}}}
{{#if:{{{GK|}}}{{{GK_nat|}}}
|{{football squad on pitch/player|y=7|x=50|nat={{{GK_nat|}}}|name={{{GK}}}|text_width={{{GK_width|}}}|text_shift={{{GK_shift|}}}}}
|{{football squad on pitch/player|y=7|x=50|nat={{{GK_nat|}}}|name={{{GK}}}|flag_template={{{flag_template|}}}|text_width={{{GK_width|}}}|text_shift={{{GK_shift|}}}}}
}}{{#if:{{{SW|}}}{{{SW_nat|}}}
}}{{#if:{{{SW|}}}{{{SW_nat|}}}
|{{football squad on pitch/player|y=15|x=50|nat={{{SW_nat|}}}|name={{{SW}}}|text_width={{{SW_width|}}}|text_shift={{{SW_shift|}}}}}
|{{football squad on pitch/player|y=13|x=50|nat={{{SW_nat|}}}|name={{{SW}}}|flag_template={{{flag_template|}}}|text_width={{{SW_width|}}}|text_shift={{{SW_shift|}}}}}
}}{{#if:{{{CB|}}}{{{CB_nat|}}}
}}{{#if:{{{CB|}}}{{{CB_nat|}}}
|{{football squad on pitch/player|y=21|x=50|nat={{{CB_nat|}}}|name={{{CB}}}|text_width={{{CB_width|}}}|text_shift={{{CB_shift|}}}}}
|{{football squad on pitch/player|y=21|x=50|nat={{{CB_nat|}}}|name={{{CB}}}|flag_template={{{flag_template|}}}|text_width={{{CB_width|}}}|text_shift={{{CB_shift|}}}}}
}}{{#if:{{{RCB|}}}{{{RCB_nat|}}}
}}{{#if:{{{RCB|}}}{{{RCB_nat|}}}
|{{football squad on pitch/player|y=18|x=27|nat={{{RCB_nat|}}}|name={{{RCB}}}|text_width={{{RCB_width|}}}|text_shift={{{RCB_shift|}}}}}
|{{football squad on pitch/player|y=18|x=27|nat={{{RCB_nat|}}}|name={{{RCB}}}|flag_template={{{flag_template|}}}|text_width={{{RCB_width|}}}|text_shift={{{RCB_shift|}}}}}
}}{{#if:{{{LCB|}}}{{{LCB_nat|}}}
}}{{#if:{{{LCB|}}}{{{LCB_nat|}}}
|{{football squad on pitch/player|y=18|x=73|nat={{{LCB_nat|}}}|name={{{LCB}}}|text_width={{{LCB_width|}}}|text_shift={{{LCB_shift|}}}}}
|{{football squad on pitch/player|y=18|x=73|nat={{{LCB_nat|}}}|name={{{LCB}}}|flag_template={{{flag_template|}}}|text_width={{{LCB_width|}}}|text_shift={{{LCB_shift|}}}}}
}}{{#if:{{{RB|}}}{{{RB_nat|}}}
}}{{#if:{{{RB|}}}{{{RB_nat|}}}
|{{football squad on pitch/player|y=30|x=15|nat={{{RB_nat|}}}|name={{{RB}}}|text_width={{{RB_width|}}}|text_shift={{{RB_shift|}}}}}
|{{football squad on pitch/player|y=30|x=13|nat={{{RB_nat|}}}|name={{{RB}}}|flag_template={{{flag_template|}}}|text_width={{{RB_width|}}}|text_shift={{{RB_shift|}}}}}
}}{{#if:{{{LB|}}}{{{LB_nat|}}}
}}{{#if:{{{LB|}}}{{{LB_nat|}}}
|{{football squad on pitch/player|y=30|x=85|nat={{{LB_nat|}}}|name={{{LB}}}|text_width={{{LB_width|}}}|text_shift={{{LB_shift|}}}}}
|{{football squad on pitch/player|y=30|x=87|nat={{{LB_nat|}}}|name={{{LB}}}|flag_template={{{flag_template|}}}|text_width={{{LB_width|}}}|text_shift={{{LB_shift|}}}}}
}}{{#if:{{{ACB|}}}{{{ACB_nat|}}}
}}{{#if:{{{ACB|}}}{{{ACB_nat|}}}
|{{football squad on pitch/player|y=30|x=50|nat={{{ACB_nat|}}}|name={{{ACB}}}|text_width={{{ACB_width|}}}|text_shift={{{ACB_shift|}}}}}
|{{football squad on pitch/player|y=30|x=50|nat={{{ACB_nat|}}}|name={{{ACB}}}|flag_template={{{flag_template|}}}|text_width={{{ACB_width|}}}|text_shift={{{ACB_shift|}}}}}
}}{{#if:{{{DM|}}}{{{DM_nat|}}}
}}{{#if:{{{DM|}}}{{{DM_nat|}}}
|{{football squad on pitch/player|y=38|x=50|nat={{{DM_nat|}}}|name={{{DM}}}|text_width={{{DM_width|}}}|text_shift={{{DM_shift|}}}}}
|{{football squad on pitch/player|y=40|x=50|nat={{{DM_nat|}}}|name={{{DM}}}|flag_template={{{flag_template|}}}|text_width={{{DM_width|}}}|text_shift={{{DM_shift|}}}}}
}}{{#if:{{{RDM|}}}{{{RDM_nat|}}}
}}{{#if:{{{RDM|}}}{{{RDM_nat|}}}
|{{football squad on pitch/player|y=40|x=30|nat={{{RDM_nat|}}}|name={{{RDM}}}|text_width={{{RDM_width|}}}|text_shift={{{RDM_shift|}}}}}
|{{football squad on pitch/player|y=40|x=27|nat={{{RDM_nat|}}}|name={{{RDM}}}|flag_template={{{flag_template|}}}|text_width={{{RDM_width|}}}|text_shift={{{RDM_shift|}}}}}
}}{{#if:{{{LDM|}}}{{{LDM_nat|}}}
}}{{#if:{{{LDM|}}}{{{LDM_nat|}}}
|{{football squad on pitch/player|y=40|x=70|nat={{{LDM_nat|}}}|name={{{LDM}}}|text_width={{{LDM_width|}}}|text_shift={{{LDM_shift|}}}}}
|{{football squad on pitch/player|y=40|x=73|nat={{{LDM_nat|}}}|name={{{LDM}}}|flag_template={{{flag_template|}}}|text_width={{{LDM_width|}}}|text_shift={{{LDM_shift|}}}}}
}}{{#if:{{{RWB|}}}{{{RWB_nat|}}}
}}{{#if:{{{RWB|}}}{{{RWB_nat|}}}
|{{football squad on pitch/player|y=40|x=15|nat={{{RWB_nat|}}}|name={{{RWB}}}|text_width={{{RWB_width|}}}|text_shift={{{RWB_shift|}}}}}
|{{football squad on pitch/player|y=40|x=13|nat={{{RWB_nat|}}}|name={{{RWB}}}|flag_template={{{flag_template|}}}|text_width={{{RWB_width|}}}|text_shift={{{RWB_shift|}}}}}
}}{{#if:{{{LWB|}}}{{{LWB_nat|}}}
}}{{#if:{{{LWB|}}}{{{LWB_nat|}}}
|{{football squad on pitch/player|y=40|x=85|nat={{{LWB_nat|}}}|name={{{LWB}}}|text_width={{{LWB_width|}}}|text_shift={{{LWB_shift|}}}}}
|{{football squad on pitch/player|y=40|x=87|nat={{{LWB_nat|}}}|name={{{LWB}}}|flag_template={{{flag_template|}}}|text_width={{{LWB_width|}}}|text_shift={{{LWB_shift|}}}}}
}}{{#if:{{{CM|}}}{{{CM_nat|}}}
}}{{#if:{{{CM|}}}{{{CM_nat|}}}
|{{football squad on pitch/player|y=48|x=50|nat={{{CM_nat|}}}|name={{{CM}}}|text_width={{{CM_width|}}}|text_shift={{{CM_shift|}}}}}
|{{football squad on pitch/player|y=48|x=50|nat={{{CM_nat|}}}|name={{{CM}}}|flag_template={{{flag_template|}}}|text_width={{{CM_width|}}}|text_shift={{{CM_shift|}}}}}
}}{{#if:{{{RCM|}}}{{{RCM_nat|}}}
}}{{#if:{{{RCM|}}}{{{RCM_nat|}}}
|{{football squad on pitch/player|y=51|x=30|nat={{{RCM_nat|}}}|name={{{RCM}}}|text_width={{{RCM_width|}}}|text_shift={{{RCM_shift|}}}}}
|{{football squad on pitch/player|y=48|x=27|nat={{{RCM_nat|}}}|name={{{RCM}}}|flag_template={{{flag_template|}}}|text_width={{{RCM_width|}}}|text_shift={{{RCM_shift|}}}}}
}}{{#if:{{{LCM|}}}{{{LCM_nat|}}}
}}{{#if:{{{LCM|}}}{{{LCM_nat|}}}
|{{football squad on pitch/player|y=51|x=70|nat={{{LCM_nat|}}}|name={{{LCM}}}|text_width={{{LCM_width|}}}|text_shift={{{LCM_shift|}}}}}
|{{football squad on pitch/player|y=48|x=73|nat={{{LCM_nat|}}}|name={{{LCM}}}|flag_template={{{flag_template|}}}|text_width={{{LCM_width|}}}|text_shift={{{LCM_shift|}}}}}
}}{{#if:{{{RW|}}}{{{RW_nat|}}}
}}{{#if:{{{RW|}}}{{{RW_nat|}}}
|{{football squad on pitch/player|y=70|x=15|nat={{{RW_nat|}}}|name={{{RW}}}|text_width={{{RW_width|}}}|text_shift={{{RW_shift|}}}}}
|{{football squad on pitch/player|y=70|x=13|nat={{{RW_nat|}}}|name={{{RW}}}|flag_template={{{flag_template|}}}|text_width={{{RW_width|}}}|text_shift={{{RW_shift|}}}}}
}}{{#if:{{{LW|}}}{{{LW_nat|}}}
}}{{#if:{{{LW|}}}{{{LW_nat|}}}
|{{football squad on pitch/player|y=70|x=85|nat={{{LW_nat|}}}|name={{{LW}}}|text_width={{{LW_width|}}}|text_shift={{{LW_shift|}}}}}
|{{football squad on pitch/player|y=70|x=87|nat={{{LW_nat|}}}|name={{{LW}}}|flag_template={{{flag_template|}}}|text_width={{{LW_width|}}}|text_shift={{{LW_shift|}}}}}
}}{{#if:{{{AM|}}}{{{AM_nat|}}}
}}{{#if:{{{AM|}}}{{{AM_nat|}}}
|{{football squad on pitch/player|y=60|x=50|nat={{{AM_nat|}}}|name={{{AM}}}|text_width={{{AM_width|}}}|text_shift={{{AM_shift|}}}}}
|{{football squad on pitch/player|y=60|x=50|nat={{{AM_nat|}}}|name={{{AM}}}|flag_template={{{flag_template|}}}|text_width={{{AM_width|}}}|text_shift={{{AM_shift|}}}}}
}}{{#if:{{{RAM|}}}{{{RAM_nat|}}}
}}{{#if:{{{RAM|}}}{{{RAM_nat|}}}
|{{football squad on pitch/player|y=62|x=30|nat={{{RAM_nat|}}}|name={{{RAM}}}|text_width={{{RAM_width|}}}|text_shift={{{RAM_shift|}}}}}
|{{football squad on pitch/player|y=62|x=27|nat={{{RAM_nat|}}}|name={{{RAM}}}|flag_template={{{flag_template|}}}|text_width={{{RAM_width|}}}|text_shift={{{RAM_shift|}}}}}
}}{{#if:{{{LAM|}}}{{{LAM_nat|}}}
}}{{#if:{{{LAM|}}}{{{LAM_nat|}}}
|{{football squad on pitch/player|y=62|x=70|nat={{{LAM_nat|}}}|name={{{LAM}}}|text_width={{{LAM_width|}}}|text_shift={{{LAM_shift|}}}}}
|{{football squad on pitch/player|y=62|x=73|nat={{{LAM_nat|}}}|name={{{LAM}}}|flag_template={{{flag_template|}}}|text_width={{{LAM_width|}}}|text_shift={{{LAM_shift|}}}}}
}}{{#if:{{{RM|}}}{{{RM_nat|}}}
}}{{#if:{{{RM|}}}{{{RM_nat|}}}
|{{football squad on pitch/player|y=58|x=15|nat={{{RM_nat|}}}|name={{{RM}}}|text_width={{{RM_width|}}}|text_shift={{{RM_shift|}}}}}
|{{football squad on pitch/player|y=60|x=13|nat={{{RM_nat|}}}|name={{{RM}}}|flag_template={{{flag_template|}}}|text_width={{{RM_width|}}}|text_shift={{{RM_shift|}}}}}
}}{{#if:{{{LM|}}}{{{LM_nat|}}}
}}{{#if:{{{LM|}}}{{{LM_nat|}}}
|{{football squad on pitch/player|y=58|x=85|nat={{{LM_nat|}}}|name={{{LM}}}|text_width={{{LM_width|}}}|text_shift={{{LM_shift|}}}}}
|{{football squad on pitch/player|y=60|x=87|nat={{{LM_nat|}}}|name={{{LM}}}|flag_template={{{flag_template|}}}|text_width={{{LM_width|}}}|text_shift={{{LM_shift|}}}}}
}}{{#if:{{{SS|}}}{{{SS_nat|}}}
}}{{#if:{{{SS|}}}{{{SS_nat|}}}
|{{football squad on pitch/player|y=70|x=50|nat={{{SS_nat|}}}|name={{{SS}}}|text_width={{{SS_width|}}}|text_shift={{{SS_shift|}}}}}
|{{football squad on pitch/player|y=70|x=50|nat={{{SS_nat|}}}|name={{{SS}}}|flag_template={{{flag_template|}}}|text_width={{{SS_width|}}}|text_shift={{{SS_shift|}}}}}
}}{{#if:{{{RSS|}}}{{{RSS_nat|}}}
}}{{#if:{{{RSS|}}}{{{RSS_nat|}}}
|{{football squad on pitch/player|y=72|x=30|nat={{{RSS_nat|}}}|name={{{RSS}}}|text_width={{{RSS_width|}}}|text_shift={{{RSS_shift|}}}}}
|{{football squad on pitch/player|y=72|x=27|nat={{{RSS_nat|}}}|name={{{RSS}}}|flag_template={{{flag_template|}}}|text_width={{{RSS_width|}}}|text_shift={{{RSS_shift|}}}}}
}}{{#if:{{{LSS|}}}{{{LSS_nat|}}}
}}{{#if:{{{LSS|}}}{{{LSS_nat|}}}
|{{football squad on pitch/player|y=72|x=70|nat={{{LSS_nat|}}}|name={{{LSS}}}|text_width={{{LSS_width|}}}|text_shift={{{LSS_shift|}}}}}
|{{football squad on pitch/player|y=72|x=73|nat={{{LSS_nat|}}}|name={{{LSS}}}|flag_template={{{flag_template|}}}|text_width={{{LSS_width|}}}|text_shift={{{LSS_shift|}}}}}
}}{{#if:{{{CF|}}}{{{CF_nat|}}}
|{{football squad on pitch/player|y=82|x=50|nat={{{CF_nat|}}}|name={{{CF}}}|text_width={{{CF_width|}}}|text_shift={{{CF_shift|}}}}}
}}{{#if:{{{RF|}}}{{{RF_nat|}}}
}}{{#if:{{{RF|}}}{{{RF_nat|}}}
|{{football squad on pitch/player|y=80|x=13|nat={{{RF_nat|}}}|name={{{RF}}}|text_width={{{RF_width|}}}|text_shift={{{RF_shift|}}}}}
|{{football squad on pitch/player|y=80|x=13|nat={{{RF_nat|}}}|name={{{RF}}}|flag_template={{{flag_template|}}}|text_width={{{RF_width|}}}|text_shift={{{RF_shift|}}}}}
}}{{#if:{{{LF|}}}{{{LF_nat|}}}
}}{{#if:{{{LF|}}}{{{LF_nat|}}}
|{{football squad on pitch/player|y=80|x=87|nat={{{LF_nat|}}}|name={{{LF}}}|text_width={{{LF_width|}}}|text_shift={{{LF_shift|}}}}}
|{{football squad on pitch/player|y=80|x=87|nat={{{LF_nat|}}}|name={{{LF}}}|flag_template={{{flag_template|}}}|text_width={{{LF_width|}}}|text_shift={{{LF_shift|}}}}}
}}{{#if:{{{CF|}}}{{{CF_nat|}}}
|{{football squad on pitch/player|y=80|x=50|nat={{{CF_nat|}}}|name={{{CF}}}|flag_template={{{flag_template|}}}|text_width={{{CF_width|}}}|text_shift={{{CF_shift|}}}}}
}}{{#if:{{{RCF|}}}{{{RCF_nat|}}}
}}{{#if:{{{RCF|}}}{{{RCF_nat|}}}
|{{football squad on pitch/player|y=80|x=27|nat={{{RCF_nat|}}}|name={{{RCF}}}|text_width={{{RCF_width|}}}|text_shift={{{RCF_shift|}}}}}
|{{football squad on pitch/player|y=82|x=27|nat={{{RCF_nat|}}}|name={{{RCF}}}|flag_template={{{flag_template|}}}|text_width={{{RCF_width|}}}|text_shift={{{RCF_shift|}}}}}
}}{{#if:{{{LCF|}}}{{{LCF_nat|}}}
}}{{#if:{{{LCF|}}}{{{LCF_nat|}}}
|{{football squad on pitch/player|y=80|x=73|nat={{{LCF_nat|}}}|name={{{LCF}}}|text_width={{{LCF_width|}}}|text_shift={{{LCF_shift|}}}}}
|{{football squad on pitch/player|y=82|x=73|nat={{{LCF_nat|}}}|name={{{LCF}}}|flag_template={{{flag_template|}}}|text_width={{{LCF_width|}}}|text_shift={{{LCF_shift|}}}}}
}}</div>{{#if:{{{caption|}}}|
}}</div>{{#if:{{{caption|}}}|
<div style="text-align:center; font-size:{{{caption-size|smaller}}}">{{{caption}}}</div>
<div style="text-align:center; font-size:{{{caption-size|smaller}}}">{{{caption}}}</div>

Latest revision as of 16:38, 27 September 2026


[edit] Template documentation

GK
SW
CB
RCB
LCB
RB
LB
ACB
DM
RDM
LDM
RWB
LWB
CM
RCM
LCM
RW
LW
AM
RAM
LAM
RM
LM
SS
RSS
LSS
RF
LF
CF
RCF
LCF
caption

This template is used to generate an image map, showing the members of an association football squad on a football pitch. The position names and locations are specified per association football positions. The template does not check to make sure there are the correct number of players on the field.

Usage

GK
RCB
LCB
RB
LB
RCM
LCM
RW
LW
SS
CF
{{football squad on pitch
| GK_nat  = | GK  =
| RB_nat  = | RB  =
| RCB_nat = | RCB =
| LCB_nat = | LCB =
| LB_nat  = | LB  =
| RCM_nat = | RCM =
| LCM_nat = | LCM =
| SS_nat  = | SS  =
| RW_nat  = | RW  =
| LW_nat  = | LW  =
| CF_nat  = | CF  =
}}

GK
RCB
LCB
RB
LB
RCM
LCM
RW
LW
AM
CF
{{football squad on pitch
| GK_nat  = | GK  =
| RB_nat  = | RB  =
| RCB_nat = | RCB =
| LCB_nat = | LCB =
| LB_nat  = | LB  =
| RCM_nat = | RCM =
| LCM_nat = | LCM =
| AM_nat  = | AM  =
| RW_nat  = | RW  =
| LW_nat  = | LW  =
| CF_nat  = | CF  =
}}

GK
RCB
LCB
RB
LB
RCM
LCM
AM
RM
LM
CF
{{football squad on pitch
| GK_nat  = | GK  =
| RB_nat  = | RB  =
| RCB_nat = | RCB =
| LCB_nat = | LCB =
| LB_nat  = | LB  =
| RCM_nat = | RCM =
| LCM_nat = | LCM =
| AM_nat  = | AM  =
| RM_nat  = | RM  =
| LM_nat  = | LM  =
| CF_nat  = | CF  =
}}

GK
RCB
LCB
RB
LB
RCM
LCM
RW
LW
RCF
LCF
{{football squad on pitch
| GK_nat  = | GK  =
| RB_nat  = | RB  =
| RCB_nat = | RCB =
| LCB_nat = | LCB =
| LB_nat  = | LB  =
| RCM_nat = | RCM =
| LCM_nat = | LCM =
| RW_nat  = | RW  =
| LW_nat  = | LW  =
| RCF_nat = | RCF =
| LCF_nat = | LCF =
}}

Flags

The XX_nat parameters may be used to add national flags for the players. The ISO country code must be supported by {{flagicon}}.

Alignment and width

By default, the diagram will float to the center of the page or column. To float the diagram to the left, use |align=left. To float the diagram to the right, use |align=right.

By default, the diagram width is set to 200px. To change the width, use |width=NUM, where NUM is a raw number, without the px units.

Long labels

If the label is too long, and is being clipped on the left or right edge of the diagram, try shifting it using |POS_shift=num, where POS is the position and num is a raw number in em units. This feature is currently only enabled for positions near the left and right edge of the diagram.

Caption

To add a caption, use |caption=.

See also