Difference between revisions of "Template:FEI"
imported>Zyxw (add preview only message if no ID in template or Wikidata) |
imported>Zyxw (include new URL) |
||
Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3111}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3111}} | ||
− | | [https://www.fei.org/ | + | | [https://www.fei.org/athlete/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3111}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] (and [https://www.fei.org/bios/Person/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3111}}|sep=,}} }} here]) at [[International Federation for Equestrian Sports|FEI]]<includeonly>{{EditAtWikidata|pid=P3111|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P3111|value={{{1|{{{id|}}}}}}|category=FEI template with ID|namespaces=0|nocatsame=1}} |
| <span class="error">{{[[Template:FEI|FEI]]}} template missing ID and not present in Wikidata.</span>{{#invoke:Preview warning|main|1=to find the ID, see the [https://www.fei.org/bios/ FEI biographies search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Afei.org Google search]}}{{Main other|[[Category:FEI template missing ID and not in Wikidata]]}} | | <span class="error">{{[[Template:FEI|FEI]]}} template missing ID and not present in Wikidata.</span>{{#invoke:Preview warning|main|1=to find the ID, see the [https://www.fei.org/bios/ FEI biographies search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Afei.org Google search]}}{{Main other|[[Category:FEI template missing ID and not in Wikidata]]}} |
Latest revision as of 09:51, 18 February 2020
{{{name}}} (and here) at FEITemplate:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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.
Contents
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
-
- Elizabeth Madden (and here) at FEIScript error: No such module "EditAtWikidata".Template:WikidataCheck
- 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
-
- Phillip Dutton (and here) at FEIScript error: No such module "EditAtWikidata".Template:WikidataCheck
- 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
-
- Template:PAGENAMEBASE (and here) at FEIScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 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.
| Number | optional |
name | name 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)".
| String | optional |
Tracking categories
- template with ID
- Category:FEI template with ID different from Wikidata (0)
- Category:FEI template with ID not in Wikidata (0)
- template missing ID
External links
- Athletes search page at www.FEI.org
- Biographies search page at www.FEI.org
- Person search page at data.FEI.org
The above documentation is transcluded from Template:FEI/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |