Difference between revisions of "Template:COE profile/doc"
imported>Zyxw m (add URLs) |
imported>Zyxw (updates for use of Wikidata) |
||
| Line 2: | Line 2: | ||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{Template redirect|Comité Olímpico Español}} | {{Template redirect|Comité Olímpico Español}} | ||
| + | {{Uses Wikidata|P8421}} | ||
| + | {{Lua|Module:EditAtWikidata}} | ||
| + | |||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at the official website of the [[Spanish Olympic Committee]], known in [[Spanish language|Spanish]] as ''Comité Olímpico Español'' (COE). 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 [[Spanish Olympic Committee]], known in [[Spanish language|Spanish]] as ''Comité Olímpico Español'' (COE). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
| Line 72: | Line 75: | ||
"id1": { | "id1": { | ||
"label": "id1", | "label": "id1", | ||
| − | "description": "The identifier in a URL such as https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465*, where 1341*&DEPORTISTA=465* is the identifier. This parameter is | + | "description": "The identifier in a URL such as https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465*, where 1341*&DEPORTISTA=465* is the identifier. This parameter is optional if \"id2\" is specified or if Wikidata property P8421 exists.", |
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
| Line 78: | Line 81: | ||
"id2": { | "id2": { | ||
"label": "id2", | "label": "id2", | ||
| − | "description": "The identifier in a URL such as https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d or https://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d, where 80332981c25c4a5fc1256d5700616d0d is the identifier. This parameter is | + | "description": "The identifier in a URL such as https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d or https://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d, where 80332981c25c4a5fc1256d5700616d0d is the identifier. This parameter is optional if \"id1\" is specified or if Wikidata property P8421 exists.", |
"type": "string", | "type": "string", | ||
| − | "required": false | + | "required": false, |
| + | "default": "Wikidata property P8421" | ||
}, | }, | ||
"name": { | "name": { | ||
| Line 124: | Line 128: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
| + | [[Category:Olympics external link templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| − | |||
[[Category:Templates containing multiple external links]] | [[Category:Templates containing multiple external links]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 13:48, 14 July 2020
| This is a documentation subpage for Template:COE profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Template redirect Template:Uses Wikidata
| This template uses Lua: |
Template:COE profile displays an external link to an athlete's profile at the official website of the Spanish Olympic Committee, known in Spanish as Comité Olímpico Español (COE). It is intended for use in the external links section of an article.
Contents
Usage
- Without "name" parameter (uses article name as link)
{{COE profile | id1= ID1 }}{{COE profile | id2= ID2 }}{{COE profile | id1= ID1 | id2= ID2 }}
- With "name" parameter
{{COE profile | id1= ID1 | name= NAME }}{{COE profile | id2= ID2 | name= NAME }}{{COE profile | id1= ID1 | id2= ID2 | name= NAME }}
Examples
Example 1
- Usage
* {{COE profile | id1= 1341*&DEPORTISTA=465* | name= Mireia Belmonte García }}* {{COE profile | id2= 80332981c25c4a5fc1256d5700616d0d | name= Mireia Belmonte García }}* {{COE profile | id1= 1341*&DEPORTISTA=465* | id2= 80332981c25c4a5fc1256d5700616d0d | name= Mireia Belmonte García }}
- Output
-
- Mireia Belmonte García (and hereScript error: No such module "EditAtWikidata".) at Comité Olímpico Español (in Spanish)
- Mireia Belmonte García at Comité Olímpico Español (in Spanish) Script error: No such module "EditAtWikidata".
- Mireia Belmonte García (and hereScript error: No such module "EditAtWikidata".) at Comité Olímpico Español (in Spanish)
- URL using "id1"
- https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465*
- URLs using "id2"
- https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d
- https://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d
- https://www.coe.es/coe/bd_perso.nsf/3c6347f911f2333bc12578ca005b2cc5/80332981c25c4a5fc1256d5700616d0d
- https://www.coe.es/coe/bd_perso.nsf/becadosHTML/80332981c25c4a5fc1256d5700616d0d
Example 2
- Usage
* {{COE profile | id1= 6484*&DEPORTISTA=4790* | name= Javier Fernández López }}* {{COE profile | id2= E01D1EF660F65842C125724800596C0A | name= Javier Fernández López }}* {{COE profile | id1= 6484*&DEPORTISTA=4790* | id2= E01D1EF660F65842C125724800596C0A | name= Javier Fernández López }}
- Output
-
- Javier Fernández López (and hereScript error: No such module "EditAtWikidata".) at Comité Olímpico Español (in Spanish)
- Javier Fernández López at Comité Olímpico Español (in Spanish) Script error: No such module "EditAtWikidata".
- Javier Fernández López (and hereScript error: No such module "EditAtWikidata".) at Comité Olímpico Español (in Spanish)
- URL using "id1"
- https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=6484*&DEPORTISTA=4790*
- URLs using "id2"
- https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/E01D1EF660F65842C125724800596C0A
- https://www.coe.es/coe/bd_perso.nsf/636F272617572203C12572080082E57C/E01D1EF660F65842C125724800596C0A
- https://www.coe.es/coe/bd_perso.nsf/3C6347F911F2333BC12578CA005B2CC5/E01D1EF660F65842C125724800596C0A
- https://www.coe.es/coe/bd_perso.nsf/becadosHTML/E01D1EF660F65842C125724800596C0A
No parameters
- Usage
* {{COE profile}}
- Output
-
- Template:PAGENAMEBASE at Comité Olímpico Español (in Spanish) Script error: No such module "EditAtWikidata".
TemplateData
TemplateData for COE profile
This template displays an external link to an athlete's profile at the official website of the Spanish Olympic Committee, known in Spanish as Comité Olímpico Español (COE). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id1 | id1 | The identifier in a URL such as https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465*, where 1341*&DEPORTISTA=465* is the identifier. This parameter is optional if "id2" is specified or if Wikidata property P8421 exists. | String | optional |
| id2 | id2 | The identifier in a URL such as https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d or https://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d, where 80332981c25c4a5fc1256d5700616d0d is the identifier. This parameter is optional if "id1" is specified or if Wikidata property P8421 exists.
| String | optional |
| name | name | 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 |
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
- {{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
- {{COV profile}} for links to profiles from the Český olympijský výbor
- {{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
- {{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 page at Comité Olímpico Español (in Spanish)
- Advanced search page at Comité Olímpico Español (in Spanish)