Difference between revisions of "Template:ESPNscrum/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(list redirect)
imported>Zyxw
(update Examples and See also)
 
Line 23: Line 23:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
; URLs
 
: <kbd>[http://stats.espnscrum.com/statsguru/rugby/player/13784.html http://stats.espnscrum.com/statsguru/rugby/player/{{hilite|13784}}.html]</kbd>
 
: <kbd>[http://en.espn.co.uk/scrum/rugby/player/13784.html http://en.espn.co.uk/scrum/rugby/player/{{hilite|13784}}.html]</kbd>
 
  
 
; Usage
 
; Usage
Line 33: Line 30:
 
:* {{{{BASEPAGENAME}} | 13784 | Richie McCaw }}
 
:* {{{{BASEPAGENAME}} | 13784 | Richie McCaw }}
  
=== Named parameters ===
 
 
; URLs
 
; URLs
: <kbd>[http://stats.espnscrum.com/statsguru/rugby/player/91492.html http://stats.espnscrum.com/statsguru/rugby/player/{{hilite|91492}}.html]</kbd>
+
: <kbd>[http://en.espn.co.uk/scrum/rugby/player/13784.html http://en.espn.co.uk/scrum/rugby/player/{{hilite|13784}}.html]</kbd>
: <kbd>[http://en.espn.co.uk/scrum/rugby/player/91492.html http://en.espn.co.uk/scrum/rugby/player/{{hilite|91492}}.html]</kbd>
+
: <kbd>[http://en.espn.co.uk/statsguru/rugby/player/13784.html http://en.espn.co.uk/statsguru/rugby/player/{{hilite|13784}}.html]</kbd>
 +
: <kbd>[http://stats.espnscrum.com/statsguru/rugby/player/13784.html http://stats.espnscrum.com/statsguru/rugby/player/{{hilite|13784}}.html]</kbd>
  
 +
=== Named parameters ===
 
; Usage
 
; Usage
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }}</code>
Line 43: Line 41:
 
; Output
 
; Output
 
:* {{{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }}
 
:* {{{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }}
 +
 +
; URLs
 +
: <kbd>[http://en.espn.co.uk/scrum/rugby/player/91492.html http://en.espn.co.uk/scrum/rugby/player/{{hilite|91492}}.html]</kbd>
 +
: <kbd>[http://en.espn.co.uk/statsguru/rugby/player/91492.html http://en.espn.co.uk/statsguru/rugby/player/{{hilite|91492}}.html]</kbd>
 +
: <kbd>[http://stats.espnscrum.com/statsguru/rugby/player/91492.html http://stats.espnscrum.com/statsguru/rugby/player/{{hilite|91492}}.html]</kbd>
  
 
=== No parameters and Wikidata property not defined ===
 
=== No parameters and Wikidata property not defined ===
Line 60: Line 63:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],  
 
       "aliases": ["1"],  
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 13784 is the ID portion of http://stats.espnscrum.com/statsguru/rugby/player/13784.html or http://en.espn.co.uk/scrum/rugby/player/13784.html. This parameter is optional if Wikidata property P858 exists, but required if not.",
+
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 13784 is the ID portion of http://en.espn.co.uk/scrum/rugby/player/13784.html or http://en.espn.co.uk/statsguru/rugby/player/13784.html or http://stats.espnscrum.com/statsguru/rugby/player/13784.html. This parameter is optional if Wikidata property P858 exists, but required if not.",
 
       "type": "number",
 
       "type": "number",
 
       "required": false,
 
       "required": false,
Line 84: Line 87:
 
Other [[ESPN]] external link templates:
 
Other [[ESPN]] external link templates:
 
* {{tl|ESPN FC}}
 
* {{tl|ESPN FC}}
 +
* {{tl|ESPN MMA}}
 
* {{tl|ESPN NFL}}
 
* {{tl|ESPN NFL}}
 
* {{tl|ESPN NHL}}
 
* {{tl|ESPN NHL}}

Latest revision as of 10:08, 30 October 2020

Template:Template redirects Template:Uses Wikidata

Template:ESPNscrum displays an external link to a rugby union player's page at the ESPNscrum website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{ESPNscrum | ID }}
{{ESPNscrum | ID | NAME }}
Named parameters
{{ESPNscrum | id= ID }}
{{ESPNscrum | id= ID | name= NAME }}
Using Wikidata property Template:WPL
{{ESPNscrum}}
{{ESPNscrum | name= NAME }}

Examples

Unnamed parameters

Usage
* {{ESPNscrum | 13784 | Richie McCaw }}
Output
URLs
http://en.espn.co.uk/scrum/rugby/player/13784.html
http://en.espn.co.uk/statsguru/rugby/player/13784.html
http://stats.espnscrum.com/statsguru/rugby/player/13784.html

Named parameters

Usage
* {{ESPNscrum |id= 91492 |name= Duane Vermeulen }}
Output
URLs
http://en.espn.co.uk/scrum/rugby/player/91492.html
http://en.espn.co.uk/statsguru/rugby/player/91492.html
http://stats.espnscrum.com/statsguru/rugby/player/91492.html

No parameters and Wikidata property not defined

Usage
* {{ESPNscrum}}
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 ESPNscrum

This template displays an external link to a rugby union player's page at the ESPNscrum website. 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: 13784 is the ID portion of http://en.espn.co.uk/scrum/rugby/player/13784.html or http://en.espn.co.uk/statsguru/rugby/player/13784.html or http://stats.espnscrum.com/statsguru/rugby/player/13784.html. This parameter is optional if Wikidata property P858 exists, but required if not.

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

Default
{{PAGENAMEBASE}}
Stringoptional

See also

Other ESPN external link templates:

External links