Pergi ke kandungan

Templat:Football squad/doc

Daripada Wikipedia, ensiklopedia bebas.
This is a documentation subpage for Templat:Football squad.
It contains usage information, categories and other content that is not part of the original templat page.
To view the templat page itself, see Templat:Football squad.

{{Football squad/doc}} is designed to be used within squad list templates (typically placed at the bottom of a player page) in order to make editing and standardisation easier. If you want to use this template first set up a new template for your squad, typically called something like Template:(team name) squad.

Templates useful for formatting the list are:

  • {{football squad2 player}} - takes parameters "no" (number) and "name" (player name).
  • {{football squad lastplayer}} - same as above, but without a trailing bullet mark. Use this only as the last entry on a list.
  • {{football squad manager}} - takes the parameter "name" (manager name) and the optional parameter "title" (defaults to "Manager"). Has no bullet mark afterward, use only as the last entry on a list.
{{football squad
 |name={{subst:PAGENAME}}
 |teamname=Norwich City F.C.
 |bgcolor=yellow
 |textcolor=green
 |bordercolor=green
 |list =<div>
{{football squad2 player|no=1|name=[[Robert Green|Green]]}}
{{football squad2 player|no=2|name=[[Mattieu Louis-Jean|Louis-Jean]]}}
{{football squad2 player|no=3|name=[[Adam Drury|Drury]]}}
{{football squad2 player|no=4|name=[[Jason Shackell|Shackell]]}}
{{football squad2 player|no=5|name=[[Craig Fleming|Fleming]]}}
{{football squad2 player|no=6|name=[[Darren Huckerby|Huckerby]]}}
{{football squad2 player|no=8|name=[[Peter Thorne|Thorne]]}}
{{football squad lastplayer|no=10|name=[[Robert Earnshaw|Earnshaw]]}}
</div>
}}

produces: