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

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Football squad on pitch/player": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed acce...)
imported>S.A. Julio
m (call template directly)
 
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|22x15px}}}}}</div>
+
|<div style="position:relative; text-align:center; left:-11px; top:-8px; width:22px; height:15px; line-height:0">{{flagicon|{{{nat}}}|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>

Latest revision as of 16:44, 3 December 2019

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