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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
imported>Zyxw
m (update list, misc formatting)
 
Line 16: Line 16:
 
: {{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:P3050|P3050]]:
+
Using [[Wikidata]] property {{Property|3050}}:
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
Line 23: Line 23:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 +
''Usage:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | PekhartTomas | Tomáš Pekhart }}
 +
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | PekhartTomas | Tomáš Pekhart }}
 +
 
''URL:''
 
''URL:''
 
: <kbd>[http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=PekhartTomas http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name={{hilite|PekhartTomas}}]</kbd>
 
: <kbd>[http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=PekhartTomas http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name={{hilite|PekhartTomas}}]</kbd>
 +
 +
=== Named parameters ===
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | PekhartTomas | Tomáš Pekhart }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} CechPetr | name{{=}} Petr Čech }}
 +
 
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | PekhartTomas | Tomáš Pekhart }}
+
:* {{{{BASEPAGENAME}} | id= CechPetr | name= Petr Čech }}
  
=== Named parameters ===
 
 
''URL:''
 
''URL:''
 
: <kbd>[http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=CechPetr http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name={{hilite|CechPetr}}]</kbd>
 
: <kbd>[http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name=CechPetr http://nv.fotbal.cz/reprezentace/reprezentace-a/statistiky/viewstat3.asp?name={{hilite|CechPetr}}]</kbd>
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} CechPetr | name{{=}} Petr Čech }}
 
''Output:''
 
: {{{{BASEPAGENAME}} | id= CechPetr | name= Petr Čech }}
 
  
 
=== 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 55: Line 60:
 
       "description": "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.",
 
       "description": "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.",
 
       "type": "string",
 
       "type": "string",
       "default": "Wikidata property P3050",
+
      "required": false,
      "required": false
+
       "default": "Wikidata property P3050"
 
     },
 
     },
 
     "name": {
 
     "name": {
Line 63: Line 68:
 
       "description": "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)\".",
 
       "description": "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)\".",
 
       "type": "string",
 
       "type": "string",
       "default": "{{PAGENAMEBASE}}",
+
      "required": false,
      "required": false
+
       "default": "{{PAGENAMEBASE}}"
 
     }
 
     }
 
   },
 
   },
Line 75: Line 80:
  
 
==Tracking categories==
 
==Tracking categories==
; "id" parameter exists
+
; template with ID
 +
* {{clc|FACR player ID different from Wikidata}}
 
* {{clc|FACR player ID not in Wikidata}}
 
* {{clc|FACR player ID not in Wikidata}}
* {{clc|FACR player ID different from Wikidata}}
+
; template missing ID
* {{clc|FACR player ID same as Wikidata}}
+
* {{clc|FACR player template missing ID and not in Wikidata}}
; "id" parameter does not exist
 
* {{clc|FACR player template missing ID}}
 
  
<includeonly>{{sandbox other||
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Association football external link templates]]
 
[[Category:Association football external link templates]]

Latest revision as of 00:40, 10 May 2019

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 Template:Property:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

Usage:

Template:Tlcw

Output:

URL:

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

Named parameters

Usage:

Template:Tlcw

Output:

URL:

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

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

template with ID
template missing ID