Difference between revisions of "Template:FACR player/doc"
imported>Zyxw |
imported>Zyxw m (update list, misc formatting) |
||
| (5 intermediate revisions 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 (see [[Wikipedia:Wikidata]]) --> |
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
{{Uses Wikidata|P3050}} | {{Uses Wikidata|P3050}} | ||
{{Tracks Wikidata|P3050}} | {{Tracks Wikidata|P3050}} | ||
| + | |||
| + | '''{{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 == | ||
| + | Unnamed parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | ||
| + | |||
| + | Named parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | Using [[Wikidata]] property {{Property|3050}}: | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | === Unnamed parameters === | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | PekhartTomas | Tomáš Pekhart }} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | PekhartTomas | Tomáš Pekhart }} | ||
| + | |||
| + | ''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> | ||
| + | |||
| + | === Named parameters === | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} CechPetr | name{{=}} Petr Čech }} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}} | id= CechPetr | name= Petr Čech }} | ||
| − | == | + | ''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> | |
| − | : | + | === No parameters and Wikidata property not defined === |
| + | ''Usage:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}}}} | ||
| − | + | ''Output:'' | |
| + | :* {{{{BASEPAGENAME}}<!-- -->}} | ||
| − | == | + | == TemplateData == |
| − | + | {{TemplateData header}} | |
| − | + | <templatedata> | |
| − | + | { | |
| + | "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": { | ||
| + | "id": { | ||
| + | "label": "id", | ||
| + | "aliases": ["1"], | ||
| + | "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", | ||
| + | "required": false, | ||
| + | "default": "Wikidata property P3050" | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "name", | ||
| + | "aliases": ["2"], | ||
| + | "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", | ||
| + | "required": false, | ||
| + | "default": "{{PAGENAMEBASE}}" | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
==Tracking categories== | ==Tracking categories== | ||
| − | + | ; template with ID | |
| − | * {{clc| | + | * {{clc|FACR player ID different from Wikidata}} |
| − | * {{clc| | + | * {{clc|FACR player ID not in Wikidata}} |
| − | * {{ | + | ; template missing ID |
| + | * {{clc|FACR player template missing ID and not in Wikidata}} | ||
| − | <includeonly>{{ | + | <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]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
| − | |||
}}</includeonly> | }}</includeonly> | ||
| − | |||
Latest revision as of 00:40, 10 May 2019
| This is a documentation subpage for Template:FACR player. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Property:
Examples
Unnamed parameters
Usage:
Output:
- Tomáš Pekhart at FAČR (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck
URL:
Named parameters
Usage:
Output:
- Petr Čech at FAČR (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck
URL:
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at FAČR (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 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.
| 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)".
| String | optional |
Tracking categories
- template with ID
- template missing ID