Template:Lineup: Difference between revisions

From Hattrick
Jump to navigationJump to search
Teles (talk | contribs)
No edit summary
Teles (talk | contribs)
No edit summary
 
Line 20: Line 20:
| width="120" style="border-top:4px solid transparent; vertical-align:top;z-index:5;position:relative;" | {{#ifeq: {{{RW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{RW-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{RW-Beh}}}|Mid|[[Image:behaviour_right.png|16px]]}}{{#if: {{{RW|}}}|{{{RW}}}|&nbsp; }} {{#if:{{{RW-Star|}}}|<br/>{{{RW-Star}}}}}
| width="120" style="border-top:4px solid transparent; vertical-align:top;z-index:5;position:relative;" | {{#ifeq: {{{RW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{RW-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{RW-Beh}}}|Mid|[[Image:behaviour_right.png|16px]]}}{{#if: {{{RW|}}}|{{{RW}}}|&nbsp; }} {{#if:{{{RW-Star|}}}|<br/>{{{RW-Star}}}}}


| style="border-top:4px solid #fff; vertical-align:top;position:relative;z-index:5;" width="120" |<span style="width: 100px;height: 100px;display: inline-block;z-index:0;border-radius: 100px;border: 4px solid #fff;border-top-color: transparent;border-left-color: transparent;position: absolute;top: -92px;left: 125px;border-right-color: transparent;"></span> {{#ifeq: {{{RIM-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{RIM-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{RIM-Beh}}}|Win|[[Image:behaviour_left.png|16px]]}}{{#if: {{{RIM|}}}|{{{RIM}}}|&nbsp; }} {{#if:{{{RIM-Star|}}}|<br/>{{{RIM-Star}}}}}
| style="border-top:4px solid #fff; vertical-align:top;position:relative;z-index:3;" width="120" |<span style="width: 100px;height: 100px;display: inline-block;z-index:0;border-radius: 100px;border: 4px solid #fff;border-top-color: transparent;border-left-color: transparent;position: absolute;top: -92px;left: 125px;border-right-color: transparent;"></span> {{#ifeq: {{{RIM-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{RIM-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{RIM-Beh}}}|Win|[[Image:behaviour_left.png|16px]]}}{{#if: {{{RIM|}}}|{{{RIM}}}|&nbsp; }} {{#if:{{{RIM-Star|}}}|<br/>{{{RIM-Star}}}}}


| style="border-top:4px solid #fff; vertical-align:top;z-index:5;position:relative;" width="120" | {{#ifeq: {{{IM-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{IM-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#if: {{{IM|}}}|{{{IM}}}|&nbsp; }} {{#if:{{{IM-Star|}}}|<br/>{{{IM-Star}}}}}
| style="border-top:4px solid #fff; vertical-align:top;z-index:5;position:relative;" width="120" | {{#ifeq: {{{IM-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{IM-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#if: {{{IM|}}}|{{{IM}}}|&nbsp; }} {{#if:{{{IM-Star|}}}|<br/>{{{IM-Star}}}}}
Line 31: Line 31:
| width="120" |
| width="120" |


| width="120" style="vertical-align:top;z-index:5;position:relative;" |<span style="width: 80px;height: 80px;z-index:0;display: inline-block;border-radius: 80px;border: 4px solid #fff;border-bottom-color: transparent;border-left-color: transparent;transform: rotate(-45deg);position: absolute;bottom:-44px;left: 135px;"></span> {{#ifeq: {{{RFW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{RFW-Beh}}}|Win|[[Image:behaviour_left.png|16px]]}}{{#if: {{{RFW|}}}|{{{RFW}}}|&nbsp; }} {{#if:{{{RFW-Star|}}}|<br/>{{{RFW-Star}}}}}
| width="120" style="vertical-align:top;z-index:3;position:relative;" |<span style="width: 80px;height: 80px;z-index:0;display: inline-block;border-radius: 80px;border: 4px solid #fff;border-bottom-color: transparent;border-left-color: transparent;transform: rotate(-45deg);position: absolute;bottom:-44px;left: 135px;"></span> {{#ifeq: {{{RFW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{RFW-Beh}}}|Win|[[Image:behaviour_left.png|16px]]}}{{#if: {{{RFW|}}}|{{{RFW}}}|&nbsp; }} {{#if:{{{RFW-Star|}}}|<br/>{{{RFW-Star}}}}}


| width="120" style="vertical-align:top;z-index:5;position:relative;" | {{#ifeq: {{{FW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#if: {{{FW|}}}|{{{FW}}}|&nbsp; }} {{#if:{{{FW-Star|}}}|<br/>{{{FW-Star}}}}}
| width="120" style="vertical-align:top;z-index:5;position:relative;" | {{#ifeq: {{{FW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#if: {{{FW|}}}|{{{FW}}}|&nbsp; }} {{#if:{{{FW-Star|}}}|<br/>{{{FW-Star}}}}}

Latest revision as of 16:28, 6 May 2020

 
         
         
     


Use like this: (and see example)

{{lineup |
| GK = goal keeper
| RB = right winger defender
| RCD = right defender
| CD = central defender
| LCD = left defender
| LB = left winger defender
| RW = right winger
| RIM = right inner midfield
| IM = central inner midfield
| LIM = left inner midfield
| LW = left winger
| RFW = right forward
| FW = central forward
| LFW = left forward
| RB-Beh = Def
| LB-Beh = Off
| LFW-Beh = Win
| GK-Start = number stars for goal keeper
| RIM = number stars for right inner midfield
}}

Use "*-Beh" for player behaviour according to his position, 
and set value to "Def" for Defensive, "Off" for Offensive, "Mid" for towards middle and "Win" for towards wings
Image are only displayed if variable is set

Use "*-Star" for rating player according to his position,
and set value to ratings templates
Ratings are only displayed if variable is set