Template:EPCR profile/doc
| 40px | This is a documentation subpage for Template:EPCR profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Template redirect Template:Uses Wikidata
| File:Lua-Logo.svg | This template uses Lua: |
Template:EPCR profile displays an external link to a rugby union player's page at the European Professional Club Rugby (EPCR) website. It is intended for use in the external links section of an article.
Contents
Usage
- Unnamed parameters
{{EPCR profile | ID }}{{EPCR profile | ID | NAME }}
- Named parameters
{{EPCR profile | id= ID }}{{EPCR profile | id= ID | name= NAME }}
- Using Wikidata property Template:Property
{{EPCR profile}}{{EPCR profile | name= NAME }}
Examples
Unnamed parameters
- URLs
- https://www.epcrugby.com/player?PlayGuid=NN862292
- https://www.epcrugby.com/joueur?PlayGuid=NN862292 (in French)
- Usage
* {{EPCR profile | NN862292 | Nicolae Nere }}
- Output
-
- Nicolae Nere at European Professional Club RugbyScript error: No such module "EditAtWikidata".
Named parameters
- URLs
- https://www.epcrugby.com/player?PlayGuid=WC160740
- https://www.epcrugby.com/joueur?PlayGuid=WC160740 (in French)
- Usage
* {{EPCR profile |id= WC160740 |name= Will Carling }}
- Output
-
- Will Carling at European Professional Club RugbyScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
- Usage
* {{EPCR profile}}
- Output
-
- Template:PAGENAMEBASE at European Professional Club RugbyScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for EPCR profile
This template displays an external link to a rugby union player's page at the European Professional Club Rugby (EPCR) 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: WC160740 is the ID portion of https://www.epcrugby.com/player?PlayGuid=WC160740. This parameter is optional if Wikidata property P3666 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 rugby player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(rugby)"
| String | optional |
External links