Difference between revisions of "Template:CFF player"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
(can't be page name)
imported>Zyxw
(Update URL to use English language link. Move documentation and categories to /doc.)
Line 1: Line 1:
[http://hns-cff.hr/players/{{Trim|{{{1|{{{id}}}}}}}}/ {{{2|{{{title|{{PAGENAMEBASE}}}}}}}}] at the [[Croatian Football Federation]] website {{hr icon}}<noinclude>
+
[http://hns-cff.hr/en/players/{{Trim|{{{1|{{{id<includeonly>|</includeonly>}}}}}}}}/ {{{2|{{{title|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}}}}] at the [[Croatian Football Federation]]<noinclude>
 
+
{{Documentation}}
{{Wikidata property|P3577}}
 
 
 
==Usage==
 
 
 
<code><nowiki>{{CFF player|id|name}}</nowiki></code>
 
*The "id" parameter is the code for the player profile at Croatian Football Federation website, as shown in address bar. The id usually consists of a series of digits, a slash sign ("/") and players name and last name separated by a dash sign ("-").
 
*For example, the address for [[Vedran Ćorluka]] is <code><nowiki>http://hns-cff.hr/players/14831/vedran-corluka</nowiki></code>, so the id is "'''14831/vedran-corluka'''"
 
*This yields <code><nowiki>{{CFF player|14831/vedran-corluka}}</nowiki></code>
 
*The "name" parameter is used to display player's name. If unused it defaults to article title.
 
*For example: <code><nowiki>{{CFF player|14831/vedran-corluka|Vedran Ćorluka}}</nowiki></code>
 
 
 
[[Category:Association football external link templates]]
 
[[Category:Croatia football templates]]
 
[[Category:People and person external link templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 03:48, 22 March 2017

{{{name}}} at the Croatian Football Federation

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

Template:Template redirect

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

Template:CFF player displays an external link to an association football (soccer) player's page at hns-cff.hr, the official website of the Croatian Football Federation (Hrvatski nogometni savez). 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 Template:Prop:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

Usage:

Template:Tlcw

Output:

URLs:

http://hns-cff.hr/en/players/14831/vedran-corluka/
http://hns-cff.hr/players/14831/vedran-corluka/ (in Croatian)

Named parameters

Usage:

Template:Tlcw

Output:

URLs:

http://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/
http://hns-cff.hr/players/136326/jorge-sammir-cruz-campos/ (in Croatian)

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

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

This template displays an external link to an association football (soccer) player's page at hns-cff.hr, the official website of the Croatian Football Federation. 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

Tracking categories

template with ID
template missing ID

See also