Template:ITRA/doc
| icon | This is a documentation subpage for Template:ITRA. It may contain usage information, categories and other content that is not part of the original template page. |
| File:Lua-Logo.svg | This template uses Lua: |
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.
Usage
[edit source]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 }}
- 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
TemplateData
[edit source]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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Runner's ITRA ID Number | id 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.
| Number | optional |
| Runner's Name | name 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)".
| String | optional |
Templates and modules used
[edit source]- {{PAGENAMEBASE}} and {{First word}}, implemented with Module:String
- {{EditAtWikidata}}, implemented with Module:EditAtWikidata
External links
[edit source]