模板:Football squad

被永久保护的模板
维基百科,自由的百科全书
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

使用方法

{{Football squad}} 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.

  • name:需使用模板的名称,不含Template:。此栏用作显示左上角的模板维护连结。
  • teamname:球队名称一栏请使用该球会在维基百科条目所使用的名称,以英格兰足球会“西汉姆联足球俱乐部”(West Ham)为例,应使用“西汉姆联足球俱乐部”避免连结出现错误。
  • title:球队显示名称,name一栏已为title一栏提供连结,title一栏需使用球队的常用名称。球队名称可加入手工转换标签-{zh-hans:簡體字譯名;zh-hant:繁體字譯名;zh-hk:香港譯名;zh-tw:台灣譯名;zh-sg:新馬譯名;zh-mo:香港譯名;}-以作用词处理。

球员条目连结应使用[[球員條目名稱|-{zh-hans:簡體字譯名;zh-hant:繁體字譯名;zh-hk:香港譯名;zh-tw:台灣譯名;zh-sg:新馬譯名;zh-mo:香港譯名;}-的方法处理。

Templates useful for formatting the list are:

  • {{football squad2 player}} - takes parameters "no" (number) and "name" (player name).
  • {{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=利物浦足球俱乐部
 |title=利物浦
 |bgcolor=red
 |textcolor=white
 |bordercolor=gold
 |list=<div>
{{football squad2 player|no=2|name=[[安德雷亚·多塞纳|多塞纳]]}}
{{football squad2 player|no=3|name=[[史蒂夫·芬南|芬南]]}}
{{football squad2 player|no=4|name=[[萨米·海皮亚|海皮亚]]}}
{{football squad2 player|no=5|name=[[丹尼尔·阿格|阿格]]}}
{{football squad2 player|no=8|name=[[史蒂文·杰拉德|杰拉德]]}}
{{football squad2 player|no=9|name=[[费尔南多·托雷斯|费尔南多·托雷斯]]}}
{{football squad manager|name=[[拉法埃尔·贝尼特斯|贝尼特斯]]}}
</div>}}

效果: