Difference between revisions of "Template:ESPNscrum/doc"
imported>Zyxw (updates for use of Wikidata property) |
imported>Zyxw (formatting of examples) |
||
| Line 27: | Line 27: | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 13784 | Richie McCaw }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 13784 | Richie McCaw }}</code> |
; Output | ; Output | ||
| − | : {{{{BASEPAGENAME}} | 13784 | Richie McCaw }} | + | :* {{{{BASEPAGENAME}} | 13784 | Richie McCaw }} |
=== Named parameters === | === Named parameters === | ||
| Line 38: | Line 38: | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }}</code> |
; Output | ; Output | ||
| − | : {{{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }} | + | :* {{{{BASEPAGENAME}} |id= 91492 |name= Duane Vermeulen }} |
=== 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 == | ||
Revision as of 17:57, 29 November 2018
| 40px | This is a documentation subpage for Template:ESPNscrum. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
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.
Contents
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
- URLs
- http://stats.espnscrum.com/statsguru/rugby/player/13784.html
- http://en.espn.co.uk/scrum/rugby/player/13784.html
- Usage
* {{ESPNscrum | 13784 | Richie McCaw }}
- Output
-
- Richie McCaw at ESPNscrumScript error: No such module "EditAtWikidata".
Named parameters
- URLs
- http://stats.espnscrum.com/statsguru/rugby/player/91492.html
- http://en.espn.co.uk/scrum/rugby/player/91492.html
- Usage
* {{ESPNscrum |id= 91492 |name= Duane Vermeulen }}
- Output
-
- Duane Vermeulen at ESPNscrumScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
- Usage
* {{ESPNscrum}}
- Output
-
- Template:PAGENAMEBASE at ESPNscrumScript error: No such module "EditAtWikidata".
TemplateData
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | 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.
| Number | 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 rugby union player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(rugby union)".
| String | optional |
See also
Other ESPN external link templates:
- {{ESPN FC}}
- {{ESPN NFL}}
- {{ESPN NHL}}
- {{ESPNcricinfo}}
External links