Jump to content

Template:CONI profile/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add new_id
update examples
Line 9: Line 9:


== Usage ==
== Usage ==
; With ID in template
; Unnamed parameters
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | new_id= ''ID'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | new_id= ''ID'' | name= ''NAME'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
: <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
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | new_id= ''ID'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | new_id= ''ID'' | name= ''NAME'' }}</code>

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


=== Unnamed parameters ===
=== 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}} | new_id= 1865 | name= Carolina Kostner }}
:* {{{{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


=== Named parameters ===
=== With name of Wikipedia article ===
; Usage
; Usage in article [[Simone Buti]]
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= {{Highlight|1006}} | name= Simone Buti }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | new_id= {{Highlight|1006}} }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | new_id= {{Highlight|1006}} | name= Simone Buti }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|1006}} }}</code>


; Output
; Output
:* {{{{BASEPAGENAME}} | id= 1006 | name= Simone Buti }}
:* {{{{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": {
"id": {
"new_id": {
"label": "ID",
"label": "ID",
"aliases": ["1", "new_id"],
"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": [
"id",
"new_id",
"name"
"name"
]
]

Revision as of 03:13, 6 September 2022

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:CONI profile in articles based on its 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.

Template parameters

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

Default
Wikidata property P4069
Example
1865
Numberoptional
Namename 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)".

Default
{{PAGENAMEBASE}}
Example
Carolina Kostner
Stringoptional

Tracking categories

Templates and modules used

See also