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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Update documentation, examples, and tracking category links. Add TemplateData)
imported>Zyxw
(update description to show why template is named CMFS, update category links)
Line 5: Line 5:
 
{{Tracks Wikidata|P3050}}
 
{{Tracks Wikidata|P3050}}
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's profile at the [[Football Association of the Czech Republic]] website ([http://nv.fotbal.cz/ nv.fotbal.cz]). 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 profile at [http://nv.fotbal.cz/ nv.fotbal.cz], the website of the [[Football Association of the Czech Republic]] (''FAČR: Fotbalová asociace České republiky''), formerly known as the Bohemian-Moravian Football Union (''ČMFS: Českomoravský fotbalový svaz''). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
Line 48: Line 48:
 
<templatedata>
 
<templatedata>
 
{
 
{
   "description": "This template displays an external link to an association football (soccer) player's profile at the Football Association of the Czech Republic website (nv.fotbal.cz). 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 profile at nv.fotbal.cz, the website of the Football Association of the Czech Republic (FAČR: Fotbalová asociace České republiky), formerly known as the Bohemian-Moravian Football Union (ČMFS: Českomoravský fotbalový svaz). It is intended for use in the external links section of an article.",
 
   "params": {
 
   "params": {
 
     "id": {
 
     "id": {
Line 76: Line 76:
 
==Tracking categories==
 
==Tracking categories==
 
; "id" parameter exists
 
; "id" parameter exists
* {{clc|CMFS player ID not in Wikidata}}
+
* {{clc|FACR player ID not in Wikidata}}
* {{clc|CMFS player ID different from Wikidata}}
+
* {{clc|FACR player ID different from Wikidata}}
* {{clc|CMFS player ID same as Wikidata}}
+
* {{clc|FACR player ID same as Wikidata}}
 
; "id" parameter does not exist
 
; "id" parameter does not exist
* {{clc|CMFS player template missing ID}}
+
* {{clc|FACR player template missing ID}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 04:24, 23 March 2017

Template:Uses Wikidata Template:Tracks Wikidata

Template:FACR player displays an external link to an association football (soccer) player's profile at nv.fotbal.cz, the website of the Football Association of the Czech Republic (FAČR: Fotbalová asociace České republiky), formerly known as the Bohemian-Moravian Football Union (ČMFS: Českomoravský fotbalový svaz). 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 P3050:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URL:

http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=PekhartTomas

Usage:

Template:Tlcw

Output:

Tomáš Pekhart at FAČR (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck

Named parameters

URL:

http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=CechPetr

Usage:

Template:Tlcw

Output:

Petr Čech at FAČR (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

Template:PAGENAMEBASE at FAČR (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck

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

This template displays an external link to an association football (soccer) player's profile at nv.fotbal.cz, the website of the Football Association of the Czech Republic (FAČR: Fotbalová asociace České republiky), formerly known as the Bohemian-Moravian Football Union (ČMFS: Českomoravský fotbalový svaz). 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: PekhartTomas is the ID portion of http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=PekhartTomas. This parameter is optional if Wikidata property P3050 exists, but required if not.

Default
Wikidata property P3050
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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

"id" parameter exists
"id" parameter does not exist