Difference between revisions of "Template:EPCR profile"

From blackwiki
Jump to navigation Jump to search
imported>Gabinho
m (fixes)
imported>Gabinho
m (Undid revision 940573050 by Gabinho (talk) test. something is broken in the link. maybe now OK)
 
Line 5: Line 5:
 
   | [https://web.archive.org/web/20171231000000/http://www.epcrugby.com/matchcentre/player_archive.php?player={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3666}}|sep=,}} }}&includeref=dynamic {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[European Professional Club Rugby]] (archived)<includeonly>{{EditAtWikidata|pid=P3666|{{{1|{{{id|}}}}}}}}</includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:EPCR template using deprecated numeric ID]]}}
 
   | [https://web.archive.org/web/20171231000000/http://www.epcrugby.com/matchcentre/player_archive.php?player={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3666}}|sep=,}} }}&includeref=dynamic {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[European Professional Club Rugby]] (archived)<includeonly>{{EditAtWikidata|pid=P3666|{{{1|{{{id|}}}}}}}}</includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:EPCR template using deprecated numeric ID]]}}
  
   | [https://www.epcrugby.com/player/?PlayGuid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3666}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[European Professional Club Rugby]]<includeonly>{{EditAtWikidata|pid=P3666|{{{1|{{{id|}}}}}}}}</includeonly>
+
   | [https://www.epcrugby.com/player?PlayGuid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3666}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[European Professional Club Rugby]]<includeonly>{{EditAtWikidata|pid=P3666|{{{1|{{{id|}}}}}}}}</includeonly>
  
 
   }}
 
   }}

Latest revision as of 18:20, 8 March 2020

{{{name}}} at European Professional Club Rugby

Template documentation[view] [edit] [history] [purge]

Template:Template redirect

Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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