Template:CQ Ranking/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata Template:Tracks Wikidata

Template:CQ Ranking displays an external link to a cyclist's page at the CQ Ranking web site (cqranking.com). It is intended for use in the External links section of an article.

Usage

Unnamed parameters:

{{CQ Ranking | GENDER | ID }}
{{CQ Ranking | GENDER | ID | NAME }}

Named parameters:

{{CQ Ranking | gender=GENDER | id=ID }}
{{CQ Ranking | gender=GENDER | id=ID | name=NAME }}

Using Wikidata property P1541 (men) or P2709 (women):

{{CQ Ranking}}
{{CQ Ranking | name=NAME }}

Examples

Unnamed parameters

Men

URL:

https://cqranking.com/men/asp/gen/rider.asp?riderid=1

Usage:

{{CQ Ranking | m | 1 | Paolo Bettini }}

Output:

Paolo Bettini at CQ Ranking

Women

URL:

https://cqranking.com/women/asp/gen/rider.asp?riderid=1

Usage:

{{CQ Ranking | w | 1 | Judith Arndt }}

Output:

Judith Arndt at CQ Ranking

Named parameters

Men

URL:

https://cqranking.com/men/asp/gen/rider.asp?riderid=10000

Usage:

{{CQ Ranking | gender= m | id= 10000 | name= Fabian Schaar }}

Output:

Fabian Schaar at CQ Ranking

Women

URL:

https://cqranking.com/women/asp/gen/rider.asp?riderid=10000

Usage:

{{CQ Ranking | gender= w | id= 10000 | name= Katrina Polack }}

Output:

Katrina Polack at CQ Ranking

No parameters and Wikidata property not defined

Usage:

{{CQ Ranking}}

Output:

Template:PAGENAMEBASE at CQ RankingScript error: No such module "EditAtWikidata".

Parameters

  1. The gender parameter (or unnamed parameter 1) should contain the letter "m" for men or "w" for women (without the quotation marks). This parameter is required when using the id parameter (or unnamed parameter 2) because the CQ Ranking website uses a different URL for male and female cyclists.
  2. The id parameter (or unnamed parameter 2) should contain the ID portion the URL for the cyclist's page at the CQ Ranking web site. This parameter is optional if Wikidata property P1541 (men) or P2709 (women) exists, but required if not. Examples:
  3. The name parameter (or unnamed parameter 3) may be used to specify the link text, which should be the name of the cyclist. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for CQ Ranking

This template displays an external link to a cyclist's page at the CQ Ranking web site (cqranking.com). It is intended for use in the External links section of an article.

Template parameters

ParameterDescriptionTypeStatus
gendergender 1

The "gender" parameter (or unnamed parameter "1") should contain the letter "m" for men or "w" for women (without the quotation marks). This parameter is required when using the "id" parameter (or unnamed parameter "2") because the CQ Ranking website uses a different URL for male and female cyclists.

Default
m
Stringoptional
idid 2

The "id" parameter (or unnamed parameter "2") should contain the ID portion of the URL. This parameter is optional if Wikidata property P1541 (men) or P2709 (women) exists, but required if not. Examples: The ID for male cyclist Paolo Bettini is 1 and the URL is https://cqranking.com/men/asp/gen/rider.asp?riderid=1. The ID for female cyclist Judith Arndt is 1 and the URL is https://cqranking.com/women/asp/gen/rider.asp?riderid=1.

Default
Wikidata property P1541 (men) or P2709 (women).
Numberoptional
namename 3

The "name" parameter (or unnamed parameter "3") may be used to specify the link text, which should be the name of the cyclist. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

"id" parameter exists
"id" parameter does not exist

See also