Template:CQ Ranking/doc
This is a documentation subpage for Template:CQ Ranking. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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
[edit]- 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 }}
Examples
[edit]Unnamed parameters
[edit]- URLs
- https://cqranking.com/men/asp/gen/rider.asp?riderid=1
- https://cqranking.com/women/asp/gen/rider.asp?riderid=1
- Usage
* {{CQ Ranking | m | 1 | Paolo Bettini }}
* {{CQ Ranking | w | 1 | Judith Arndt }}
- Output
-
- Paolo Bettini at CQ Ranking
- Judith Arndt at CQ Ranking
Named parameters
[edit]- URLs
- https://cqranking.com/men/asp/gen/rider.asp?riderid=10000
- https://cqranking.com/women/asp/gen/rider.asp?riderid=10000
- Usage
* {{CQ Ranking | gender= m | id= 10000 | name= Fabian Schaar }}
* {{CQ Ranking | gender= w | id= 10000 | name= Katrina Polack }}
- Output
-
- Fabian Schaar at CQ Ranking
- Katrina Polack at CQ Ranking
No parameters and Wikidata property not defined
[edit]- Usage
* {{CQ Ranking}}
- Output
-
- {{CQ Ranking}} template missing ID and not present in Wikidata.
Parameters
[edit]- The
gender
parameter (or unnamed parameter1
) should contain the letter "m" for men or "w" for women (without the quotation marks). This parameter is required when using theid
parameter (or unnamed parameter2
) because the CQ Ranking website uses a different URL for male and female cyclists. - The
id
parameter (or unnamed parameter2
) 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:- 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.
- The
name
parameter (or unnamed parameter3
) 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
[edit]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Gender | gender 1 | 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.
| String | optional |
ID | id 2 | 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.
| Number | optional |
Name | name 3 | The link text, which should be the name of the person. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".
| String | optional |
Tracking categories
[edit]- "id" parameter exists
- Category:CQ Ranking template for male cyclist (74)
- Category:CQ Ranking template for female cyclist (26)
- Category:CQ Ranking template with unknown value for gender (1)
- "id" parameter does not exist
- Category:CQ Ranking template using Wikidata (319)
- Category:CQ Ranking template missing ID and not in Wikidata (0)
See also
[edit]- Template:Cycling Archives which uses Wikidata property Cycling Archives cyclist ID (archived) (P1409)
- Template:ProCyclingStats which uses Wikidata property ProCyclingStats cyclist ID (P1663)
External links
[edit]- CQ Ranking main page – men
- CQ Ranking main page – women
- CQ Ranking search page – men
- CQ Ranking search page – women