Template:National squad: Difference between revisions
m Changed protection level of Template:National squad: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Block all non-admin users] (indefinite)) |
m edits per talk page request |
||
Line 10: | Line 10: | ||
|list1= {{#if:{{{list|}}}| {{{list}}} | |
|list1= {{#if:{{{list|}}}| {{{list}}} | |
||
* <small>1</small> |
* <small>1</small> <span class="vcard agent"><span class="fn">{{{p1}}}</span></span> |
||
* <small>2</small> |
* <small>2</small> <span class="vcard agent"><span class="fn">{{{p2}}}</span></span> |
||
* <small>3</small> |
* <small>3</small> <span class="vcard agent"><span class="fn">{{{p3}}}</span></span> |
||
* <small>4</small> |
* <small>4</small> <span class="vcard agent"><span class="fn">{{{p4}}}</span></span> |
||
* <small>5</small> |
* <small>5</small> <span class="vcard agent"><span class="fn">{{{p5}}}</span></span> |
||
* <small>6</small> |
* <small>6</small> <span class="vcard agent"><span class="fn">{{{p6}}}</span></span> |
||
* <small>7</small> |
* <small>7</small> <span class="vcard agent"><span class="fn">{{{p7}}}</span></span> |
||
* <small>8</small> |
* <small>8</small> <span class="vcard agent"><span class="fn">{{{p8}}}</span></span> |
||
* <small>9</small> |
* <small>9</small> <span class="vcard agent"><span class="fn">{{{p9}}}</span></span> |
||
* <small>10</small> |
* <small>10</small> <span class="vcard agent"><span class="fn">{{{p10}}}</span></span><!-- |
||
-->{{#if: {{{p11|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p11|<noinclude>-</noinclude>}}} | |
||
* <small>11</small> |
* <small>11</small> <span class="vcard agent"><span class="fn">{{{p11}}}</span></span>}}<!-- |
||
-->{{#if: {{{p12|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p12|<noinclude>-</noinclude>}}} | |
||
* <small>12</small> |
* <small>12</small> <span class="vcard agent"><span class="fn">{{{p12}}}</span></span>}}<!-- |
||
-->{{#if: {{{p13|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p13|<noinclude>-</noinclude>}}} | |
||
* <small>13</small> |
* <small>13</small> <span class="vcard agent"><span class="fn">{{{p13}}}</span></span>}}<!-- |
||
-->{{#if: {{{p14|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p14|<noinclude>-</noinclude>}}} | |
||
* <small>14</small> |
* <small>14</small> <span class="vcard agent"><span class="fn">{{{p14}}}</span></span>}}<!-- |
||
-->{{#if: {{{p15|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p15|<noinclude>-</noinclude>}}} | |
||
* <small>15</small> |
* <small>15</small> <span class="vcard agent"><span class="fn">{{{p15}}}</span></span>}}<!-- |
||
-->{{#if: {{{p16|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p16|<noinclude>-</noinclude>}}} | |
||
* <small>16</small> |
* <small>16</small> <span class="vcard agent"><span class="fn">{{{p16}}}</span></span>}}<!-- |
||
-->{{#if: {{{p17|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p17|<noinclude>-</noinclude>}}} | |
||
* <small>17</small> |
* <small>17</small> <span class="vcard agent"><span class="fn">{{{p17}}}</span></span>}}<!-- |
||
-->{{#if: {{{p18|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p18|<noinclude>-</noinclude>}}} | |
||
* <small>18</small> |
* <small>18</small> <span class="vcard agent"><span class="fn">{{{p18}}}</span></span>}}<!-- |
||
-->{{#if: {{{p19|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p19|<noinclude>-</noinclude>}}} | |
||
* <small>19</small> |
* <small>19</small> <span class="vcard agent"><span class="fn">{{{p19}}}</span></span>}}<!-- |
||
-->{{#if: {{{p20|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p20|<noinclude>-</noinclude>}}} | |
||
* <small>20</small> |
* <small>20</small> <span class="vcard agent"><span class="fn">{{{p20}}}</span></span>}}<!-- |
||
-->{{#if: {{{p21|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p21|<noinclude>-</noinclude>}}} | |
||
* <small>21</small> |
* <small>21</small> <span class="vcard agent"><span class="fn">{{{p21}}}</span></span>}}<!-- |
||
-->{{#if: {{{p22|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p22|<noinclude>-</noinclude>}}} | |
||
* <small>22</small> |
* <small>22</small> <span class="vcard agent"><span class="fn">{{{p22}}}</span></span>}}<!-- |
||
-->{{#if: {{{p23|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{p23|<noinclude>-</noinclude>}}} | |
||
* <small>23</small> |
* <small>23</small> <span class="vcard agent"><span class="fn">{{{p23}}}</span></span>}}<!-- |
||
-->{{#if: {{{coach|<noinclude>-</noinclude>}}} | |
-->{{#if: {{{coach|<noinclude>-</noinclude>}}} | |
||
* <span class="vcard agent"><small class="role">Coach:</small> <span class="fn">{{{coach}}}</span></span>}}<!-- |
* <span class="vcard agent"><small class="role">Coach:</small> <span class="fn">{{{coach}}}</span></span>}}<!-- |
Revision as of 09:21, 15 May 2014
This template uses Lua: |
Usage
Lua error in Module:Navbar at line 58: Invalid title {{{name}}}.
{{National squad
| name = {{subst:PAGENAME}} (this allows the view/talk/edit links to work)
| bg = background colour (default = transparent)
| fg = foreground colour (default = inherit)
| bordercolor = border colour (default = #aaa)
| sport = sport played (default = football)
| 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 (''optional'')
| p12 = player 12 (''optional'')
| p13 = player 13 (''optional'')
| p14 = player 14 (''optional'')
| p15 = player 15 (''optional'')
| 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'')
}}
To change the coach label to manager, use |coach_type=Manager
.
Alternatives to avoid Wikipedia's Post-expand include size limit
Pages with many navboxes may come close to or exceed Wikipedia's Post-expand include size limit. For this reason, consider using Module:National squad directly by replacing {{national squad
with {{#invoke:national squad|main
.
Blank template
{{National squad
| name = {{subst:PAGENAME}}
| bg =
| fg =
| bordercolor =
| sport =
| country =
| flagvar =
| team link =
| title =
| comp =
| comp link =
| gender =
| p1 =
| p2 =
| p3 =
| p4 =
| p5 =
| p6 =
| p7 =
| p8 =
| p9 =
| p10 =
| p11 =
| p12 =
| p13 =
| p14 =
| p15 =
| p16 =
| p17 =
| p18 =
| p19 =
| p20 =
| p21 =
| p22 =
| p23 =
| coach =
| note =
}}
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 {{football squad2 player}} and {{cricket squad2 coach}} to format this list.
{{National squad
| name = {{subst:PAGENAME}} (this allows the view/talk/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'')
}}
Tracking category
Microformat
- Subtemplates
- Use {{Start date and age}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.
- Use {{URL}} for an organisation's URL.
Please do not remove instances of these subtemplates.
- Classes used
The HTML classes of this microformat include:
- adr
- agent
- category
- country-name
- extended-address
- fn
- geo
- label
- latitude
- locality
- longitude
- nickname
- note
- org
- region
- street-address
- url
- vcard
nor collapse nested elements which use them.
See also
- {{Football squad}}