Difference between revisions of "Template:FEI/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update URLs)
imported>Zyxw
(update examples, add category)
Line 29: Line 29:
 
:* {{{{BASEPAGENAME}} | 10000458 | Elizabeth Madden }}
 
:* {{{{BASEPAGENAME}} | 10000458 | Elizabeth Madden }}
  
; URL used in template
+
; URLs used in template
: <kbd>[https://www.fei.org/bios/Person/10000458 https://www.fei.org/bios/Person/{{hilite|10000458}}]</kbd>
+
: <kbd>[https://www.fei.org/athlete/10000458/MADDEN-Elizabeth https://www.fei.org/athlete/{{hilite|10000458}}/MADDEN-Elizabeth]</kbd>
 +
: <kbd>[https://www.fei.org/bios/Person/10000458/MADDEN_Elizabeth https://www.fei.org/bios/Person/{{hilite|10000458}}/MADDEN_Elizabeth]</kbd>
  
 
; Other URLs
 
; Other URLs
: <kbd>[https://www.fei.org/bios/Person/10000458/MADDEN_Elizabeth https://www.fei.org/bios/Person/{{hilite|10000458}}/MADDEN_Elizabeth]</kbd>
 
: <kbd>[https://www.fei.org/athlete/10000458/MADDEN-Elizabeth https://www.fei.org/athlete/{{hilite|10000458}}/MADDEN-Elizabeth]</kbd>
 
 
: <kbd>[https://data.fei.org/Person/Detail.aspx?personFeiID=10000458 https://data.fei.org/Person/Detail.aspx?personFeiID={{hilite|10000458}}]</kbd>
 
: <kbd>[https://data.fei.org/Person/Detail.aspx?personFeiID=10000458 https://data.fei.org/Person/Detail.aspx?personFeiID={{hilite|10000458}}]</kbd>
 
: <kbd>[https://data.fei.org/Person/Performance.aspx?personFeiID=10000458 https://data.fei.org/Person/Performance.aspx?personFeiID={{hilite|10000458}}]</kbd>
 
: <kbd>[https://data.fei.org/Person/Performance.aspx?personFeiID=10000458 https://data.fei.org/Person/Performance.aspx?personFeiID={{hilite|10000458}}]</kbd>
Line 45: Line 44:
 
:* {{{{BASEPAGENAME}} | id= 10000156 | name= Phillip Dutton }}
 
:* {{{{BASEPAGENAME}} | id= 10000156 | name= Phillip Dutton }}
  
; URL used in template
+
; URLs used in template
: <kbd>[https://www.fei.org/bios/Person/10000156 https://www.fei.org/bios/Person/{{hilite|10000156}}]</kbd>
+
: <kbd>[https://www.fei.org/athlete/10000156/DUTTON-Phillip https://www.fei.org/athlete/{{hilite|10000156}}/DUTTON-Phillip]</kbd>
 +
: <kbd>[https://www.fei.org/bios/Person/10000156/DUTTON_Phillip https://www.fei.org/bios/Person/{{hilite|10000156}}/DUTTON_Phillip]</kbd>
  
 
; Other URLs
 
; Other URLs
: <kbd>[https://www.fei.org/bios/Person/10000156/DUTTON_Phillip https://www.fei.org/bios/Person/{{hilite|10000156}}/DUTTON_Phillip]</kbd>
 
: <kbd>[https://www.fei.org/athlete/10000156/DUTTON-Phillip https://www.fei.org/athlete/{{hilite|10000156}}/DUTTON-Phillip]</kbd>
 
 
: <kbd>[https://data.fei.org/Person/Detail.aspx?personFeiID=10000156 https://data.fei.org/Person/Detail.aspx?personFeiID={{hilite|10000156}}]</kbd>
 
: <kbd>[https://data.fei.org/Person/Detail.aspx?personFeiID=10000156 https://data.fei.org/Person/Detail.aspx?personFeiID={{hilite|10000156}}]</kbd>
 
: <kbd>[https://data.fei.org/Person/Performance.aspx?personFeiID=10000156 https://data.fei.org/Person/Performance.aspx?personFeiID={{hilite|10000156}}]</kbd>
 
: <kbd>[https://data.fei.org/Person/Performance.aspx?personFeiID=10000156 https://data.fei.org/Person/Performance.aspx?personFeiID={{hilite|10000156}}]</kbd>
Line 70: Line 68:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],  
 
       "aliases": ["1"],  
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 10000458 is the ID portion of https://www.fei.org/bios/Person/10000458/MADDEN_Elizabeth, https://www.fei.org/athlete/10000458/MADDEN-Elizabeth, https://data.fei.org/Person/Detail.aspx?personFeiID=10000458, or https://data.fei.org/Person/Performance.aspx?personFeiID=10000458. This parameter is optional if Wikidata property P3111 exists, but required if not.",
+
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 10000458 is the ID portion of https://www.fei.org/athlete/10000458/MADDEN-Elizabeth, https://www.fei.org/bios/Person/10000458/MADDEN_Elizabeth, https://data.fei.org/Person/Detail.aspx?personFeiID=10000458, or https://data.fei.org/Person/Performance.aspx?personFeiID=10000458. This parameter is optional if Wikidata property P3111 exists, but required if not.",
 
       "type": "number",
 
       "type": "number",
 
       "required": false,
 
       "required": false,
Line 99: Line 97:
  
 
== External links ==
 
== External links ==
 +
* [https://www.fei.org/athletes/ Athletes search page at www.FEI.org]
 
* [https://www.fei.org/bios/ Biographies search page at www.FEI.org]
 
* [https://www.fei.org/bios/ Biographies search page at www.FEI.org]
* [https://www.fei.org/athletes/ Athletes search page at www.FEI.org]
 
 
* [https://data.fei.org/Person/Search.aspx Person search page at data.FEI.org]
 
* [https://data.fei.org/Person/Search.aspx Person search page at data.FEI.org]
  
Line 110: Line 108:
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
 +
[[Category:Templates containing multiple external links]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 09:54, 18 February 2020

Template:Uses Wikidata Template:Tracks Wikidata

Template:FEI displays an external link to an equestrian athlete's profile at FEI.org, the official website of the International Federation for Equestrian Sports (FEI: Fédération Équestre Internationale). It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{FEI | ID }}
{{FEI | ID | NAME }}
Named parameters
{{FEI | id= ID }}
{{FEI | id= ID | name= NAME }}
Using Wikidata property Template:Property
{{FEI}}
{{FEI | name= NAME }}

Examples

Unnamed parameters

Usage
* {{FEI | 10000458 | Elizabeth Madden }}
Output
URLs used in template
https://www.fei.org/athlete/10000458/MADDEN-Elizabeth
https://www.fei.org/bios/Person/10000458/MADDEN_Elizabeth
Other URLs
https://data.fei.org/Person/Detail.aspx?personFeiID=10000458
https://data.fei.org/Person/Performance.aspx?personFeiID=10000458

Named parameters

Usage
* {{FEI | id= 10000156 | name= Phillip Dutton }}
Output
URLs used in template
https://www.fei.org/athlete/10000156/DUTTON-Phillip
https://www.fei.org/bios/Person/10000156/DUTTON_Phillip
Other URLs
https://data.fei.org/Person/Detail.aspx?personFeiID=10000156
https://data.fei.org/Person/Performance.aspx?personFeiID=10000156

No parameters and Wikidata property not defined

Usage
* {{FEI}}
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 FEI

This template displays an external link to an equestrian athlete's profile at FEI.org, the official website of the International Federation for Equestrian Sports (FEI: Fédération Équestre Internationale). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 10000458 is the ID portion of https://www.fei.org/athlete/10000458/MADDEN-Elizabeth, https://www.fei.org/bios/Person/10000458/MADDEN_Elizabeth, https://data.fei.org/Person/Detail.aspx?personFeiID=10000458, or https://data.fei.org/Person/Performance.aspx?personFeiID=10000458. This parameter is optional if Wikidata property P3111 exists, but required if not.

Default
Wikidata property P3111
Numberoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify 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 "(equestrian)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID
template missing ID

External links