Jump to content

Template:European Athletics/doc

From Wikipedia, the free encyclopedia

Template:European Athletics displays an external link to an athlete's profile at the official website of European Athletics, the governing body for the sport of athletics in Europe. It is intended for use in the external links section of an article.

Usage

[edit]
Current ID at european-athletics.com
{{European Athletics | ID }}
{{European Athletics | ID | NAME }}
{{European Athletics | id= ID }}
{{European Athletics | id= ID | name= NAME }}
Former ID at european-athletics.org (archived)
{{European Athletics | old_id= ID }}
{{European Athletics | old_id= ID | name= NAME }}
{{European Athletics | old_id= ID | name= NAME | archive= NUMBER }}
Both IDs
{{European Athletics | ID | old_id= ID }}
{{European Athletics | ID | old_id= ID | archive= NUMBER }}
{{European Athletics | ID | NAME | old_id= ID }}
{{European Athletics | ID | NAME | old_id= ID | archive= NUMBER }}
{{European Athletics | id= ID | old_id= ID }}
{{European Athletics | id= ID | old_id= ID | archive= NUMBER }}
{{European Athletics | id= ID | name= NAME | old_id= ID }}
{{European Athletics | id= ID | name= NAME | old_id= ID | archive= NUMBER }}
Using Wikidata property
{{European Athletics}}
{{European Athletics | name= NAME }}

Examples

[edit]

Current ID in template

[edit]
Usage in the article Marisa Barros
* {{European Athletics | 14294793 }}
* {{European Athletics | portugal/marisa-barros-14294793 }}
Output
URLs
https://www.european-athletics.com/historical-data/athletes/-/14294793
https://www.european-athletics.com/historical-data/athletes/portugal/marisa-barros-14294793

Former ID in template (archived)

[edit]
Usage in the article Marisa Barros
* {{European Athletics | old_id= b/athlete=132854-barros-marisa }}
* {{European Athletics | old_id= b/athlete=132854-barros-marisa | archive= 20201128175227 }}
Output
URL
https://www.european-athletics.org/athletes/group=b/athlete=132854-barros-marisa/index.html (archived 2020-11-28)

Both IDs in template

[edit]
Usage in the article Kevin Mayer
* {{European Athletics | id= 14334978 | old_id= m/athlete=152778-mayer-kevin }}
* {{European Athletics | france/kevin-mayer-14334978 | old_id= m/athlete=152778-mayer-kevin | archive= 20201201162408 }}
Output
URLs
https://www.european-athletics.com/historical-data/athletes/-/14334978
https://www.european-athletics.com/historical-data/athletes/france/kevin-mayer-14334978
https://www.european-athletics.org/athletes/group=m/athlete=152778-mayer-kevin/index.html (archived 2020-12-01)

Current ID in Wikidata

[edit]
Usage in the article Kevin Mayer
* {{European Athletics}}
* {{European Athletics | name= Kevin Mayer }}
Output

No ID in template or Wikidata

[edit]
Usage
* {{European Athletics}}
Output

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:European Athletics in articles based on its TemplateData.

TemplateData for European Athletics

This template displays an external link to an athlete's profile at the official website of European Athletics, the governing body for the sport of athletics in Europe. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
Current IDid 1

The ID portion of the current URL, such as 14294793 or portugal/marisa-barros-14294793 in https://www.european-athletics.com/historical-data/athletes/portugal/marisa-barros-14294793. This parameter is optional if Wikidata property P3766 exists or if "old_id" is used.

Default
Wikidata property P3766
Example
14294793
Stringoptional
Namename 2

The link text, which should be the name of the person. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".

Default
{{PAGENAMEBASE}}
Example
Marisa Barros
Stringoptional
Former IDold_id

The ID portion of the former URL at European-Athletics.org. It causes the template in include a link to https://web.archive.org/web/20201201/https://www.european-athletics.org/athletes/group={{{old_id}}}/index.html.

Example
b/athlete=132854-barros-marisa
Stringoptional
Archive Date/Timearchive

A number representing the date/time in an Internet Archive URL for the European-Athletics.org link. It causes the template in include a link to https://web.archive.org/web/{{archive}}/https://www.european-athletics.org/athletes/group={{{old_id}}}/index.html.

Example
20201128175227
Numberoptional

Tracking categories

[edit]

See also

[edit]
[edit]