Template:Soccerbase/doc
此頁面是Template:Soccerbase的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
此Template文档被引用於許多頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
此模板使用Lua语言: |
Template:Soccerbase displays an external link to an association football (soccer) player's page at the Soccerbase website. It is intended for use in the external links section of an article.
Usage
编辑Unnamed parameters:
{{Soccerbase | ID}}
{{Soccerbase | ID| NAME}}
Named parameters:
{{Soccerbase | id= ID}}
{{Soccerbase | id= ID| name= NAME}}
Using Wikidata property 無本頁之數據:
{{Soccerbase}}
{{Soccerbase | name= NAME}}
Examples
编辑Unnamed parameters
编辑Usage
{{Soccerbase | 547| David Beckham}}
Output
- 足球数据库:David Beckham的球员统计数据
Current URL
Former URL
- https://www.soccerbase.com/players_details.sd?playerid=547 (archive)
Named parameters
编辑Usage
{{Soccerbase | id= 31692| name= Andrei Arshavin}}
Output
- 足球数据库:Andrei Arshavin的球员统计数据
Current URL
Former URL
- https://www.soccerbase.com/players_details.sd?playerid=31692 (archive)
No parameters and Wikidata property not defined
编辑Usage
{{Soccerbase}}
Output
- {{Soccerbase}} template missing ID and not present in Wikidata.
Instructions
编辑- Go to the Soccerbase website and search for a player.
- Click on the correct link to go to the player's page. Be sure is the correct right person.
- The page URL should look like https://www.soccerbase.com/players/player.sd?player_id=#####, where "#####" indicates a number.
- Copy ONLY that number
- Add that ID to the Wikidata item about the player, using P2193
- Add to the external links section the text:
- {{Soccerbase}}
Alternative method
编辑- Add to the external links section the text:
- {{Soccerbase|id=#####|name=Name}}
- where "#####" is the number you've copied, and "Name" is the person's name
- Searching for "David Beckham", you'll reach this page: https://www.soccerbase.com/players/player.sd?player_id=547
- Copy "547" and then write: {{Soccerbase|id=547|name=David Beckham}}
Note that, since this will almost certainly go on the external link section, you should add a * before the template text to include it as a list item.
TemplateData
编辑This template displays an external link to an association football (soccer) player's page at the Soccerbase website. It is intended for use in the external links section of an article.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL. Example: 547 is the ID portion of https://www.soccerbase.com/players/player.sd?player_id=547. This parameter is optional if Wikidata property P2193 exists, but required if not.
| 数字 | 可选 |
Name | name 2 | The link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| 字符串 | 可选 |
Tracking categories
编辑- Category:Soccerbase player ID different from Wikidata(0)
- Category:Soccerbase player ID not in Wikidata(0)
- Category:Soccerbase template using non-numeric ID(11)
- Category:Soccerbase template missing ID and not in Wikidata(7)
See also
编辑- Template:Soccerbase manager – Wikidata property 無本頁之數據
- Template:Soccerbase referee – Wikidata property 無本頁之數據
- Template:Soccerbase season
External links
编辑