Jump to content

Template:National squad: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
removing left-side image, as discussed in talk.
TFD closed as merge (XFDcloser)
 
(30 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:national squad|main}}</includeonly><noinclude>{{documentation}}</noinclude>
{{navbox
|name={{{name}}}
|bodystyle=width: 80%; margin: 0.5em auto; text-align: center; clear: both;
|titlestyle=background: {{{bg|transparent}}}; border: 1px solid #aaa;
|image={{flagicon|{{{country}}}|{{{flagvar|}}}|size=50px}}
|title= [[{{{team link|{{{country}}} {{#switch:{{{gender|}}}|female=women's}} national football team}}}|<span style="color: {{{fg|inherit}}};">{{{title|{{{country}}} squad}}}</span>]] <span style="color: {{{fg|inherit}}};">-</span> [[{{{comp link|{{{comp}}}}}}|<span style="color: {{{fg}}};">{{{comp}}}</span>]]
|list1= {{#if:{{{list|}}}| {{{list}}} |<small>1</small>&nbsp;{{{p1}}}&nbsp;• <small>2</small>&nbsp;{{{p2}}}&nbsp;• <small>3</small>&nbsp;{{{p3}}}&nbsp;• <small>4</small>&nbsp;{{{p4}}}&nbsp;• <small>5</small>&nbsp;{{{p5}}}&nbsp;• <small>6</small>&nbsp;{{{p6}}}&nbsp;• <small>7</small>&nbsp;{{{p7}}}&nbsp;• <small>8</small>&nbsp;{{{p8}}}&nbsp;• <small>9</small>&nbsp;{{{p9}}}&nbsp;• <small>10</small>&nbsp;{{{p10}}}{{#if: {{{p11|<noinclude>-</noinclude>}}} |&nbsp;• <small>11</small>&nbsp;{{{p11}}}}}{{#if: {{{p12|<noinclude>-</noinclude>}}} |&nbsp;• <small>12</small>&nbsp;{{{p12}}}}}{{#if: {{{p13|<noinclude>-</noinclude>}}} |&nbsp;• <small>13</small>&nbsp;{{{p13}}}}}{{#if: {{{p14|<noinclude>-</noinclude>}}} |&nbsp;• <small>14</small>&nbsp;{{{p14}}}}}{{#if: {{{p15|<noinclude>-</noinclude>}}} |&nbsp;• <small>15</small>&nbsp;{{{p15}}}}}{{#if: {{{p16|<noinclude>-</noinclude>}}} |&nbsp;• <small>16</small>&nbsp;{{{p16}}}}}{{#if: {{{p17|<noinclude>-</noinclude>}}} |&nbsp;• <small>17</small>&nbsp;{{{p17}}}}}{{#if: {{{p18|<noinclude>-</noinclude>}}} |&nbsp;• <small>18</small>&nbsp;{{{p18}}}}}{{#if: {{{p19|<noinclude>-</noinclude>}}} |&nbsp;• <small>19</small>&nbsp;{{{p19}}}}}{{#if: {{{p20|<noinclude>-</noinclude>}}} |&nbsp;• <small>20</small>&nbsp;{{{p20}}}}}{{#if: {{{p21|<noinclude>-</noinclude>}}} |&nbsp;• <small>21</small>&nbsp;{{{p21}}}}}{{#if: {{{p22|<noinclude>-</noinclude>}}} |&nbsp;• <small>22</small>&nbsp;{{{p22}}}}}{{#if: {{{p23|<noinclude>-</noinclude>}}} |&nbsp;• <small>23</small>&nbsp;{{{p23}}}}}{{#if: {{{coach|<noinclude>-</noinclude>}}} |&nbsp;• <small>Coach:</small>&nbsp;{{{coach}}}}} }}<br/><small>{{{note|}}}</small>
}}<noinclude>
==Usage==
<pre>{{National squad
| name = {{subst:PAGENAME}} (this allows the view/discuss/edit links to work)
| bg = background colour (default = transparent)
| fg = foreground colour (default = inherit)
| country = country name used for flag template
| flagvar = flag variation (e.g. historical)
| team link = link to team's article (default = "''country'' national football team")
| title = main title (default = "''country'' squad")
| comp = competition
| comp link = link to competition page (default = ''comp'')
| gender = team gender (female adds women's to the football team link)
| p1 = player 1
| p2 = player 2
| p3 = player 3
| p4 = player 4
| p5 = player 5
| p6 = player 6
| p7 = player 7
| p8 = player 8
| p9 = player 9
| p10 = player 10
| p11 = player 11
| p12 = player 12
| p13 = player 13
| p14 = player 14
| p15 = player 15
| p16 = player 16 (''optional'')
| p17 = player 17 (''optional'')
| p18 = player 18 (''optional'')
| p19 = player 19 (''optional'')
| p20 = player 20 (''optional'')
| p21 = player 21 (''optional'')
| p22 = player 22 (''optional'')
| p23 = player 23 (''optional'')
| coach = coach (''optional'')
| note = a free-form note placed on a separate line after the rest of the content (''optional'')
}}</pre>

If one wishes to use a hand-crafted list of players instead of the one built into this template, for example to provide different jersey numbers, use the parameter "list" instead. This overrides all of the player parameters and the coach parameter. One may use the templates {{tl|football squad2 player}} and {{tl|cricket squad2 coach}} to format this list.

<pre>{{National squad
| name = {{subst:PAGENAME}} (this allows the view/discuss/edit links to work)
| bg = background colour (default = transparent)
| fg = foreground colour (default = inherit)
| country = country name used for flag template
| flagvar = flag variation (e.g. historical)
| team link = link to team's article (default = "''country'' national football team")
| title = main title (default = "''country'' squad")
| comp = competition
| comp link = link to competition page (default = ''comp'')
| list = free-form list of players and coaches.
| note = a free-form note placed on a separate line after the rest of the content (''optional'')
}}</pre>

</noinclude>

Latest revision as of 23:27, 27 August 2020