Difference between revisions of "Template:ESPN FC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(updates for Wikidata tracking)
imported>Zyxw
m (→‎See also: add link)
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
 
{{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 an [[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.
  
 
== Usage ==
 
== Usage ==
Line 26: Line 26:
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 75534 | Rogério Ceni }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 75534 | Rogério Ceni }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 75534/rogerio-ceni | Rogério Ceni }}</code>
 
  
 
''Output:''
 
''Output:''
 
:* {{{{BASEPAGENAME}} | 75534 | Rogério Ceni }}
 
:* {{{{BASEPAGENAME}} | 75534 | Rogério Ceni }}
:* {{{{BASEPAGENAME}} | 75534/rogerio-ceni | Rogério Ceni }}
 
  
 
''Current URLs:''
 
''Current URLs:''
 
: <kbd>[http://www.espnfc.com/players/stats?id=75534 http://www.espnfc.com/players/stats?id={{hilite|75534}}]</kbd>
 
: <kbd>[http://www.espnfc.com/players/stats?id=75534 http://www.espnfc.com/players/stats?id={{hilite|75534}}]</kbd>
: <kbd>[http://www.espnfc.com/player/75534/rogerio-ceni http://www.espnfc.com/player/{{hilite|75534/rogerio-ceni}}]</kbd>
+
: <kbd>[http://www.espnfc.com/player/75534/rogerio-ceni http://www.espnfc.com/player/{{hilite|75534}}/rogerio-ceni]</kbd>
  
 
''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 ===
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 31806 | name= Jos Hooiveld }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 31806 | name= Jos Hooiveld }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 31806/jos-hooiveld | name= Jos Hooiveld }}</code>
 
  
 
''Output:''
 
''Output:''
 
:* {{{{BASEPAGENAME}} | id= 31806 | name= Jos Hooiveld }}
 
:* {{{{BASEPAGENAME}} | id= 31806 | name= Jos Hooiveld }}
:* {{{{BASEPAGENAME}} | id= 31806/jos-hooiveld | name= Jos Hooiveld }}
 
  
 
''Current URLs:''
 
''Current URLs:''
 
: <kbd>[http://www.espnfc.com/players/stats?id=31806 http://www.espnfc.com/players/stats?id={{hilite|31806}}]</kbd>
 
: <kbd>[http://www.espnfc.com/players/stats?id=31806 http://www.espnfc.com/players/stats?id={{hilite|31806}}]</kbd>
: <kbd>[http://www.espnfc.com/player/31806/jos-hooiveld http://www.espnfc.com/player/{{hilite|31806/jos-hooiveld}}]</kbd>
+
: <kbd>[http://www.espnfc.com/player/31806/jos-hooiveld http://www.espnfc.com/player/{{hilite|31806}}/jos-hooiveld]</kbd>
  
 
''Former URLs:''
 
''Former URLs:''
 
: <kbd><nowiki>http://</nowiki>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 ===
 
''Usage:''
 
''Usage:''
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
  
 
''Output:''
 
''Output:''
: {{ {{BASEPAGENAME}} }}
+
:* {{ {{BASEPAGENAME}} }}
  
 
== TemplateData ==
 
== TemplateData ==
{{TemplateDataHeader}}
+
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
 
{
 
{
   "description": "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.",
+
   "description": "This template displays an external link to an 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.",
 
   "params": {
 
   "params": {
 
     "id": {
 
     "id": {
Line 74: Line 70:
 
       "aliases": ["1"],  
 
       "aliases": ["1"],  
 
       "description": "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.",
 
       "description": "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.",
       "type": "string",
+
       "type": "number",
 
       "required": false,
 
       "required": false,
 
       "default": "Wikidata property P3681"
 
       "default": "Wikidata property P3681"
Line 95: Line 91:
  
 
== Tracking categories ==
 
== Tracking categories ==
; "id" parameter exists
+
; template with ID
* {{clc|ESPN FC template with ID same as Wikidata}}
 
 
* {{clc|ESPN FC template with ID different from Wikidata}}
 
* {{clc|ESPN FC template with ID different from Wikidata}}
 
* {{clc|ESPN FC template with ID not in Wikidata}}
 
* {{clc|ESPN FC template with ID not in Wikidata}}
; "id" parameter does not exist
+
; template missing ID
* {{clc|ESPN FC template using Wikidata}}
 
 
* {{clc|ESPN FC template missing ID and not in Wikidata}}
 
* {{clc|ESPN FC template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==
 
Other [[ESPN]] external link templates:
 
Other [[ESPN]] external link templates:
 +
* {{tl|ESPN MMA}}
 
* {{tl|ESPN NFL}}
 
* {{tl|ESPN NFL}}
 
* {{tl|ESPN NHL}}
 
* {{tl|ESPN NHL}}
Line 112: Line 107:
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
 
<!-- Categories below this line; interwikis at Wikidata -->
 
<!-- Categories below this line; interwikis at Wikidata -->
 +
[[Category:Association football external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
[[Category:Association football external link templates]]
 
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 09:55, 30 October 2020

Template:Template redirect

Template:Uses Wikidata Template:Tracks Wikidata

Template:ESPN FC displays an external link to an 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.

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 }}

Output:

Current URLs:

http://www.espnfc.com/players/stats?id=75534
http://www.espnfc.com/player/75534/rogerio-ceni

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 }}

Output:

Current URLs:

http://www.espnfc.com/players/stats?id=31806
http://www.espnfc.com/player/31806/jos-hooiveld

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:

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 ESPN FC

This template displays an external link to an 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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P3681
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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID
template missing ID

See also

Other ESPN external link templates: