Template:COSR profile
| This template uses Lua: |
Template:COSR profile displays an external link to an athlete's profile at the official website of the Romanian Olympic and Sports Committee, known in Romanian as Comitetul Olimpic și Sportiv Român (COSR). It is intended for use in the external links section of an article.
Usage
[edit source]Omit the ID parameters to use the Wikidata property.
- Article name as link text
{{COSR profile | new_id= NEW ID }}{{COSR profile | new_id= NEW ID | old_id= OLD ID }}{{COSR profile | old_id= OLD ID }}{{COSR profile | id= OLD ID }}{{COSR profile | OLD ID }}
- Parameter as link text
{{COSR profile | new_id= NEW ID | name= NAME }}{{COSR profile | new_id= NEW ID | old_id= OLD ID | name= NAME }}{{COSR profile | old_id= OLD ID | name= NAME }}{{COSR profile | id= OLD ID | name= NAME }}{{COSR profile | OLD ID | NAME }}
Examples
[edit source]Example 1
[edit source]- Usage in Ancuța Bobocel
* {{COSR profile | new_id= bobocel-ancuta }}* {{COSR profile | new_id= bobocel-ancuta | old_id= ancuta-bobocel }}* {{COSR profile | old_id= ancuta-bobocel }}* {{COSR profile | ancuta-bobocel }}
- Output
-
- Ancuța Bobocel at the Comitetul Olimpic și Sportiv Român (in Romanian)
- Ancuța Bobocel at the Comitetul Olimpic și Sportiv Român (in Romanian) (archive)
- Ancuța Bobocel at the Comitetul Olimpic și Sportiv Român (in Romanian) (archived)
- Ancuța Bobocel at the Comitetul Olimpic și Sportiv Român (in Romanian) (archived)
- Current URLs with new ID
- https://www.cosr.ro/sportive/bobocel-ancuta
- https://www.cosr.ro/public/index.php/sportive/bobocel-ancuta
- Former URL with old ID
- https://www.cosr.ro/sportiv/ancuta-bobocel (archive)
Example 2
[edit source]- Usage in Nicolae Istrate
* {{COSR profile | new_id= istrate-nicolae }}* {{COSR profile | new_id= istrate-nicolae | old_id= nicolae-istrate }}* {{COSR profile | old_id= nicolae-istrate }}* {{COSR profile | id= nicolae-istrate }}
- Output
-
- Nicolae Istrate at the Comitetul Olimpic și Sportiv Român (in Romanian)
- Nicolae Istrate at the Comitetul Olimpic și Sportiv Român (in Romanian) (archive)
- Nicolae Istrate at the Comitetul Olimpic și Sportiv Român (in Romanian) (archived)
- Nicolae Istrate at the Comitetul Olimpic și Sportiv Român (in Romanian) (archived)
- Current URLs with new ID
- https://www.cosr.ro/sportive/istrate-nicolae
- https://www.cosr.ro/public/index.php/sportive/istrate-nicolae
- Former URL with old ID
- https://www.cosr.ro/sportiv/nicolae-istrate (archive)
No parameters and Wikidata property not defined
[edit source]- Usage
* {{COSR profile}}
- Output
-
- COSR profile at the Comitetul Olimpic și Sportiv Român (in Romanian) (archived)Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
TemplateData
[edit source]TemplateData for COSR profile
This template displays an external link to an athlete's profile at the official website of the Romanian Olympic and Sports Committee, known in Romanian as Comitetul Olimpic și Sportiv Român (COSR). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Current ID | new_id | The ID portion of the current URL, such as bobocel-ancuta in https://www.cosr.ro/sportive/bobocel-ancuta. This parameter is optional if using the "old_id" parameter or if Wikidata property P4067 exists, but required if not. | String | optional |
| Former ID | old_id id 1 | The ID portion of the former URL, such as ancuta-bobocel in https://www.cosr.ro/sportiv/ancuta-bobocel. This parameter is optional if using the "new_id" parameter or if Wikidata property P4067 exists, but required if not.
| String | optional |
| Name | name 2 | 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
[edit source]- template with
|old_id=,|id=or|1=
- Category:COSR profile template with ID different from Wikidata (0)
- Category:COSR profile template with ID not in Wikidata (0)
- template missing ID
Templates and modules used
[edit source]- {{PAGENAMEBASE}} and {{First word}}, implemented with Module:String
- {{EditAtWikidata}}, implemented with Module:EditAtWikidata
- {{WikidataCheck}}, implemented with Module:WikidataCheck