Difference between revisions of "Template:BWF/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update template data)
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 24: Line 24:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://bwf.tournamentsoftware.com/profile/default.aspx?id=A8B4DEC1-972C-4517-9D80-4FBB300F91ED http://bwf.tournamentsoftware.com/profile/default.aspx?id={{hilite|A8B4DEC1-972C-4517-9D80-4FBB300F91ED}}]</tt>
+
: <kbd>[http://bwf.tournamentsoftware.com/profile/default.aspx?id=A8B4DEC1-972C-4517-9D80-4FBB300F91ED http://bwf.tournamentsoftware.com/profile/default.aspx?id={{hilite|A8B4DEC1-972C-4517-9D80-4FBB300F91ED}}]</kbd>
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | A8B4DEC1-972C-4517-9D80-4FBB300F91ED | Li Xuerui }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | A8B4DEC1-972C-4517-9D80-4FBB300F91ED | Li Xuerui }}</code>
Line 32: Line 32:
 
=== Named parameters ===
 
=== Named parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://bwf.tournamentsoftware.com/profile/default.aspx?id=296B69A5-3C25-4E3D-964E-DDFA46A1333A http://bwf.tournamentsoftware.com/profile/default.aspx?id={{hilite|296B69A5-3C25-4E3D-964E-DDFA46A1333A}}]</tt>
+
: <kbd>[http://bwf.tournamentsoftware.com/profile/default.aspx?id=296B69A5-3C25-4E3D-964E-DDFA46A1333A http://bwf.tournamentsoftware.com/profile/default.aspx?id={{hilite|296B69A5-3C25-4E3D-964E-DDFA46A1333A}}]</kbd>
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 296B69A5-3C25-4E3D-964E-DDFA46A1333A |name= Lin Dan }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 296B69A5-3C25-4E3D-964E-DDFA46A1333A |name= Lin Dan }}</code>

Revision as of 05:30, 5 August 2018

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

Using Wikidata property P2729:

{{BWF}}
{{BWF | name= NAME }}

Examples

Unnamed parameters

URL:

http://bwf.tournamentsoftware.com/profile/default.aspx?id=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/profile/default.aspx?id=296B69A5-3C25-4E3D-964E-DDFA46A1333A

Usage:

{{BWF |id= 296B69A5-3C25-4E3D-964E-DDFA46A1333A |name= Lin Dan }}

Output:

Lin Dan at BWF.tournamentsoftware.comScript error: No such module "EditAtWikidata". 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/profile/default.aspx?id=A8B4DEC1-972C-4517-9D80-4FBB300F91ED. 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

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