Difference between revisions of "Template:EPCR profile/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Update usage, examples, and categories for use of Wikidata property. Add TemplateData.)
imported>Zyxw
(Update to show numeric IDs which stopped working in June 2018. Template will add an archive link until these IDs can be updated.)
Line 2: Line 2:
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Template redirect|epcrugby profile}}
 
{{Template redirect|epcrugby profile}}
 +
{{Template shortcut|EPCR}}
 
{{Uses Wikidata|P3666}}
 
{{Uses Wikidata|P3666}}
 
{{Lua|Module:EditAtWikidata}}
 
{{Lua|Module:EditAtWikidata}}
Line 23: Line 24:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
; URLs
 
: <kbd>[https://www.epcrugby.com/player?PlayGuid=NN862292 https://www.epcrugby.com/player?PlayGuid={{hilite|NN862292}}]</kbd>
 
: <kbd>[https://www.epcrugby.com/joueur?PlayGuid=NN862292 https://www.epcrugby.com/joueur?PlayGuid={{hilite|NN862292}}]</kbd> (in French)
 
 
 
; Usage
 
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | NN862292 | Nicolae Nere }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | DR379689 | Dominic Robertson-McCoy }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 129189 | Dominic Robertson-McCoy }}</code>
  
 
; Output
 
; Output
:* {{{{BASEPAGENAME}} | NN862292 | Nicolae Nere }}
+
:* {{{{BASEPAGENAME}} | DR379689 | Dominic Robertson-McCoy }}
 +
:* {{{{BASEPAGENAME}} | 129189 | Dominic Robertson-McCoy }}
 +
 
 +
; Current URLs with alphanumeric ID
 +
: <kbd>[https://www.epcrugby.com/player?PlayGuid=DR379689 https://www.epcrugby.com/player?PlayGuid={{hilite|DR379689}}]</kbd>
 +
: <kbd>[https://www.epcrugby.com/joueur?PlayGuid=DR379689 https://www.epcrugby.com/joueur?PlayGuid={{hilite|DR379689}}]</kbd> (in French)
 +
 
 +
; Former URLs with numeric ID (worked prior to June 2018)
 +
: <kbd>http://<nowiki/>www.epcrugby.com/matchcentre/player_archive.php?player={{Hilite|129189}}&includeref=dynamic</kbd> ([https://web.archive.org/web/20180526044044/http://www.epcrugby.com/matchcentre/player_archive.php?player=129189&includeref=dynamic archived])
 +
: <kbd>http://<nowiki/>www.epcrugby.com/statistics/player_archive.php?player={{Hilite|129189}}&includeref=dynamic</kbd>
  
 
=== Named parameters ===
 
=== Named parameters ===
; URLs
 
: <kbd>[https://www.epcrugby.com/player?PlayGuid=WC160740 https://www.epcrugby.com/player?PlayGuid={{hilite|WC160740}}]</kbd>
 
: <kbd>[https://www.epcrugby.com/joueur?PlayGuid=WC160740 https://www.epcrugby.com/joueur?PlayGuid={{hilite|WC160740}}]</kbd> (in French)
 
 
 
; Usage
 
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= WC160740 |name= Will Carling }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= CK698197 |name= Cian Kelleher }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 115239 |name= Cian Kelleher }}</code>
  
 
; Output
 
; Output
:* {{{{BASEPAGENAME}} |id= WC160740 |name= Will Carling }}
+
:* {{{{BASEPAGENAME}} |id= CK698197 |name= Cian Kelleher }}
 +
:* {{{{BASEPAGENAME}} |id= 115239 |name= Cian Kelleher }}
 +
 
 +
; Current URLs with alphanumeric ID
 +
: <kbd>[https://www.epcrugby.com/player?PlayGuid=CK698197 https://www.epcrugby.com/player?PlayGuid={{hilite|CK698197}}]</kbd>
 +
: <kbd>[https://www.epcrugby.com/joueur?PlayGuid=CK698197 https://www.epcrugby.com/joueur?PlayGuid={{hilite|CK698197}}]</kbd> (in French)
 +
 
 +
; Former URLs with numeric ID (worked prior to June 2018)
 +
: <kbd>http://<nowiki/>www.epcrugby.com/matchcentre/player_archive.php?player={{Hilite|115239}}&includeref=dynamic</kbd> ([https://web.archive.org/web/20180525204334/http://www.epcrugby.com/matchcentre/player_archive.php?player=115239&includeref=dynamic archive])
 +
: <kbd>http://<nowiki/>www.epcrugby.com/statistics/player_archive.php?player={{Hilite|115239}}&includeref=dynamic</kbd> ([https://web.archive.org/web/20171229024845/http://www.epcrugby.com/statistics/player_archive.php?player=115239&includeref=dynamic archive])
  
 
=== No parameters and Wikidata property not defined ===
 
=== No parameters and Wikidata property not defined ===
Line 60: Line 73:
 
"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: 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.",
+
"description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: DR379689 is the ID portion of https://www.epcrugby.com/joueur?PlayGuid=DR379689. This parameter is optional if Wikidata property P3666 exists, but required if not.",
 
"type": "string",
 
"type": "string",
 
"required": false,
 
"required": false,
Line 80: Line 93:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking category ==
 +
* {{clc|EPCR template using deprecated numeric ID}}
  
 
== External links ==
 
== External links ==
Line 89: Line 105:
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 11:28, 1 December 2018

Template:Template redirect

Template:Uses Wikidata

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.

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

Usage
* {{EPCR profile | DR379689 | Dominic Robertson-McCoy }}
* {{EPCR profile | 129189 | Dominic Robertson-McCoy }}
Output
Current URLs with alphanumeric ID
https://www.epcrugby.com/player?PlayGuid=DR379689
https://www.epcrugby.com/joueur?PlayGuid=DR379689 (in French)
Former URLs with numeric ID (worked prior to June 2018)
http://www.epcrugby.com/matchcentre/player_archive.php?player=129189&includeref=dynamic (archived)
http://www.epcrugby.com/statistics/player_archive.php?player=129189&includeref=dynamic

Named parameters

Usage
* {{EPCR profile |id= CK698197 |name= Cian Kelleher }}
* {{EPCR profile |id= 115239 |name= Cian Kelleher }}
Output
Current URLs with alphanumeric ID
https://www.epcrugby.com/player?PlayGuid=CK698197
https://www.epcrugby.com/joueur?PlayGuid=CK698197 (in French)
Former URLs with numeric ID (worked prior to June 2018)
http://www.epcrugby.com/matchcentre/player_archive.php?player=115239&includeref=dynamic (archive)
http://www.epcrugby.com/statistics/player_archive.php?player=115239&includeref=dynamic (archive)

No parameters and Wikidata property not defined

Usage
* {{EPCR profile}}
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 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.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: DR379689 is the ID portion of https://www.epcrugby.com/joueur?PlayGuid=DR379689. This parameter is optional if Wikidata property P3666 exists, but required if not.

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

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking category

External links