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;" | {{#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}}} }} {{#if:{{{RW-Star|}}}|<br/>{{{RW-Star}}}}}
| width="120" style="border-top:4px solid transparent; vertical-align:top;" | {{#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}}} }} {{#if:{{{RW-Star|}}}|<br/>{{{RW-Star}}}}}


| style="border-top:4px solid #fff; vertical-align:top;" width="120" | {{#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;" width="120" |<span style="width: 100px;height: 100px;display: inline-block;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;" 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; 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;" width="120" | {{#ifeq: {{{LIM-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{LIM-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{LIM-Beh}}}|Win|[[Image:behaviour_right.png|16px]]}}{{#if: {{{LIM|}}}|{{{LIM}}}|&nbsp; }} {{#if:{{{LIM-Star|}}}|<br/>{{{LIM-Star}}}}}
| style="border-top:4px solid #fff; vertical-align:top;" width="120" | {{#ifeq: {{{LIM-Beh}}}|Off|[[Image:behaviour_down.png|16px]]}}{{#ifeq: {{{LIM-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#ifeq: {{{LIM-Beh}}}|Win|[[Image:behaviour_right.png|16px]]}}{{#if: {{{LIM|}}}|{{{LIM}}}|&nbsp; }} {{#if:{{{LIM-Star|}}}|<br/>{{{LIM-Star}}}}}
Line 31: Line 31:
| width="120" |
| width="120" |


| width="120" style="vertical-align:top;position: relative;" |<span style="width: 80px;height: 80px;display: inline-block;border-radius: 120px;border: 4px solid #fff;border-bottom-color: transparent;border-left-color: transparent;transform: rotate(-45deg);position: absolute;bottom:-44px;left: 140px;"></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;position: relative;" |<span style="width: 80px;height: 80px;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;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;position:relative;" | {{#ifeq: {{{FW-Beh}}}|Def|[[Image:behaviour_up.png|16px]]}}{{#if: {{{FW|}}}|{{{FW}}}|&nbsp; }} {{#if:{{{FW-Star|}}}|<br/>{{{FW-Star}}}}}

Revision as of 14:40, 27 January 2016

 
         
       
     


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