Difference between revisions of "Template:CFF player"
imported>Zyxw m (Fixes for empty id/name parameters. Remove {{Trim|}} since {{#if:}} does same. If Wikidata property has multiple values, only use first one.) |
imported>Zyxw m (update tracking) |
||
| Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3577}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3577}} | ||
| − | | [http://hns-cff.hr/en/players/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3577}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Croatian Football Federation]]<includeonly>{{EditAtWikidata|pid=P3577|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P3577|value={{{1|{{{id|}}}}}}|category=CFF player ID}} | + | |
| − | | <span class="error">{{[[Template:CFF player|CFF player]]}} template missing ID and not present in Wikidata.</span> | + | | [http://hns-cff.hr/en/players/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3577}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Croatian Football Federation]]<includeonly>{{EditAtWikidata|pid=P3577|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P3577|value={{{1|{{{id|}}}}}}|category=CFF player ID|namespaces=0|nocatsame=1}} |
| + | |||
| + | | <span class="error">{{[[Template:CFF player|CFF player]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:CFF player template missing ID and not in Wikidata]]}} | ||
| + | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:38, 9 May 2019
{{{name}}} at the Croatian Football FederationTemplate:WikidataCheck
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.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Prop:
Examples
Unnamed parameters
Usage:
Output:
- Vedran Ćorluka at the Croatian Football FederationScript error: No such module "EditAtWikidata".Template:WikidataCheck
URLs:
- http://hns-cff.hr/en/players/14831/vedran-corluka/
- http://hns-cff.hr/players/14831/vedran-corluka/ (in Croatian)
Named parameters
Usage:
Output:
- Jorge Sammir Cruz Campos at the Croatian Football FederationScript error: No such module "EditAtWikidata".Template:WikidataCheck
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:
Output:
- Template:PAGENAMEBASE at the Croatian Football FederationScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 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.
| 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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |
Tracking categories
- template with ID
- template missing ID
See also
- Template:Hrnogomet for links to Croatian First Football League players at Hrnogomet.com
| The above documentation is transcluded from Template:CFF player/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |