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

From blackwiki
Jump to navigation Jump to search
imported>ShakespeareFan00
m
imported>Zyxw
m (update list, misc formatting)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- 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|HNS player}}
 +
{{Template shortcut|CFF}}
 
{{Uses Wikidata|P3577}}
 
{{Uses Wikidata|P3577}}
{{Lua|Module:EditAtWikidata}}
+
{{Tracks Wikidata|P3577}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's page at the [[Croatian Football Federation]] website ([http://hns-cff.hr/en/ hns-cff.hr]). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's page at [http://hns-cff.hr/en/ hns-cff.hr], the official website of the [[Croatian Football Federation]]  (''Hrvatski nogometni savez''). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
Line 15: Line 18:
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
  
Using [[Wikidata]] property [[d:Property:P3577|P3577]]:
+
Using [[Wikidata]] property {{Prop|3577}}:
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
Line 22: Line 25:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 +
''Usage:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
 +
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
 +
 
''URLs:''
 
''URLs:''
 
: <kbd>[http://hns-cff.hr/en/players/14831/vedran-corluka/ http://hns-cff.hr/en/players/{{Hilite|14831/vedran-corluka}}/]</kbd>
 
: <kbd>[http://hns-cff.hr/en/players/14831/vedran-corluka/ http://hns-cff.hr/en/players/{{Hilite|14831/vedran-corluka}}/]</kbd>
: <kbd>[http://hns-cff.hr/players/14831/vedran-corluka/ http://hns-cff.hr/players/{{Hilite|14831/vedran-corluka}}/]</kbd>
+
: <kbd>[http://hns-cff.hr/players/14831/vedran-corluka/ http://hns-cff.hr/players/{{Hilite|14831/vedran-corluka}}/]</kbd> (in Croatian)
  
 +
=== Named parameters ===
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 136326/jorge-sammir-cruz-campos | name{{=}} Jorge Sammir Cruz Campos }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | 14831/vedran-corluka | Vedran Ćorluka }}
+
:* {{{{BASEPAGENAME}} | id= 136326/jorge-sammir-cruz-campos | name= Jorge Sammir Cruz Campos }}
  
=== Named parameters ===
 
 
''URLs:''
 
''URLs:''
 
: <kbd>[http://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/en/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</kbd>
 
: <kbd>[http://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/en/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</kbd>
: <kbd>[http://hns-cff.hr/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</kbd>
+
: <kbd>[http://hns-cff.hr/players/136326/jorge-sammir-cruz-campos/ http://hns-cff.hr/players/{{Hilite|136326/jorge-sammir-cruz-campos}}/]</kbd> (in Croatian)
 
 
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 136326/jorge-sammir-cruz-campos | name{{=}} Jorge Sammir Cruz Campos }}
 
 
 
''Output:''
 
: {{{{BASEPAGENAME}} | id= 136326/jorge-sammir-cruz-campos | name= Jorge Sammir Cruz Campos }}
 
  
 
=== No parameters and Wikidata property not defined ===
 
=== No parameters and Wikidata property not defined ===
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}}}}
+
: {{tlcw|a=1|{{BASEPAGENAME}}}}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}}<!-- -->}}
+
:* {{{{BASEPAGENAME}}<!-- -->}}
  
 
== TemplateData ==
 
== TemplateData ==
Line 54: Line 57:
 
<templatedata>
 
<templatedata>
 
{
 
{
   "description": "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.",
+
   "description": "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.",
 
   "params": {
 
   "params": {
 
     "id": {
 
     "id": {
Line 81: Line 84:
  
 
== Tracking categories ==
 
== Tracking categories ==
 +
; template with ID
 +
* {{clc|CFF player ID different from Wikidata}}
 
* {{clc|CFF player ID not in Wikidata}}
 
* {{clc|CFF player ID not in Wikidata}}
* {{clc|CFF player ID different from Wikidata}}
+
; template missing ID
* {{clc|CFF player ID same as Wikidata}}
+
* {{clc|CFF player template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==
 
* [[Template:Hrnogomet]] for links to [[Croatian First Football League]] players at Hrnogomet.com
 
* [[Template:Hrnogomet]] for links to [[Croatian First Football League]] players at Hrnogomet.com
  
<includeonly>{{sandbox other||
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line; interwikis at Wikidata -->
 
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Association football external link templates]]
 
[[Category:Association football external link templates]]
Line 94: Line 99:
 
[[Category:Croatia football templates]]
 
[[Category:Croatia football templates]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:13, 10 May 2019

Template:Template redirect

Template:Uses Wikidata Template:Tracks Wikidata

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