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

From blackwiki
Jump to navigation Jump to search
imported>Monkbot
m (→‎External links: Task 15: language icon template(s) replaced (2×);)
imported>Zyxw
m (→‎See also: update)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- 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}}
 +
{{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 18: Line 21:
  
 
=== Example 1 ===
 
=== Example 1 ===
[[Mireia Belmonte]]
 
 
; URL using "id1"
 
: <kbd>[http://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465* http://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query={{Hilite|1=1341*&DEPORTISTA=465*}}]</kbd>
 
 
; URLs using "id2"
 
: <kbd>[http://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d http://www.coe.es/COE/bd_perso.nsf/VBusqDeport/{{Hilite|80332981c25c4a5fc1256d5700616d0d}}]</kbd>
 
: <kbd>[http://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d http://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/{{Hilite|80332981c25c4a5fc1256d5700616d0d}}]</kbd>
 
 
 
; Usage
 
; Usage
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id1= 1341*&DEPORTISTA=465* | name= Mireia Belmonte García }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id1= 1341*&DEPORTISTA=465* | name= Mireia Belmonte García }}</code>
Line 36: Line 30:
 
:* {{{{BASEPAGENAME}} | id2= 80332981c25c4a5fc1256d5700616d0d | name= Mireia Belmonte García }}
 
:* {{{{BASEPAGENAME}} | id2= 80332981c25c4a5fc1256d5700616d0d | name= Mireia Belmonte García }}
 
:* {{{{BASEPAGENAME}} | id1= 1341*&DEPORTISTA=465* | id2= 80332981c25c4a5fc1256d5700616d0d | name= Mireia Belmonte García }}
 
:* {{{{BASEPAGENAME}} | id1= 1341*&DEPORTISTA=465* | id2= 80332981c25c4a5fc1256d5700616d0d | name= Mireia Belmonte García }}
 
=== Example 2 ===
 
[[Javier Fernández (figure skater)|Javier Fernández]]
 
  
 
; URL using "id1"
 
; URL using "id1"
: <kbd>[http://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=6484*&DEPORTISTA=4790* http://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query={{Hilite|1=6484*&DEPORTISTA=4790*}}]</kbd>
+
: <kbd>[https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465* https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query={{Hilite|1=1341*&DEPORTISTA=465*}}]</kbd>
  
 
; URLs using "id2"
 
; URLs using "id2"
: <kbd>[http://www.coe.es/COE/bd_perso.nsf/VBusqDeport/e01d1ef660f65842c125724800596c0a http://www.coe.es/COE/bd_perso.nsf/VBusqDeport/{{Hilite|e01d1ef660f65842c125724800596c0a}}]</kbd>
+
: <kbd>[https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/{{Hilite|80332981c25c4a5fc1256d5700616d0d}}]</kbd>
: <kbd>[http://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/e01d1ef660f65842c125724800596c0a http://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/{{Hilite|e01d1ef660f65842c125724800596c0a}}]</kbd>
+
: <kbd>[https://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d https://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/{{Hilite|80332981c25c4a5fc1256d5700616d0d}}]</kbd>
 +
: <kbd>[https://www.coe.es/coe/bd_perso.nsf/3c6347f911f2333bc12578ca005b2cc5/80332981c25c4a5fc1256d5700616d0d https://www.coe.es/coe/bd_perso.nsf/3c6347f911f2333bc12578ca005b2cc5/{{Hilite|80332981c25c4a5fc1256d5700616d0d}}]</kbd>
 +
: <kbd>[https://www.coe.es/coe/bd_perso.nsf/becadosHTML/80332981c25c4a5fc1256d5700616d0d https://www.coe.es/coe/bd_perso.nsf/becadosHTML/{{Hilite|80332981c25c4a5fc1256d5700616d0d}}]</kbd>
  
 +
=== Example 2 ===
 
; Usage
 
; Usage
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | name= Javier Fernández López }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | name= Javier Fernández López }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id2= e01d1ef660f65842c125724800596c0a | name= Javier Fernández López }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id2= E01D1EF660F65842C125724800596C0A | name= Javier Fernández López }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | id2= e01d1ef660f65842c125724800596c0a | name= Javier Fernández López }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | id2= E01D1EF660F65842C125724800596C0A | name= Javier Fernández López }}</code>
  
 
; Output
 
; Output
 
:* {{{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | name= Javier Fernández López }}
 
:* {{{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | name= Javier Fernández López }}
:* {{{{BASEPAGENAME}} | id2= e01d1ef660f65842c125724800596c0a | name= Javier Fernández López }}
+
:* {{{{BASEPAGENAME}} | id2= E01D1EF660F65842C125724800596C0A | name= Javier Fernández López }}
:* {{{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | id2= e01d1ef660f65842c125724800596c0a | name= Javier Fernández López }}
+
:* {{{{BASEPAGENAME}} | id1= 6484*&DEPORTISTA=4790* | id2= E01D1EF660F65842C125724800596C0A | name= Javier Fernández López }}
 +
 
 +
; URL using "id1"
 +
: <kbd>[https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=6484*&DEPORTISTA=4790* https://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query={{Hilite|1=6484*&DEPORTISTA=4790*}}]</kbd>
 +
 
 +
; URLs using "id2"
 +
: <kbd>[https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/E01D1EF660F65842C125724800596C0A https://www.coe.es/COE/bd_perso.nsf/VBusqDeport/{{Hilite|E01D1EF660F65842C125724800596C0A}}]</kbd>
 +
: <kbd>[https://www.coe.es/coe/bd_perso.nsf/636F272617572203C12572080082E57C/E01D1EF660F65842C125724800596C0A https://www.coe.es/coe/bd_perso.nsf/636F272617572203C12572080082E57C/{{Hilite|E01D1EF660F65842C125724800596C0A}}]</kbd>
 +
: <kbd>[https://www.coe.es/coe/bd_perso.nsf/3C6347F911F2333BC12578CA005B2CC5/E01D1EF660F65842C125724800596C0A https://www.coe.es/coe/bd_perso.nsf/3C6347F911F2333BC12578CA005B2CC5/{{Hilite|E01D1EF660F65842C125724800596C0A}}]</kbd>
 +
: <kbd>[https://www.coe.es/coe/bd_perso.nsf/becadosHTML/E01D1EF660F65842C125724800596C0A https://www.coe.es/coe/bd_perso.nsf/becadosHTML/{{Hilite|E01D1EF660F65842C125724800596C0A}}]</kbd>
  
 
=== No parameters ===
 
=== No parameters ===
Line 72: Line 75:
 
     "id1": {
 
     "id1": {
 
       "label": "id1",
 
       "label": "id1",
       "description": "The identifier in a URL such as http://www.coe.es/COE/bd_perso.nsf/2012FDeportistaN3?OpenForm&query=1341*&DEPORTISTA=465*, where 1341*&DEPORTISTA=465* is the identifier. This parameter is required if \"id2\" is not specified.",
+
       "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 http://www.coe.es/COE/bd_perso.nsf/VBusqDeport/80332981c25c4a5fc1256d5700616d0d or http://www.coe.es/coe/bd_perso.nsf/636f272617572203c12572080082e57c/80332981c25c4a5fc1256d5700616d0d, where 80332981c25c4a5fc1256d5700616d0d is the identifier. This parameter is required if \"id1\" is not specified.",
+
       "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 102: Line 106:
 
* {{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|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|COA profile}} for links to profiles from the [[Argentine Olympic Committee|''Comité Olímpico Argentino'']]
Line 112: Line 117:
 
* {{tl|MOB profile}} for links to profiles from the [[Hungarian Olympic Committee|''Magyar Olimpiai Bizottság'']]
 
* {{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|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|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|Team GB}} for links to profiles from [[Team GB]] (the [[British Olympic Association]])
* {{tl|USOC profile}} for links to profiles from the [[United States Olympic Committee]]
+
* {{tl|USOPC profile}} for links to profiles from the [[United States Olympic & Paralympic Committee]]
  
 
== External links ==
 
== External links ==
* [http://www.coe.es/2012/HOMEDEP2012.nsf/2012FDEPORTISTAN2?OpenForm Athlete search page at ''Comité Olímpico Español''] {{in lang|es}}
+
* [https://www.coe.es/2012/HOMEDEP2012.nsf/2012FDEPORTISTAN2?OpenForm Athlete search page at ''Comité Olímpico Español''] {{in lang|es}}
* [http://www.coe.es/2012/HomeFederaciones.nsf/FBuscadorDeportistasFederacion Advanced search page at ''Comité Olímpico Español''] {{in lang|es}}
+
* [https://www.coe.es/2012/HomeFederaciones.nsf/FBuscadorDeportistasFederacion Advanced search page at ''Comité Olímpico Español''] {{in lang|es}}
  
 
<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:Olympics external link templates]]
 
 
[[Category:Templates containing multiple external links]]
 
[[Category:Templates containing multiple external links]]
 +
[[Category:External link templates using Wikidata]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:54, 30 September 2020

Template:Template redirect Template:Uses Wikidata

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.

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

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

Template parameters

ParameterDescriptionTypeStatus
id1id1

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.

Stringoptional
id2id2

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.

Default
Wikidata property P8421
Stringoptional
namename

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

See also

External links