Template:BWF/doc
This is a documentation subpage for Template:BWF. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
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.
Contents
Usage
- 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 Template:Property
{{BWF}}
{{BWF | name= NAME }}
{{BWF | name= NAME | archive= NUMBER }}
{{BWF | name= NAME | member_id= NUMBER }}
{{BWF | name= NAME | archive= NUMBER | member_id= NUMBER }}
Examples
Unnamed parameters
- Usage
* {{BWF | A8B4DEC1-972C-4517-9D80-4FBB300F91ED | Li Xuerui }}
- Output
-
- Li Xuerui at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
Named parameters
- 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.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
- Lu Guangzu at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". (archive)Template:WikidataCheck
- Lu Guangzu at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". (alternative link)Template:WikidataCheck
- Lu Guangzu at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". (archive, alternative link)Template:WikidataCheck
No parameters and Wikidata property not defined
- Usage
* {{BWF}}
- Output
-
- Template:PAGENAMEBASE at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
TemplateData
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" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: A8B4DEC1-972C-4517-9D80-4FBB300F91ED is the ID portion of 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 "name" parameter (or unnamed parameter "2") may be used to specify 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 | 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 "member_id" parameter may be used to display an alternative link for the same badminton player. When viewing the main link, this number will be displayed within parentheses next to the player's name, such as "LU Guangzu (77427)". Example: "member_id=77427" will add an alternative link to https://bwf.tournamentsoftware.com/find.aspx?a=8&oid=209B123F-AA87-41A2-BC3E-CB57133E64CC&q=77427. | Number | optional |
Tracking categories
- template with ID
- Category:BWF template with ID different from Wikidata (0)
- Category:BWF template with ID not in Wikidata (0)
- template missing ID
See also
- {{BWF2}} – generates an external link to a player's profile at BWFbadminton.com
External links