Template:ITRA/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:ITRA displays an external link to a runner's profile at the official website of the International Trail Running Association (ITRA), the governing body for trail running. It is intended for use in the external links section of an article.

Omit the ID to use the Wikidata property.

Article name as link text
{{ITRA | ID }}
{{ITRA | id= ID }}
Parameter as link text
{{ITRA | ID | NAME }}
{{ITRA | id= ID | name= NAME }}

Examples

[edit source]

Unnamed parameters

[edit source]
Usage
* {{ITRA | 117050 | Caroline Chaverot }}
Output
URLs using ITRA ID number
https://itra.run/RunnerSpace/117050 (used in template)
https://itra.run/RunnerSpace/CHAVEROT.Caroline/117050 (used in links at website)
Both URLs above redirect here
https://itra.run/api/RunnerSpace/GetRunnerSpace?memberString=jCCym%2BlkUHpTAXFTZqkM7Q%3D%3D

Named parameters

[edit source]
Usage
* {{ITRA | id= 184572 | name= Rob Krar }}
Output
URLs using ITRA ID number
https://itra.run/RunnerSpace/184572 (used in template)
https://itra.run/RunnerSpace/KRAR.Rob/184572 (used in links at website)
Both URLs above redirect here
https://itra.run/api/RunnerSpace/GetRunnerSpace?memberString=XzOWR1EV9H2feN4GAMH2zA%3D%3D

No parameters and Wikidata property not defined

[edit source]
Usage
* {{ITRA}}
Output
  • ITRA/doc at ITRALua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

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

TemplateData for ITRA

This template displays an external link to a runner's profile at the official website of the International Trail Running Association (ITRA), the governing body for trail running. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
Runner's ITRA ID Numberid 1

The runner's ITRA ID number, such as 117050. This is displayed on the runner's ITRA profile page and it may also be found in URLs, such as https://itra.run/RunnerSpace/CHAVEROT.Caroline/117050. This parameter is optional if Wikidata property P3584 exists, but required if not.

Default
Wikidata property P3584
Numberoptional
Runner's Namename 2

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

Default
{{PAGENAMEBASE}}
Stringoptional

Templates and modules used

[edit source]
[edit source]