Difference between revisions of "Template:ESPN FC/doc"
imported>Zyxw (update examples) |
imported>Zyxw (updates for Wikidata tracking) |
||
| Line 3: | Line 3: | ||
<div style="font-size: 110%;">{{Template redirect|ESPN Soccernet}}</div> | <div style="font-size: 110%;">{{Template redirect|ESPN Soccernet}}</div> | ||
{{Uses Wikidata|P3681}} | {{Uses Wikidata|P3681}} | ||
| − | {{Lua|Module:EditAtWikidata}} | + | {{Tracks Wikidata|P3681}} |
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[association football]] (soccer) player's profile at the [[ESPN FC]] website (formerly ESPN SoccerNet). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[association football]] (soccer) player's profile at the [[ESPN FC]] website (formerly ESPN SoccerNet). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
| Line 16: | Line 17: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| − | ; Using [[Wikidata]] property | + | ; Using [[Wikidata]] property {{Prop|3681}} |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| Line 36: | Line 37: | ||
''Former URLs:'' | ''Former URLs:'' | ||
| − | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/players/stats?id={{hilite|75534}}</kbd> | + | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/players/stats?id={{hilite|75534}}</kbd> |
| − | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/player/_/id/{{hilite|75534/rogerio-ceni}}</kbd> | + | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/player/_/id/{{hilite|75534/rogerio-ceni}}</kbd> |
=== Named parameters === | === Named parameters === | ||
| Line 53: | Line 54: | ||
''Former URLs:'' | ''Former URLs:'' | ||
| − | : <kbd>http://soccernet.espn.go.com/players/stats?id={{hilite|31806}}</kbd> | + | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/players/stats?id={{hilite|31806}}</kbd> |
| − | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/player/_/id/{{hilite|31806/jos-hooiveld}}</kbd> | + | : <kbd><nowiki>http://</nowiki>soccernet.espn.go.com/player/_/id/{{hilite|31806/jos-hooiveld}}</kbd> |
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
| Line 93: | Line 94: | ||
</templatedata> | </templatedata> | ||
| − | == Tracking | + | == Tracking categories == |
| − | * {{clc|ESPN FC template using | + | ; "id" parameter exists |
| + | * {{clc|ESPN FC template with ID same as Wikidata}} | ||
| + | * {{clc|ESPN FC template with ID different from Wikidata}} | ||
| + | * {{clc|ESPN FC template with ID not in Wikidata}} | ||
| + | ; "id" parameter does not exist | ||
| + | * {{clc|ESPN FC template using Wikidata}} | ||
| + | * {{clc|ESPN FC template missing ID and not in Wikidata}} | ||
== See also == | == See also == | ||
| Line 103: | Line 110: | ||
* {{tl|ESPNscrum}} | * {{tl|ESPNscrum}} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
Revision as of 23:44, 4 March 2019
| This is a documentation subpage for Template:ESPN FC. 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:ESPN FC displays an external link to a association football (soccer) player's profile at the ESPN FC website (formerly ESPN SoccerNet). It is intended for use in the external links section of an article.
Contents
Usage
- Unnamed parameters
{{ESPN FC | ID }}{{ESPN FC | ID | NAME }}
- Named parameters
{{ESPN FC | id= ID }}{{ESPN FC | id= ID | name= NAME }}
- Using Wikidata property Template:Prop
{{ESPN FC}}{{ESPN FC | name= NAME }}
Examples
Unnamed parameters
Usage:
* {{ESPN FC | 75534 | Rogério Ceni }}* {{ESPN FC | 75534/rogerio-ceni | Rogério Ceni }}
Output:
- Rogério Ceni at ESPN FCScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Rogério Ceni at ESPN FCScript error: No such module "EditAtWikidata".Template:WikidataCheck
Current URLs:
Former URLs:
- http://soccernet.espn.go.com/players/stats?id=75534
- http://soccernet.espn.go.com/player/_/id/75534/rogerio-ceni
Named parameters
Usage:
* {{ESPN FC | id= 31806 | name= Jos Hooiveld }}* {{ESPN FC | id= 31806/jos-hooiveld | name= Jos Hooiveld }}
Output:
- Jos Hooiveld at ESPN FCScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Jos Hooiveld at ESPN FCScript error: No such module "EditAtWikidata".Template:WikidataCheck
Current URLs:
Former URLs:
- http://soccernet.espn.go.com/players/stats?id=31806
- http://soccernet.espn.go.com/player/_/id/31806/jos-hooiveld
No parameters and Wikidata property not defined
Usage:
{{ESPN FC}}
Output:
- Template:PAGENAMEBASE at ESPN FCScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for ESPN FC
This template displays an external link to a association football (soccer) player's profile at the ESPN FC website (formerly ESPN SoccerNet). 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 for the player's profile. Examples: 75534 is the ID portion of http://www.espnfc.com/players/stats?id=75534 or http://www.espnfc.com/player/75534/rogerio-ceni. This parameter is optional if Wikidata property P3681 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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |
Tracking categories
- "id" parameter exists
- Category:ESPN FC template with ID same as Wikidata (0)
- Category:ESPN FC template with ID different from Wikidata (0)
- Category:ESPN FC template with ID not in Wikidata (0)
- "id" parameter does not exist
- Category:ESPN FC template using Wikidata (0)
- Category:ESPN FC template missing ID and not in Wikidata (0)
See also
Other ESPN external link templates:
- {{ESPN NFL}}
- {{ESPN NHL}}
- {{ESPNcricinfo}}
- {{ESPNscrum}}