Difference between revisions of "Template:Football squad/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
m (org)
imported>Zyxw
(Add text to explanation of {{football squad lastplayer}} and {{football squad manager}}. Update example to include manager, as most of the templates include this.)
Line 11: Line 11:
  
 
*{{tl|football squad2 player}} - takes parameters "no" (number) and "name" (player name).
 
*{{tl|football squad2 player}} - takes parameters "no" (number) and "name" (player name).
*{{tl|football squad lastplayer}} - same as above, but without a trailing bullet mark. Use this only as the last entry on a list.
+
 
*{{tl|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.
+
*{{tl|football squad lastplayer}} - same as above, but without a trailing bullet mark. Use this only as the last entry on a list. Don't use this if ending list with manager name using {{tl|football squad manager}}.
 +
 
 +
*{{tl|football squad manager}} - takes the parameter "name" (manager name) and the optional parameter "title" (defaults to ''Manager'', other commonly assigned values are ''Coach'' and ''Head Coach''). Has no bullet mark afterward, use only as the last entry on a list.
  
 
<pre>
 
<pre>
 
{{football squad
 
{{football squad
|name={{subst:PAGENAME}}
+
| name = {{subst:PAGENAME}}
|teamname=Norwich City F.C.
+
| teamname = Norwich City F.C.
|bgcolor=yellow
+
| bgcolor = yellow
|textcolor=green
+
| textcolor = green
|bordercolor=green
+
| bordercolor = green
|list =<div>
+
| list = <div>
 
{{football squad2 player|no=1|name=[[Robert Green|Green]]}}
 
{{football squad2 player|no=1|name=[[Robert Green|Green]]}}
 
{{football squad2 player|no=2|name=[[Mattieu Louis-Jean|Louis-Jean]]}}
 
{{football squad2 player|no=2|name=[[Mattieu Louis-Jean|Louis-Jean]]}}
Line 29: Line 31:
 
{{football squad2 player|no=6|name=[[Darren Huckerby|Huckerby]]}}
 
{{football squad2 player|no=6|name=[[Darren Huckerby|Huckerby]]}}
 
{{football squad2 player|no=8|name=[[Peter Thorne|Thorne]]}}
 
{{football squad2 player|no=8|name=[[Peter Thorne|Thorne]]}}
{{football squad lastplayer|no=10|name=[[Robert Earnshaw|Earnshaw]]}}
+
{{football squad2 player|no=10|name=[[Robert Earnshaw|Earnshaw]]}}
 +
{{football squad manager|name=[[Glenn Roeder|Roeder]]}}
 
</div>
 
</div>
 
}}
 
}}
Line 37: Line 40:
  
 
{{football squad
 
{{football squad
|name=Football squad/doc
+
| name = Football squad/doc
|teamname=Norwich City F.C.
+
| teamname = Norwich City F.C.
|bgcolor=yellow
+
| bgcolor = yellow
|textcolor=green
+
| textcolor = green
|bordercolor=green
+
| bordercolor = green
|list =<div>
+
| list = <div>
 
{{football squad2 player|no=1|name=[[Robert Green|Green]]}}
 
{{football squad2 player|no=1|name=[[Robert Green|Green]]}}
 
{{football squad2 player|no=2|name=[[Mattieu Louis-Jean|Louis-Jean]]}}
 
{{football squad2 player|no=2|name=[[Mattieu Louis-Jean|Louis-Jean]]}}
Line 50: Line 53:
 
{{football squad2 player|no=6|name=[[Darren Huckerby|Huckerby]]}}
 
{{football squad2 player|no=6|name=[[Darren Huckerby|Huckerby]]}}
 
{{football squad2 player|no=8|name=[[Peter Thorne|Thorne]]}}
 
{{football squad2 player|no=8|name=[[Peter Thorne|Thorne]]}}
{{football squad lastplayer|no=10|name=[[Robert Earnshaw|Earnshaw]]}}
+
{{football squad2 player|no=10|name=[[Robert Earnshaw|Earnshaw]]}}
 +
{{football squad manager|name=[[Glenn Roeder|Roeder]]}}
 
</div>
 
</div>
 
}}
 
}}

Revision as of 13:26, 28 September 2008

Template:Template doc page

Usage

{{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 squad manager}} - takes the parameter "name" (manager name) and the optional parameter "title" (defaults to Manager, other commonly assigned values are Coach and Head Coach). 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 squad2 player|no=10|name=[[Robert Earnshaw|Earnshaw]]}}
{{football squad manager|name=[[Glenn Roeder|Roeder]]}}
</div>
}}

produces:

Microformat

Template:UF-hcard-org