Difference between revisions of "Template:Football squad on pitch/player"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
<includeonly><div style="position:absolute; z-index:2; top:{{{y|50}}}%; left:{{{x|50}}}%; height: 0; width: 0; margin: 0; padding: 0;">{{#if:{{{nat|}}}
 
<includeonly><div style="position:absolute; z-index:2; top:{{{y|50}}}%; left:{{{x|50}}}%; height: 0; width: 0; margin: 0; padding: 0;">{{#if:{{{nat|}}}
|<div style="position:relative; text-align:center; left:-11px; top:-8px; width:22px; height:15px; line-height:0">{{country data {{{nat}}}|flagicon/core|size={{{flag_size|}}}}}</div>
+
|<div style="position:relative; text-align:center; left:-11px; top:-8px; width:22px; height:15px; line-height:0">{{country data {{{nat}}}|flagicon/core|size={{{flag_size|22x15px}}}}}</div>
 
}}<div style="position:relative; text-align:center; left: -{{#expr:{{#if:{{{text_width|}}}|{{{text_width}}}|10}}/2 + {{#if:{{{text_shift|}}}|{{{text_shift}}}|0}} round 0}}em; top:-0.65em; width:{{#if:{{{text_width|}}}|{{{text_width}}}|10}}em; line-height:1.4em; white-space:nowrap">{{{name}}}</div>
 
}}<div style="position:relative; text-align:center; left: -{{#expr:{{#if:{{{text_width|}}}|{{{text_width}}}|10}}/2 + {{#if:{{{text_shift|}}}|{{{text_shift}}}|0}} round 0}}em; top:-0.65em; width:{{#if:{{{text_width|}}}|{{{text_width}}}|10}}em; line-height:1.4em; white-space:nowrap">{{{name}}}</div>
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>

Revision as of 20:32, 5 March 2013

Template documentation

This template is used by {{football squad on pitch}} to generate the individual player flags and names.

Usage

{{football squad on pitch/player| x = | y = | nat = | name = }}

Additional parameters

| text_width = 10| text_shift = 0