Template:BWF/doc

From MOASSpedia
Jump to navigation Jump to search

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

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}}
{{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

URL
https://bwf.tournamentsoftware.com/player-profile/A8B4DEC1-972C-4517-9D80-4FBB300F91ED
Usage
* {{BWF | A8B4DEC1-972C-4517-9D80-4FBB300F91ED | Li Xuerui }}
Output

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

No parameters and Wikidata property not defined

Usage
* {{BWF}}
Output
  • BWF/doc at BWF.tournamentsoftware.comLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this 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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P2729
Stringoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional
archivearchive

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.

Numberoptional
member_idmember_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.

Numberoptional

Tracking categories

template with ID
template missing ID

See also

  • {{BWF2}} – generates an external link to a player's profile at BWFbadminton.com

External links