Template:IWRP/doc
This is a documentation subpage for Template:IWRP. It may contain usage information, categories and other content that is not part of the original template page. |
- IWRP athlete ID (P4504) (see uses)
This template uses Lua: |
Template:IWRP displays an external link to a weightlifter's page at the International Weightlifting Results Project (IWRP.net). It is intended for use in the external links section of an article.
Usage
[edit]Unnamed parameters:
{{IWRP | ID }}
{{IWRP | ID | NAME }}
Named parameters:
{{IWRP | id= ID }}
{{IWRP | id= ID | name= NAME }}
Using Wikidata property P4504:
{{IWRP}}
{{IWRP | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]Usage:
* {{IWRP | 10996 | Chen Shih-Chieh }}
Output:
- Chen Shih-Chieh at the International Weightlifting Results Project
URLs:
- http://iwrp.net/?view=contestant&id_zawodnik=10996
- http://iwrp.net/component/cwyniki/?view=contestant&id_zawodnik=10996
Named parameters
[edit]Usage:
* {{IWRP | id= 36018 | name= Anastasija Hotfrid }}
Output:
- Anastasija Hotfrid at the International Weightlifting Results Project
URLs:
- http://iwrp.net/?view=contestant&id_zawodnik=36018
- http://iwrp.net/component/cwyniki/?view=contestant&id_zawodnik=36018
No parameters and Wikidata property not defined
[edit]Usage:
* {{IWRP}}
Output:
- {{IWRP}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for IWRP
This template displays an external link to a weightlifter's page at the International Weightlifting Results Project (IWRP.net). 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: 10996 is the ID portion of http://iwrp.net/?view=contestant&id_zawodnik=10996 or http://iwrp.net/component/cwyniki/?view=contestant&id_zawodnik=10996. This parameter is optional if Wikidata property P4504 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 "(weightlifter)".
| String | optional |
See also
[edit]- Template:IWF for link to weightlifter's page at the International Weightlifting Federation
External links
[edit]