Difference between revisions of "Template:ESPNscrum"
imported>Zyxw m (Zyxw moved page Template:Scrum to Template:ESPNscrum: new name, matches link in text ESPNscrum and Wikidata property) |
imported>Zyxw (Use Wikidata property P858 if no "id". Display message if no "id" specified in template and no Wikidata.) |
||
| Line 1: | Line 1: | ||
| − | [http://en.espn.co.uk/scrum/rugby/player/{{Trim|{{{1|{{{id}}}}}}}}.html {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at [[ESPNscrum]]<noinclude> | + | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P858}} |
| − | {{Documentation}} | + | |
| + | |[http://en.espn.co.uk/scrum/rugby/player/{{Trim|{{{1|{{{id<includeonly>|{{#property:P858}}</includeonly>}}}}}}}}.html {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at [[ESPNscrum]]<includeonly>{{EditAtWikidata|pid=P858|{{{1|{{{id|}}}}}}}}</includeonly> | ||
| + | |||
| + | |<span class="error">{{[[Template:ESPNscrum|ESPNscrum]]}} template missing ID and not present in Wikidata.</span> | ||
| + | |||
| + | }}<noinclude> | ||
| + | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Revision as of 01:31, 11 August 2017
Template:Template redirects Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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
- Usage
* {{ESPNscrum | 13784 | Richie McCaw }}
- Output
-
- Richie McCaw at ESPNscrumScript error: No such module "EditAtWikidata".
- 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
-
- Duane Vermeulen at ESPNscrumScript error: No such module "EditAtWikidata".
- 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
-
- 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://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.
| 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 MMA}}
- {{ESPN NFL}}
- {{ESPN NHL}}
- {{ESPNcricinfo}}
External links
| The above documentation is transcluded from Template:ESPNscrum/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |