Difference between revisions of "Template:BWF2/doc"
imported>Zyxw (update URL and examples) |
imported>Zyxw (add category) |
||
| Line 102: | Line 102: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
| + | [[Category:Badminton templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
[[Category:Sports governing body external link templates]] | [[Category:Sports governing body external link templates]] | ||
| − | |||
[[Category:External link templates using Wikidata]] | [[Category:External link templates using Wikidata]] | ||
| + | [[Category:External link templates with archive parameter]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 21:05, 28 February 2019
| This is a documentation subpage for Template:BWF2. 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:BWF2 displays an external link to a badminton player's profile at BWFbadminton.com, an official website of the Badminton World Federation (BWF). It is intended for use in the external links section of an article.
Contents
Usage
- Unnamed parameters
{{BWF2 | ID }}{{BWF2 | ID | NAME }}
- Named parameters
{{BWF2 | id= ID }}{{BWF2 | id= ID | name= NAME }}
- Using Wikidata property Template:Property
{{BWF2}}{{BWF2 | name= NAME }}
Examples
Unnamed parameters
- Usage
* {{BWF2 | 64643 | Li Xuerui }}* {{BWF2 | 64643/li-xuerui | Li Xuerui }}
- Output
-
- Li Xuerui at BWFbadminton.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
- Li Xuerui at BWFbadminton.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
Named parameters
- Usage
* {{BWF2 |id= 50906 |name= Lin Dan }}* {{BWF2 |id= 50906/lin-dan |name= Lin Dan }}
- Output
-
- Lin Dan at BWFbadminton.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
- Lin Dan at BWFbadminton.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
No parameters and Wikidata property not defined
- Usage
* {{BWF2}}
- Output
-
- Template:PAGENAMEBASE at BWFbadminton.comScript error: No such module "EditAtWikidata". Template:WikidataCheck
TemplateData
TemplateData for BWF2
This template displays an external link to a badminton player's profile at BWFbadminton.com, an official website of the Badminton World Federation (BWF). 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: 64643 or 64643/li-xuerui is the ID portion of https://bwfbadminton.com/player/64643/li-xuerui. This parameter is optional if Wikidata property P3620 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 |
Tracking categories
- "id" parameter exists
- Category:BWF2 template with ID same as Wikidata (0)
- Category:BWF2 template with ID different from Wikidata (0)
- Category:BWF2 template with ID not in Wikidata (0)
- "id" parameter does not exist
See also
- {{BWF}} – generates an external link to a player's profile at BWF.tournamentsoftware.com
External links