Difference between revisions of "Template:BWF/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update URLs, document "archive", add category)
imported>Zyxw
(revert to http: for links since this website frequently will not display links using https:)
Line 26: Line 26:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URL:''
 
''URL:''
: <kbd>[https://bwf.tournamentsoftware.com/player-profile/A8B4DEC1-972C-4517-9D80-4FBB300F91ED https://bwf.tournamentsoftware.com/player-profile/{{hilite|A8B4DEC1-972C-4517-9D80-4FBB300F91ED}}]</kbd>
+
: <kbd>[http://bwf.tournamentsoftware.com/player-profile/A8B4DEC1-972C-4517-9D80-4FBB300F91ED http://bwf.tournamentsoftware.com/player-profile/{{hilite|A8B4DEC1-972C-4517-9D80-4FBB300F91ED}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 36: Line 36:
 
=== Named parameters ===
 
=== Named parameters ===
 
''URL:''
 
''URL:''
: <kbd>[https://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217 https://bwf.tournamentsoftware.com/player-profile/{{hilite|8DB65BF4-2593-4835-8ADF-36F6656B4217}}]</kbd>
+
: <kbd>[http://bwf.tournamentsoftware.com/player-profile/8DB65BF4-2593-4835-8ADF-36F6656B4217 http://bwf.tournamentsoftware.com/player-profile/{{hilite|8DB65BF4-2593-4835-8ADF-36F6656B4217}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 60: Line 60:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],
 
       "aliases": ["1"],
       "description": "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.",
+
       "description": "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.",
 
       "type": "string",
 
       "type": "string",
 
       "required": false,
 
       "required": false,
Line 75: Line 75:
 
     "archive": {
 
     "archive": {
 
       "label": "archive",
 
       "label": "archive",
       "description": "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.",
+
       "description": "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.",
 
       "type": "number",
 
       "type": "number",
 
       "required": false
 
       "required": false
Line 101: Line 101:
  
 
== External links ==
 
== External links ==
* [https://bwf.tournamentsoftware.com/ Search page at BWF.tournamentsoftware.com]
+
* [http://bwf.tournamentsoftware.com/ Search page at BWF.tournamentsoftware.com]
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 19:19, 28 October 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 }}
{{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