Difference between revisions of "Template:COV profile/doc"

From blackwiki
Jump to navigation Jump to search
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 {{WPL|id=o|P4062}}
+
; 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 ===
; URL
+
; URLs
: <kbd>[http://www.olympic.cz/sportovec/1806 http://www.olympic.cz/sportovec/{{Hilite|1806}}]</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 ===
; URL
+
; URLs
: <kbd>[http://www.olympic.cz/sportovec/1561 http://www.olympic.cz/sportovec/{{Hilite|1561}}]</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 http://www.olympic.cz/sportovec/1806. This parameter is optional if Wikidata property P4062 exists, but required if not.",
+
       "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|USOC profile}} for links to profiles from the [[United States Olympic Committee]]
+
* {{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'']]
 +
* &#123;&#123;[[Template:PKOl profile|<span style="font-family: 'Times New Roman', Times, serif;  font-size:105%;">PKOl</span> profile]]&#125;&#125; 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 ==
* [http://www.olympic.cz/sportovec/seznam Athlete search at the Czech Olympic Committee] {{cv icon}}
+
* [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

Template:Uses Wikidata Template:Tracks Wikidata

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.

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

Named parameters

URLs
https://www.olympic.cz/sportovec/1561--martin-podhrasky
https://www.olympic.cz/sportovec/1561
Usage
* {{COV profile | id= 1561 | name= Martin Podhráský }}
Output

No parameters and Wikidata property not defined

Usage
* {{COV profile}}
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 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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P4062
Numberoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

Templates and modules used

See also

External links