Difference between revisions of "Template:CFF player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Crazy1880
(Tracking categories)
imported>Zyxw
(update URLs)
Line 22: Line 22:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
''URL:''
+
''URLs:''
: <tt>[http://hns-cff.hr/en/players/14831/vedran-corluka/ http://hns-cff.hr/en/players/{{Hilite|14831/vedran-corluka}}/]</tt>
+
: <kbd>[http://hns-cff.hr/en/players/14831/vedran-corluka/ http://hns-cff.hr/en/players/{{Hilite|14831/vedran-corluka}}/]</tt>
 +
: <kbd>[http://hns-cff.hr/players/14831/vedran-corluka/ http://hns-cff.hr/players/{{Hilite|14831/vedran-corluka}}/]</tt>
 +
 
 
''Usage:''
 
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
 
: {{tlcw|{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
 +
 
''Output:''
 
''Output:''
 
: {{{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
 
: {{{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
  
 
=== Named parameters ===
 
=== Named parameters ===
''URL:''
+
''URLs:''
: <tt>[http://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/en/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</tt>
+
: <kbd>[http://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/en/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</tt>
 +
: <kbd>[http://hns-cff.hr/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</tt>
 +
 
 
''Usage:''
 
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 136326/jorge-sammir-cruz-campos | name{{=}} Jorge Sammir Cruz Campos }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 136326/jorge-sammir-cruz-campos | name{{=}} Jorge Sammir Cruz Campos }}
 +
 
''Output:''
 
''Output:''
 
: {{{{BASEPAGENAME}} | id= 136326/jorge-sammir-cruz-campos | name= Jorge Sammir Cruz Campos }}
 
: {{{{BASEPAGENAME}} | id= 136326/jorge-sammir-cruz-campos | name= Jorge Sammir Cruz Campos }}
Line 40: Line 46:
 
''Usage:''
 
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}}}}
 +
 
''Output:''
 
''Output:''
 
: {{{{BASEPAGENAME}}<!-- -->}}
 
: {{{{BASEPAGENAME}}<!-- -->}}

Revision as of 05:07, 21 June 2018

Template:Uses Wikidata

Template:CFF player displays an external link to an association football (soccer) player's page at the Croatian Football Federation website (hns-cff.hr). It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property P3577:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URLs:

http://hns-cff.hr/en/players/14831/vedran-corluka/
http://hns-cff.hr/players/14831/vedran-corluka/

Usage:

Template:Tlcw

Output:

Vedran Ćorluka at the Croatian Football FederationScript error: No such module "EditAtWikidata".Template:WikidataCheck

Named parameters

URLs:

http://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/
http://hns-cff.hr/players/136326/jorge-sammir-cruz-campos/

Usage:

Template:Tlcw

Output:

Jorge Sammir Cruz Campos at the Croatian Football FederationScript error: No such module "EditAtWikidata".Template:WikidataCheck

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

Template:PAGENAMEBASE at the Croatian Football FederationScript error: No such module "EditAtWikidata".Template:WikidataCheck

Tracking categories

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 CFF player

This template displays an external link to an association football (soccer) player's page at the Croatian Football Federation website (hns-cff.hr). 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: 14831/vedran-corluka is the ID portion of http://hns-cff.hr/en/players/14831/vedran-corluka/. This parameter is optional if Wikidata property P3577 exists, but required if not.

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

Default
{{PAGENAMEBASE}}
Stringoptional