模板:Wfb/doc
此页面是Template:Wfb的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板使用Lua语言: |
Template:Wfb displays an external link to an association football (soccer) player's profile at the WorldFootball.net website. It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{Wfb | ID }}
{{Wfb | ID | NAME }}
Named parameters:
{{Wfb | id= ID }}
{{Wfb | id= ID | name= NAME }}
Using Wikidata property P2020:
{{Wfb}}
{{Wfb | name= NAME }}
Examples
Unnamed parameters
Usage:
{{Wfb | gregory-van-der-wiel | Gregory van der Wiel }}
Output:
- worldfootball.net:gregory-van-der-wiel / Gregory van der Wiel 之统计数据 (英文)
URL:
Named parameters
Usage:
{{Wfb | id= kaka_2 | name= Kaká }}
Output:
- worldfootball.net:Kaká之统计数据 (英文)
URL:
No parameters and Wikidata property not defined
Usage:
{{Wfb}}
Output:
- worldfootball.net:Wfb/doc之统计数据 (英文)
TemplateData
This template displays an external link to an association football (soccer) player's profile at the WorldFootball.net website. It is intended for use in the external links section of an article.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: gregory-van-der-wiel is the ID portion of http://www.worldfootball.net/player_summary/gregory-van-der-wiel/. This parameter is optional if Wikidata property P2020 exists, but required if not.
| 字符串 | 可选 |
name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the player's name. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| 字符串 | 可选 |
Tracking categories
- template with ID
- Category:WorldFootball.net template with ID different from Wikidata(0)
- Category:WorldFootball.net template with ID not in Wikidata(0)
- Category:WorldFootball.net template with ID not matching pattern(0)
- template missing ID
See also
External links
- Search page at WorldFootball.net