Difference between revisions of "Template:Infobox darts team"

From blackwiki
Jump to navigation Jump to search
imported>JRRobinson
(Undid revision 987561693 by JRRobinson (talk) Not quite working)
imported>DLManiac
(Update for 3 sets of jerseys)
Line 29: Line 29:
  
 
| header9    = {{#if:{{{uniforms|}}}|Jerseys|}}
 
| header9    = {{#if:{{{uniforms|}}}|Jerseys|}}
| data10      = <div style="width: 100px; margin: 0 auto; padding: 0;">
+
| data10      =<tr><td class="toccolours" style="padding: 0; background: #ffffff; text-align: center;" colspan="2">
<div style="position: relative; left: 0px; top: 0px; width: 100px; height: 60px; margin: 0 auto; padding: 0; border:1px solid lightgray;">
+
<table style="width:100%; text-align:center;">
 +
<tr>
 +
<!--Oldest jersey-->
 +
{{#if:{{{body_older|}}}{{{leftarm_older|}}}{{{rightarm_older|}}}|
 +
<td style="text-align:center;">
 +
<div style="position: relative; left: 0px; top: 0px; width: 100px; height: 60px; margin: 0 auto; padding: 0;">
 +
<!-- Left arm -->
 +
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px; background-color: #{{{leftarm_older}}};"></div>
 +
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px;">[[File:Kit left arm.svg|top|link=|{{#if: {{{pattern_la|}}}|alt=|alt={{{alt|}}}{{!}}Team colours}}]]</div>
 +
<!-- Body --->
 +
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px; background-color: #{{{body_older}}};"></div>
 +
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px;">[[File:Kit body.svg|top|link=|alt=]]</div>
 +
<!-- Right arm -->
 +
<div style="position: absolute; left: 69px; top: 0px; width: 31px; height: 59px; background-color: #{{{rightarm_older}}};"></div>
 +
<div style="position: absolute; left: 69px; top: 0px; width: 31px; height: 59px;">[[File:Kit right arm.svg|top|link=|alt=]]</div>
 +
</div>
 +
<!-- Title -->
 +
{{#if: {{{title_older|}}}|<div style="padding-top: 0.6em; text-align: center;">'''{{{title_older}}}'''</div>|}}
 +
</div></div></td>}}
 +
<!--old jersey-->
 +
{{#if:{{{body_old|}}}{{{leftarm_old|}}}{{{rightarm_old|}}}|
 +
<td style="text-align:center;">
 +
<div style="position: relative; left: 0px; top: 0px; width: 100px; height: 60px; margin: 0 auto; padding: 0;">
 +
<!-- Left arm -->
 +
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px; background-color: #{{{leftarm_old}}};"></div>
 +
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px;">[[File:Kit left arm.svg|top|link=|{{#if: {{{pattern_la|}}}|alt=|alt={{{alt|}}}{{!}}Team colours}}]]</div>
 +
<!-- Body --->
 +
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px; background-color: #{{{body_old}}};"></div>
 +
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px;">[[File:Kit body.svg|top|link=|alt=]]</div>
 +
<!-- Right arm -->
 +
<div style="position: absolute; left: 69px; top: 0px; width: 31px; height: 59px; background-color: #{{{rightarm_old}}};"></div>
 +
<div style="position: absolute; left: 69px; top: 0px; width: 31px; height: 59px;">[[File:Kit right arm.svg|top|link=|alt=]]</div>
 +
</div>
 +
<!-- Title -->
 +
{{#if: {{{title_old|}}}|<div style="padding-top: 0.6em; text-align: center;">'''{{{title_old}}}'''</div>|}}
 +
</div></div></td>}}
 +
<!--Current Jersey-->
 +
<td style="text-align:center;">
 +
<div style="width: 100px; margin: 0 auto; padding: 0;">
 +
<div style="position: relative; left: 0px; top: 0px; width: 100px; height: 60px; margin: 0 auto; padding: 0;">
 
<!-- Left arm -->
 
<!-- Left arm -->
 
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px; background-color: #{{{leftarm}}};"></div>
 
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px; background-color: #{{{leftarm}}};"></div>
 
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px;">[[File:Kit left arm.svg|top|link=|{{#if: {{{pattern_la|}}}|alt=|alt={{{alt|}}}{{!}}Team colours}}]]</div>
 
<div style="position: absolute; left: 0px; top: 0px; width: 31px; height: 59px;">[[File:Kit left arm.svg|top|link=|{{#if: {{{pattern_la|}}}|alt=|alt={{{alt|}}}{{!}}Team colours}}]]</div>
<!-- Body --->
+
<!-- Body -->
 
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px; background-color: #{{{body}}};"></div>
 
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px; background-color: #{{{body}}};"></div>
 
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px;">[[File:Kit body.svg|top|link=|alt=]]</div>
 
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px;">[[File:Kit body.svg|top|link=|alt=]]</div>
Line 44: Line 83:
 
{{#if: {{{title|}}}|<div style="padding-top: 0.6em; text-align: center;">'''{{{title}}}'''</div>|}}
 
{{#if: {{{title|}}}|<div style="padding-top: 0.6em; text-align: center;">'''{{{title}}}'''</div>|}}
 
</div>
 
</div>
 
+
</td>
 +
</tr>
 +
</table></td></tr>
 
| belowstyle = text-align:left
 
| belowstyle = text-align:left
 
| below      = {{{footnotes|}}}
 
| below      = {{{footnotes|}}}
 
}}<noinclude>{{documentation}}<!-- place categories on the /doc sub-page, not here --></noinclude>
 
}}<noinclude>{{documentation}}<!-- place categories on the /doc sub-page, not here --></noinclude>

Revision as of 00:47, 8 November 2020

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox darts team
| name           = {{3 letter country code}}
| best_perf      =
| members        = [[player 1 link|player 1 name]] {{PDC Rankings|player 1 name|nochange=1|nodate=1|par=1}} <br/> [[player 2 link|player 2 name]] {{PDC Rankings|player 2 name|nochange=1|nodate=1|par=1}}
| record         =
| uniforms       = (yes to include, blank to ignore)
| leftarm        =
| body           =
| rightarm       =
| title          =
| leftarm_old    =
| body_old       =
| rightarm_old   =
| title_old      =
}}