Jump to content

Template:IWRP/doc

From Wikipedia, the free encyclopedia

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:

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:

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:IWRP in articles based on its TemplateData.

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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P4504
Numberoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also

[edit]
[edit]