Difference between revisions of "Template:Davis Cup player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎See also: fix links)
imported>Zyxw
m (→‎See also: add links)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Uses Wikidata|P2641}}
 
{{Uses Wikidata|P2641}}
{{Lua|Module:EditAtWikidata}}
+
{{Tracks Wikidata|P2641}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a tennis player's profile at [http://www.daviscup.com/ DavisCup.com], the official website of the [[Davis Cup]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a tennis player's profile at [http://www.daviscup.com/ DavisCup.com], the official website of the [[Davis Cup]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
Line 43: Line 44:
  
 
''Output:''
 
''Output:''
:* {{{{BASEPAGENAME}} | 800173355 | Rod Laver }} [[File:Blue pencil.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q105550#P2641 |Edit this at Wikidata]]
+
:* {{{{BASEPAGENAME}} | 800173355 | Rod Laver }} [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q105550#P2641 |Edit this at Wikidata]]
  
 
''URLs:''
 
''URLs:''
Line 85: Line 86:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking categories ==
 +
; template with ID
 +
* {{clc|Davis Cup player template with ID different from Wikidata}}
 +
* {{clc|Davis Cup player template with ID not in Wikidata}}
 +
; template missing ID
 +
* {{clc|Davis Cup player template missing ID and not in Wikidata}}
 +
 +
== Templates and modules used ==
 +
* [[Template:First word]], implemented with [[Module:String]]
 +
* [[Module:EditAtWikidata]]
 +
* [[Module:WikidataCheck]]
  
 
== See also ==
 
== See also ==
* {{tl|Fed Cup player}} – external link to player page at the [[Fed Cup]] (women's equivalent to Davis Cup)
+
* {{tl|Billie Jean King Cup player}} – external link to player page at the [[Billie Jean King Cup]] (women's equivalent to Davis Cup)
 
* {{tl|ITF profile}} – external link to player page at the [[International Tennis Federation]]
 
* {{tl|ITF profile}} – external link to player page at the [[International Tennis Federation]]
 
* {{tl|ATP}} – external link to player page at the [[Association of Tennis Professionals]]
 
* {{tl|ATP}} – external link to player page at the [[Association of Tennis Professionals]]
 
* {{tl|WTA}} – external link to player page at the [[Women's Tennis Association]]
 
* {{tl|WTA}} – external link to player page at the [[Women's Tennis Association]]
 +
----
 +
* {{tl|Davis Cup}}
 +
* {{tl|Davis Cup team}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Tennis external link templates]]
 
[[Category:Tennis external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 08:30, 9 October 2020

Template:Uses Wikidata Template:Tracks Wikidata

Template:Davis Cup player displays an external link to a tennis player's profile at DavisCup.com, the official website of the Davis Cup. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property P2641:

Template:Tlcw
Template:Tlcw

Examples

ID in template

Usage in the article James Blake, with article name as link text:

Template:Tlcw
Template:Tlcw

Usage with name parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

URLs:

https://www.daviscup.com/en/players/player.aspx?id=800198270
http://www.daviscup.com/en/players/player/profile.aspx?playerid=10021072 (former ID, archived 2016-03-14)

ID in Wikidata

Usage in the article Rod Laver:

Template:Tlcw
Template:Tlcw

Output:

URLs:

https://www.daviscup.com/en/players/player.aspx?id=800173355
http://www.daviscup.com/en/players/player/profile.aspx?playerid=10002749 (former ID, archived 2016-03-14)

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

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 Davis Cup player

This template displays an external link to a tennis player's profile at DavisCup.com, the official website of the Davis Cup. 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: 800198270 is the ID in https://www.daviscup.com/en/players/player.aspx?id=800198270.

Default
Wikidata property P2641
Numberoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the tennis player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID
template missing ID

Templates and modules used

See also