Difference between revisions of "Template:Football squad on pitch/player"
Jump to navigation
Jump to search
Template documentation
imported>Frietjes m |
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">{{flagicon|{{{nat}}}}}</div> | |<div style="position:relative; text-align:center; left:-11px; top:-8px; width:22px; height:15px; line-height:0">{{flagicon|{{{nat}}}}}</div> | ||
| − | }}<div style="position:relative; text-align:center; left: -{{#expr:{{#if:{{{text_width|}}}|{{{text_width}}}|6}}/2 + {{{text_shift|0 | + | }}<div style="position:relative; text-align:center; left: -{{#expr:{{#if:{{{text_width|}}}|{{{text_width}}}|6}}/2 + {{#if:{{{text_shift|}}}|{{{text_shift}}}|0}} round 0}}em; top:-0.65em; width:{{#if:{{{text_width|}}}|{{{text_width}}}|6}}em; line-height:1.4em; white-space:nowrap">{{{name}}}</div> |
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{documentation|content= | {{documentation|content= | ||
Revision as of 16:48, 5 March 2013
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 = 6| text_shift = 0
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |