Template:BWF/doc

From blackwiki
< Template:BWF
Revision as of 19:19, 28 October 2018 by imported>Zyxw (revert to http: for links since this website frequently will not display links using https:)
Jump to navigation Jump to search

Template:Uses Wikidata Template:Tracks Wikidata

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

Using Wikidata property P2729:

{{BWF}}
{{BWF | name= NAME }}
{{BWF | name= NAME | archive= NUMBER }}

Examples

Unnamed parameters

URL:

http://bwf.tournamentsoftware.com/player-profile/A8B4DEC1-972C-4517-9D80-4FBB300F91ED

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

URL:

http://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217

Usage:

{{BWF |id= 8DB65BF4-2593-4835-8ADF-36F6656B4217 |name= Lu Guangzu |archive= 20180720081247 }}

Output:

Lu Guangzu at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". (archive)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

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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 http://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/http://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217.

Numberoptional

Tracking categories

"id" parameter exists
"id" parameter does not exist

See also

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

External links