Template:BWF/doc
![]() | This is a documentation subpage for Template:BWF. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 2,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
Template:BWF displays an external link to a badminton player's profile at BWFbadminton.org, an official website of the Badminton World Federation (BWF). The actual URL links to the BWF.tournamentsoftware.com website. It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{BWF | ID }}
{{BWF | ID | NAME }}
- Named parameters
{{BWF | id= ID }}
{{BWF | id= ID | name= NAME }}
{{BWF | id= ID | name= NAME | archive= NUMBER }}
{{BWF | id= ID | name= NAME | member_id= NUMBER }}
{{BWF | id= ID | name= NAME | archive= NUMBER | member_id= NUMBER }}
- Using Wikidata property P2729: BWF.tournamentsoftware.com player ID
{{BWF}}
{{BWF | name= NAME }}
{{BWF | name= NAME | archive= NUMBER }}
{{BWF | name= NAME | member_id= NUMBER }}
{{BWF | name= NAME | archive= NUMBER | member_id= NUMBER }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{BWF | A8B4DEC1-972C-4517-9D80-4FBB300F91ED | Li Xuerui }}
Named parameters
[edit]- URLs
- https://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217
- https://bwf.tournamentsoftware.com/find.aspx?a=8&oid=209B123F-AA87-41A2-BC3E-CB57133E64CC&q=77427
- Usage
* {{BWF |id= 8DB65BF4-2593-4835-8ADF-36F6656B4217 |name= Lu Guangzu }}
* {{BWF |id= 8DB65BF4-2593-4835-8ADF-36F6656B4217 |name= Lu Guangzu |archive= 20180720081247 }}
* {{BWF |id= 8DB65BF4-2593-4835-8ADF-36F6656B4217 |name= Lu Guangzu |member_id= 77427 }}
* {{BWF |id= 8DB65BF4-2593-4835-8ADF-36F6656B4217 |name= Lu Guangzu |archive= 20180720081247 |member_id= 77427 }}
- Output
-
- Lu Guangzu at BWF.tournamentsoftware.com
- Lu Guangzu at BWF.tournamentsoftware.com (archive)
- Lu Guangzu at BWF.tournamentsoftware.com (alternate link)
- Lu Guangzu at BWF.tournamentsoftware.com (archive, alternate link)
No parameters and Wikidata property not defined
[edit]- Usage
* {{BWF}}
- Output
-
- {{BWF}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for BWF
This template displays an external link to a badminton player's profile at BWFbadminton.org, an official website of the Badminton World Federation (BWF). The actual URL links to the BWF.tournamentsoftware.com website. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID portion of the URL, such as A8B4DEC1-972C-4517-9D80-4FBB300F91ED in https://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217. This parameter is optional if Wikidata property P2729 exists, but required if not.
| String | optional |
name | name 2 | The link text, which should be the name of the badminton player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(badminton)".
| String | optional |
archive | archive | A number representing the date/time in an Internet Archive URL, such as 20180720081247 in https://web.archive.org/web/20180720081247/https://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217. | Number | optional |
member_id | member_id | The ID number at the end of alternate link for the same badminton player, such as 77427 in https://bwf.tournamentsoftware.com/find.aspx?a=8&oid=209B123F-AA87-41A2-BC3E-CB57133E64CC&q=77427. | Number | optional |
Tracking categories
[edit]- template with ID
- Category:BWF template with ID different from Wikidata (21)
- Category:BWF template with ID not in Wikidata (2)
- template missing ID
See also
[edit]- {{BWF2}} – generates an external link to a player's profile at BWFbadminton.com
External links
[edit]