Difference between revisions of "Template:BWF2"
imported>Zyxw (https) |
imported>Zyxw (update tracking) |
||
| Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3620}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3620}} | ||
| − | | [https://bwfbadminton.com/player/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3620}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Badminton World Federation|BWFbadminton.com]]<includeonly>{{EditAtWikidata|pid=P3620|{{{1|{{{id|}}}}}}}}</includeonly> {{#if: {{{archive|}}} | ([https://web.archive.org/web/{{{archive}}}/https://bwfbadminton.com/player/{{#if: {{{1|{{{id|}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3620}}|sep=,}} }} archive]) }} | + | | [https://bwfbadminton.com/player/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3620}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Badminton World Federation|BWFbadminton.com]]<includeonly>{{EditAtWikidata|pid=P3620|{{{1|{{{id|}}}}}}}}</includeonly> {{#if: {{{archive|}}} | ([https://web.archive.org/web/{{{archive}}}/https://bwfbadminton.com/player/{{#if: {{{1|{{{id|}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3620}}|sep=,}} }} archive]) }}{{WikidataCheck|property=P3620|value={{{1|{{{id|}}}}}}|category=BWF2 template with ID|namespaces=0|nocatsame=1}} |
| − | | <span class="error">{{[[Template:BWF2|BWF2]]}} template missing ID and not present in Wikidata.</span> | + | | <span class="error">{{[[Template:BWF2|BWF2]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:BWF2 template missing ID and not in Wikidata]]}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:30, 1 May 2019
{{{name}}} at BWFbadminton.com Template:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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
- template with ID
- Category:BWF2 template with ID different from Wikidata (0)
- Category:BWF2 template with ID not in Wikidata (0)
- template missing ID
See also
- {{BWF}} – generates an external link to a player's profile at BWF.tournamentsoftware.com
External links
| The above documentation is transcluded from Template:BWF2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
- Pages with script errors
- Pages with broken file links
- Templates using TemplateData
- Badminton templates
- People and person external link templates
- Sports governing body external link templates
- External link templates using Wikidata
- External link templates with archive parameter
- Templates that add a tracking category