Template:CONI profile/doc: Difference between revisions
add new_id |
update examples |
||
Line 9: | Line 9: | ||
== Usage == |
== Usage == |
||
; With ID in template |
|||
; Unnamed parameters |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> |
||
; With ID in Wikidata property |
|||
; Named parameters |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
; Using [[Wikidata]] property {{Property|4069}} |
|||
: <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 25: | Line 23: | ||
== Examples == |
== Examples == |
||
=== |
=== With name in template === |
||
; Usage |
; Usage |
||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | new_id= {{Highlight|1865}} | name= Carolina Kostner }}</code> |
|||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|1865}} | Carolina Kostner }}</code> |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|1865}} | Carolina Kostner }}</code> |
||
; Output |
; Output |
||
⚫ | |||
:* {{{{BASEPAGENAME}} | 1865 | Carolina Kostner }} |
:* {{{{BASEPAGENAME}} | 1865 | Carolina Kostner }} |
||
Line 44: | Line 44: | ||
: http://www.pyeongchang2018.coni.it/en/home-english/athletes/scheda_atleta/946-Carolina_Kostner.html |
: http://www.pyeongchang2018.coni.it/en/home-english/athletes/scheda_atleta/946-Carolina_Kostner.html |
||
=== |
=== With name of Wikipedia article === |
||
; Usage |
; Usage in article [[Simone Buti]] |
||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | new_id= {{Highlight|1006}} }}</code> |
||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|1006}} }}</code> |
||
; Output |
; Output |
||
⚫ | |||
:* {{{{BASEPAGENAME}} | new_id= 1006 | name= Simone Buti }} |
:* {{{{BASEPAGENAME}} | new_id= 1006 | name= Simone Buti }} |
||
:* {{{{BASEPAGENAME}} | 1006 | Simone Buti }} |
|||
; Current ID number |
; Current ID number |
||
Line 78: | Line 78: | ||
"description": "This template displays an external link to an athlete's profile at the official website of the Italian National Olympic Committee, known in Italian as Comitato Olimpico Nazionale Italiano (CONI). It is intended for use in the external links section of an article.", |
"description": "This template displays an external link to an athlete's profile at the official website of the Italian National Olympic Committee, known in Italian as Comitato Olimpico Nazionale Italiano (CONI). It is intended for use in the external links section of an article.", |
||
"params": { |
"params": { |
||
" |
"new_id": { |
||
"label": "ID", |
"label": "ID", |
||
"aliases": [" |
"aliases": ["id", "1"], |
||
"description": "The ID number in the the URL, such as 1865 in https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1865-Carolina_Kostner.html. This parameter is optional if Wikidata property P4069 exists, but required if not.", |
"description": "The ID number in the the URL, such as 1865 in https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1865-Carolina_Kostner.html. This parameter is optional if Wikidata property P4069 exists, but required if not.", |
||
"default": "Wikidata property P4069", |
"default": "Wikidata property P4069", |
||
Line 98: | Line 98: | ||
}, |
}, |
||
"paramOrder": [ |
"paramOrder": [ |
||
" |
"new_id", |
||
"name" |
"name" |
||
] |
] |
Revision as of 03:13, 6 September 2022
This is a documentation subpage for Template:CONI profile. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:CONI profile displays an external link to an athlete's profile at the official website of the Italian National Olympic Committee, known in Italian as Comitato Olimpico Nazionale Italiano (CONI). It is intended for use in the external links section of an article.
Usage
- With ID in template
{{CONI profile | new_id= ID }}
{{CONI profile | new_id= ID | name= NAME }}
{{CONI profile | id= ID }}
{{CONI profile | id= ID | name= NAME }}
{{CONI profile | ID }}
{{CONI profile | ID | NAME }}
- With ID in Wikidata property
{{CONI profile}}
{{CONI profile | name= NAME }}
Examples
With name in template
- Usage
* {{CONI profile | new_id= 1865 | name= Carolina Kostner }}
* {{CONI profile | 1865 | Carolina Kostner }}
- Output
-
- Carolina Kostner at the Comitato Olimpico Nazionale Italiano (in Italian)
- {{CONI profile}} template missing ID and not present in Wikidata.
- Current ID number
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1865-Carolina_Kostner.html (at website)
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1865 (in template)
- Former ID number
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/998-Carolina_Kostner.html (archived 2022-07-02)
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/998 (archived 2022-03-12)
- http://www.coni.it/it/atleti/scheda-atleta/scheda_atleta/998 (archived 2020-11-23)
- Profile with different ID number at CONI.it (for PyeongChang 2018 Winter Olympics)
- http://www.pyeongchang2018.coni.it/en/home-english/athletes/scheda_atleta/946-Carolina_Kostner.html
With name of Wikipedia article
- Usage in article Simone Buti
* {{CONI profile | new_id= 1006 }}
* {{CONI profile | 1006 }}
- Output
-
- Simone Buti at the Comitato Olimpico Nazionale Italiano (in Italian)
- {{CONI profile}} template missing ID and not present in Wikidata.
- Current ID number
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1006-SIMONE_BUTI.html (at website)
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1006 (in template)
- Former ID number
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1067-Simone_Buti.html (archived 2022-07-02)
- https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1067 (archived 2021-07-31)
- http://www.coni.it/it/atleti/scheda-atleta/scheda_atleta/1067 (archived 2020-11-22)
- Profile with different ID number at CONI.it (for Rio 2016 Summer Olympics)
- http://www.rio2016.coni.it/en/home-english/italia-team/the-team/scheda_atleta/296-SIMONE_BUTI.html
No parameters and Wikidata property not defined
- Usage
* {{CONI profile}}
- Output
-
- {{CONI profile}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for CONI profile
This template displays an external link to an athlete's profile at the official website of the Italian National Olympic Committee, known in Italian as Comitato Olimpico Nazionale Italiano (CONI). It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | new_id id 1 | The ID number in the the URL, such as 1865 in https://www.coni.it/it/italia-team/atleti/scheda-atleta/scheda_atleta/1865-Carolina_Kostner.html. This parameter is optional if Wikidata property P4069 exists, but required if not.
| Number | optional |
Name | name 2 | The link text, which should be the name of the person. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".
| String | optional |
Tracking categories
- Category:CONI profile template with ID different from Wikidata (3)
- Category:CONI profile template with ID not in Wikidata (0)
- Category:CONI profile template using Wikidata (0)
- Category:CONI profile template missing ID and not in Wikidata (0)
Templates and modules used
- Template:First word, implemented with Module:String
- Module:EditAtWikidata
- Module:WikidataCheck
See also
- {{Olympics.com 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
- {{COSR profile}} for links to profiles from the Comitetul Olimpic și Sportiv Român
- {{COV profile}} for links to profiles from the Český olympijský výbor
- {{DOSB profile}} for links to profiles from the Deutscher Olympischer Sportbund
- {{HOO profile}} for links to profiles from the Hrvatski olimpijski odbor
- {{LOK profile}} for links to profiles from the Latvijas Olimpiskā Komiteja
- {{MOB profile}} for links to profiles from the Magyar Olimpiai Bizottság
- {{NOCNSF profile}} links to profiles of Dutch athletes at NOCNSF.nl
- {{TeamNL profile}} links to profiles of Dutch athletes at TeamNL.org
- {{NZOC profile}} for links to profiles from the New Zealand Olympic Committee
- {{OFI profile}} for links to profiles from the Olympic Federation of Ireland
- {{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é
- {{SOSV profile}} for links to profiles from the Slovenský olympijský a športový výbor
- {{Team Belgium}} for links to profiles from Team Belgium (the Belgian Olympic and Interfederal Committee)
- {{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