Difference between revisions of "Template:COV profile/doc"
imported>Zyxw (create) |
imported>Zyxw m (→See also: update) |
||
| (11 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
{{Template shortcut|COV|cov}} | {{Template shortcut|COV|cov}} | ||
{{Uses Wikidata|P4062}} | {{Uses Wikidata|P4062}} | ||
| − | {{Lua|Module:EditAtWikidata}} | + | {{Tracks Wikidata|P4062}} |
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at the official website of the [[Czech Olympic Committee]], known in [[Czech language|Czech]] as ''Český olympijský výbor'' (ČOV). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at the official website of the [[Czech Olympic Committee]], known in [[Czech language|Czech]] as ''Český olympijský výbor'' (ČOV). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
| Line 16: | Line 17: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| − | ; Using [[Wikidata]] property {{ | + | ; Using [[Wikidata]] property {{Property|P4062}} |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| Line 23: | Line 24: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| − | ; | + | ; URLs |
| − | : <kbd>[ | + | : <kbd>[https://www.olympic.cz/sportovec/1806--jaroslava-bajerova https://www.olympic.cz/sportovec/{{Hilite|1806}}--jaroslava-bajerova]</kbd> |
| + | : <kbd>[https://www.olympic.cz/sportovec/1806 https://www.olympic.cz/sportovec/{{Hilite|1806}}]</kbd> | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 1806 | Jaroslava Bajerová }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 1806 | Jaroslava Bajerová }}</code> |
; Output | ; Output | ||
| − | : {{{{BASEPAGENAME}} | 1806 | Jaroslava Bajerová }} | + | :* {{{{BASEPAGENAME}} | 1806 | Jaroslava Bajerová }} |
=== Named parameters === | === Named parameters === | ||
| − | ; | + | ; URLs |
| − | : <kbd>[ | + | : <kbd>[https://www.olympic.cz/sportovec/1561--martin-podhrasky https://www.olympic.cz/sportovec/{{Hilite|1561}}--martin-podhrasky]</kbd> |
| + | : <kbd>[https://www.olympic.cz/sportovec/1561 https://www.olympic.cz/sportovec/{{Hilite|1561}}]</kbd> | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 1561 | name= Martin Podhráský }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 1561 | name= Martin Podhráský }}</code> |
; Output | ; Output | ||
| − | : {{{{BASEPAGENAME}} | id= 1561 | name= Martin Podhráský }} | + | :* {{{{BASEPAGENAME}} | id= 1561 | name= Martin Podhráský }} |
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
; Output | ; Output | ||
| − | : {{ {{BASEPAGENAME}} }} | + | :* {{ {{BASEPAGENAME}} }} |
== TemplateData == | == TemplateData == | ||
| Line 58: | Line 61: | ||
"label": "id", | "label": "id", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 1806 is the ID portion of | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 1806 is the ID portion of https://www.olympic.cz/sportovec/1806 or https://www.olympic.cz/sportovec/1806--jaroslava-bajerova. This parameter is optional if Wikidata property P4062 exists, but required if not.", |
"type": "number", | "type": "number", | ||
"required": false, | "required": false, | ||
| Line 78: | Line 81: | ||
} | } | ||
</templatedata> | </templatedata> | ||
| + | |||
| + | == Tracking categories == | ||
| + | * {{clc|COV profile ID different from Wikidata}} | ||
| + | * {{clc|COV profile ID not in Wikidata}} | ||
| + | |||
| + | == Templates and modules used == | ||
| + | * [[Template:First word]], implemented with [[Module:String]] | ||
| + | * [[Module:EditAtWikidata]] | ||
| + | * [[Module:WikidataCheck]] | ||
== See also == | == See also == | ||
| Line 83: | Line 95: | ||
* {{tl|AOC profile}} for links to profiles from the [[Australian Olympic Committee]] | * {{tl|AOC profile}} for links to profiles from the [[Australian Olympic Committee]] | ||
* {{tl|BOC profile}} for links to profiles from the [[Brazilian Olympic Committee]] | * {{tl|BOC profile}} for links to profiles from the [[Brazilian Olympic Committee]] | ||
| + | * {{tl|Chinese Olympic Committee profile}} for links to profiles from the [[Chinese Olympic Committee]] | ||
| + | * {{tl|CNOSF profile}} for links to profiles from the [[French National Olympic and Sports Committee|''Comité National Olympique et Sportif Français'']] | ||
| + | * {{tl|COA profile}} for links to profiles from the [[Argentine Olympic Committee|''Comité Olímpico Argentino'']] | ||
* {{tl|COC profile}} for links to profiles from the [[Canadian Olympic Committee]] | * {{tl|COC profile}} for links to profiles from the [[Canadian Olympic Committee]] | ||
| − | * {{tl|COE profile}} for links to profiles from [[Spanish Olympic Committee|''Comité Olímpico Español'']] | + | * {{tl|COE profile}} for links to profiles from the [[Spanish Olympic Committee|''Comité Olímpico Español'']] |
| − | * {{tl|LOK profile}} for links to profiles from [[Latvian Olympic Committee|''Latvijas Olimpiskā Komiteja'']] | + | * {{tl|CONI profile}} for links to profiles from the [[Italian National Olympic Committee|''Comitato Olimpico Nazionale Italiano'']] |
| − | * {{tl| | + | * {{tl|COSR profile}} for links to profiles from the [[Romanian Olympic and Sports Committee|''Comitetul Olimpic și Sportiv Român'']] |
| + | * {{tl|DOSB profile}} for links to profiles from the [[German Olympic Sports Confederation|''Deutscher Olympischer Sportbund'']] | ||
| + | * {{tl|LOK profile}} for links to profiles from the [[Latvian Olympic Committee|''Latvijas Olimpiskā Komiteja'']] | ||
| + | * {{tl|MOB profile}} for links to profiles from the [[Hungarian Olympic Committee|''Magyar Olimpiai Bizottság'']] | ||
| + | * {{tl|NZOC profile}} for links to profiles from the [[New Zealand Olympic Committee]] | ||
| + | * {{tl|OKS profile}} for links to profiles from the [[Olympic Committee of Serbia|''Olimpijski Komitet Srbije'']] | ||
| + | * {{[[Template:PKOl profile|<span style="font-family: 'Times New Roman', Times, serif; font-size:105%;">PKOl</span> profile]]}} for links to profiles from the [[Polish Olympic Committee|''Polski Komitet Olimpijski'']] | ||
| + | * {{tl|SNOC profile}} for links to profiles from the [[Singapore National Olympic Council]] | ||
| + | * {{tl|SOK profile}} for links to profiles from the [[Swedish Olympic Committee|''Sveriges Olympiska Kommitté'']] | ||
| + | * {{tl|Team GB}} for links to profiles from [[Team GB]] (the [[British Olympic Association]]) | ||
| + | * {{tl|USOPC profile}} for links to profiles from the [[United States Olympic & Paralympic Committee]] | ||
== External links == | == External links == | ||
| − | * [ | + | * [https://www.olympic.cz/sportovec/seznam Athlete search at Olympic.cz] {{in lang|cs}} |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
| Line 96: | Line 121: | ||
[[Category:Olympics external link templates]] | [[Category:Olympics external link 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 16:53, 30 September 2020
| This is a documentation subpage for Template:COV profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| This template uses Lua: |
Template:COV profile displays an external link to an athlete's profile at the official website of the Czech Olympic Committee, known in Czech as Český olympijský výbor (ČOV). It is intended for use in the external links section of an article.
Contents
Usage
- Unnamed parameters
{{COV profile | ID }}{{COV profile | ID | NAME }}
- Named parameters
{{COV profile | id= ID }}{{COV profile | id= ID | name= NAME }}
- Using Wikidata property Template:Property
{{COV profile}}{{COV profile | name= NAME }}
Examples
Unnamed parameters
- URLs
- https://www.olympic.cz/sportovec/1806--jaroslava-bajerova
- https://www.olympic.cz/sportovec/1806
- Usage
* {{COV profile | 1806 | Jaroslava Bajerová }}
- Output
-
- Jaroslava Bajerová at the Český olympijský výbor (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
- Usage
* {{COV profile | id= 1561 | name= Martin Podhráský }}
- Output
-
- Martin Podhráský at the Český olympijský výbor (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
- Usage
* {{COV profile}}
- Output
-
- Template:PAGENAMEBASE at the Český olympijský výbor (in Czech)Script error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for COV profile
This template displays an external link to an athlete's profile at the official website of the Czech Olympic Committee, known in Czech as Český olympijský výbor (ČOV). 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: 1806 is the ID portion of https://www.olympic.cz/sportovec/1806 or https://www.olympic.cz/sportovec/1806--jaroslava-bajerova. This parameter is optional if Wikidata property P4062 exists, but required if not.
| Number | 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 athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".
| String | optional |
Tracking categories
Templates and modules used
- Template:First word, implemented with Module:String
- Module:EditAtWikidata
- Module:WikidataCheck
See also
- {{IOC profile}} for links to profiles from the International Olympic Committee
- {{AOC profile}} for links to profiles from the Australian Olympic Committee
- {{BOC profile}} for links to profiles from the Brazilian Olympic Committee
- {{Chinese Olympic Committee profile}} for links to profiles from the Chinese Olympic Committee
- {{CNOSF profile}} for links to profiles from the Comité National Olympique et Sportif Français
- {{COA profile}} for links to profiles from the Comité Olímpico Argentino
- {{COC profile}} for links to profiles from the Canadian Olympic Committee
- {{COE profile}} for links to profiles from the Comité Olímpico Español
- {{CONI profile}} for links to profiles from the Comitato Olimpico Nazionale Italiano
- {{COSR profile}} for links to profiles from the Comitetul Olimpic și Sportiv Român
- {{DOSB profile}} for links to profiles from the Deutscher Olympischer Sportbund
- {{LOK profile}} for links to profiles from the Latvijas Olimpiskā Komiteja
- {{MOB profile}} for links to profiles from the Magyar Olimpiai Bizottság
- {{NZOC profile}} for links to profiles from the New Zealand Olympic Committee
- {{OKS profile}} for links to profiles from the Olimpijski Komitet Srbije
- {{PKOl profile}} for links to profiles from the Polski Komitet Olimpijski
- {{SNOC profile}} for links to profiles from the Singapore National Olympic Council
- {{SOK profile}} for links to profiles from the Sveriges Olympiska Kommitté
- {{Team GB}} for links to profiles from Team GB (the British Olympic Association)
- {{USOPC profile}} for links to profiles from the United States Olympic & Paralympic Committee
External links
- Athlete search at Olympic.cz (in Czech)