Template:Line-up 3-5-2: Difference between revisions

From Hattrick
Jump to navigationJump to search
Lleida (talk | contribs)
mNo edit summary
Para Para (talk | contribs)
team_captain and set_pieces not displayed when missing
 
Line 1: Line 1:
<div style="position:relative; float:left; width:{{#if:{{{width|}}}|{{{width|}}}|100%}}; height:450px;">[[File:Field.jpg|link=]]<!--
<div style="position:relative; float:left; height:450px; width:590px;">[[File:Field.jpg|link=|{{{width|590px}}}]]<!--


=== Goalkeeper ===
=== Goalkeeper ===
Line 189: Line 189:
=== Team Captain ===
=== Team Captain ===


--><div style="position:absolute; left:21px; top:353px;">
-->{{#if:{{{team_captain_name|}}}|<div style="position:absolute; left:21px; top:353px;">
{| width="76px" border="0" cellpadding="0" cellspacing="0" style="background:transparent; font-size:11px;"
<table width="76px" border="0" cellpadding="0" cellspacing="0" style="background:transparent; font-size:11px;">
|- style="color:#B3CC93;"
<tr style="color:#B3CC93;"><td align="center">Team Captain</td></tr>
|align="center"|Team Captain
<tr style="color:#fff; background-color:#2E6B0E;"><td colspan="3">[[File:{{{team_captain_image|Unknown Player 2 small.png}}}{{!}}26px]]</td></tr>
|- style="color:#fff; background-color:#2E6B0E;"
<tr style="background-color:#fff;"><td colspan="3" align="center">{{{team_captain_name}}}</td></tr>
|colspan="3"|[[File:{{#if:{{{team_captain_image|}}}|{{{team_captain_image|}}}|Unknown Player 2 small.png}}|26px]]
</table>
|- style="background-color:#fff;"
</div>|&nbsp;}}<!--
|colspan="3" align="center"|{{#if:{{{team_captain_name|}}}|{{{team_captain_name|}}}|&nbsp;}}
|}
</div><!--


=== Set pieces ===
=== Set pieces ===


--><div style="position:absolute; left:139px; top:353px;">
-->{{#if:{{{set_pieces_name|}}}|<div style="position:absolute; left:139px; top:353px;">
{| width="76px" border="0" cellpadding="0" cellspacing="0" style="background:transparent; font-size:11px;"
<table width="76px" border="0" cellpadding="0" cellspacing="0" style="background:transparent; font-size:11px;">
|- style="color:#B3CC93;"
<tr style="color:#B3CC93;"><td align="center">Set pieces</td></tr>
|align="center"|Set pieces
<tr style="color:#fff; background-color:#2E6B0E;"><td colspan="3">[[File:{{{set_pieces_image|Unknown Player 2 small.png}}}{{!}}26px]]</td></tr>
|- style="color:#fff; background-color:#2E6B0E;"
<tr style="background-color:#fff;"><td colspan="3" align="center">{{{set_pieces_name}}}</td></tr>
|colspan="3"|[[File:{{#if:{{{set_pieces_image|}}}|{{{set_pieces_image|}}}|Unknown Player 2 small.png}}|26px]]
</table>
|- style="background-color:#fff;"
</div>|&nbsp;}}</div><noinclude>{{documentation}}
|colspan="3" align="center"|{{#if:{{{set_pieces_name|}}}|{{{set_pieces_name|}}}|&nbsp;}}
==Example==
{| class=toccolours
| {{Line-up 3-5-2
| width=600px
| right_wingback_io = defensive
| right_winger_io = towards middle
| center_midfielder_io = offensive
| left_wingback_io = defensive
| left_winger_io = towards middle
| team_captain_name = left_wingback
| team_captain_image = Bijker.jpg
| set_pieces_name = right_wingback
| set_pieces_image = Bodyless.jpg
}}<br> A typical 3-5-2 AIM
|}
|}
</div></div><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 14:36, 26 August 2020

 GK  
 
 RB  
 
 CD  
 
 LB  
 
 RW  
 
 IM  
 
 IM  
 
 IM  
 
 LW  
 
 FW  
 
 FW  
 
Sub (Keeper)
 
Sub (Defender)
 
Sub (Midfielder)
 
Sub (Forward)
 
Sub (Winger)
 
  

[edit] Template documentation

Usage

{{Line-up 3-5-2
|                       goalkeeper_name =
|                      goalkeeper_image = <!--Just the name of the file, nothing else!-->
|
|                   right_wingback_name =
|                  right_wingback_image = <!--Just the name of the file, nothing else!-->
|                     right_wingback_io = <!--3 options: defensive, offensive or towards middle (if empty, normal)!-->
|
|                 central_defender_name = 
|                central_defender_image = <!--Just the name of the file, nothing else!-->
|                   central_defender_io = <!--1 option: offensive (if empty, normal)!-->
|
|                    left_wingback_name = 
|                   left_wingback_image = <!--Just the name of the file, nothing else!-->
|                      left_wingback_io = <!--3 options: defensive, offensive or towards middle (if empty, normal)!-->
|
|                     right_winger_name = 
|                    right_winger_image = <!--Just the name of the file, nothing else!-->
|                       right_winger_io = <!--3 options: defensive, offensive or towards middle (if empty, normal)!-->
|
|                 right_midfielder_name = 
|                right_midfielder_image = <!--Just the name of the file, nothing else!-->
|                   right_midfielder_io = <!--3 options: defensive, offensive or towards wing (if empty, normal)!-->
|
|                center_midfielder_name = 
|               center_midfielder_image = <!--Just the name of the file, nothing else!-->
|
|                  left_midfielder_name = 
|                 left_midfielder_image = <!--Just the name of the file, nothing else!-->
|                    left_midfielder_io = <!--3 options: defensive, offensive or towards wing (if empty, normal)!-->
|
|                      left_winger_name = 
|                     left_winger_image = <!--Just the name of the file, nothing else!-->
|                        left_winger_io = <!--3 options: defensive, offensive or towards middle (if empty, normal)!-->
|
|                    right_forward_name = 
|                   right_forward_image = <!--Just the name of the file, nothing else!-->
|                      right_forward_io = <!--2 options: defensive or towards wing (if empty, normal)!-->
|
|                     left_forward_name = 
|                    left_forward_image = <!--Just the name of the file, nothing else!-->
|                       left_forward_io = <!--2 options: defensive or towards wing (if empty, normal)!-->
|
|                   sub_goalkeeper_name = 
|                  sub_goalkeeper_image = <!--Just the name of the file, nothing else!-->
|
|                     sub_defender_name = 
|                    sub_defender_image = <!--Just the name of the file, nothing else!-->
|
|                   sub_midfielder_name = 
|                  sub_midfielder_image = <!--Just the name of the file, nothing else!-->
|
|                      sub_forward_name = 
|                     sub_forward_image = <!--Just the name of the file, nothing else!-->
|
|                       sub_winger_name = 
|                      sub_winger_image = <!--Just the name of the file, nothing else!-->
|
|                     team_captain_name = 
|                    team_captain_image = <!--Just the name of the file, nothing else!-->
|
|                       set_pieces_name = 
|                      set_pieces_image = <!--Just the name of the file, nothing else!-->
}}

Example

 GK  
 
 RB  
 
 CD  
 
 LB  
 
 RW  
 
 IM  
 
 IM  
 
 IM  
 
 LW  
 
 FW  
 
 FW  
 
Sub (Keeper)
 
Sub (Defender)
 
Sub (Midfielder)
 
Sub (Forward)
 
Sub (Winger)
 
Team Captain
left_wingback
Set pieces
right_wingback

A typical 3-5-2 AIM