Wikidata:WikiProject Cycling/Documentation/listofstages

Module:Cycling race

2016 Tour Down Under (Q21093836) :
has part(s) (P527)2016 Tour Down Under, Stage 1 (Q21934629), 2016 Tour Down Under, Stage 2 (Q21934630), 2016 Tour Down Under, Stage 3 (Q21934631), 2016 Tour Down Under, Stage 4 (Q21934632), 2016 Tour Down Under, Stage 5 (Q21934633) and 2016 Tour Down Under, Stage 6 (Q21934634).
StageDateCoursetypeDistance - km (mi)Stage winnerOverall leader
1re stage 19 JanProspect – Lyndoch
plain stage
plain stage
130.8AUS Caleb EwanAUS Caleb Ewan
2e stage 20 JanUnley – Stirling
hilly stage
hilly stage
132AUS Jay McCarthyAUS Jay McCarthy
3e stage 21 JanGlenelg – Campbelltown
hilly stage
hilly stage
139AUS Simon GerransAUS Simon Gerrans
4e stage 22 JanNorwood – Victor Harbor
hilly stage
hilly stage
138AUS Simon GerransAUS Simon Gerrans
5e stage 23 JanMcLaren Vale – Willunga
intermediate stage
intermediate stage
151.5AUS Richie PorteAUS Simon Gerrans
6e stage 24 JanAdelaide – Adelaide
plain stage
plain stage
90AUS Caleb EwanAUS Simon Gerrans

The listofstages function generates in the body of an article a table listing the stages of a cycle race, with the stage number, the date, the departure and arrival cities, the type of stage, the distance, the stage winner and overall leader. For this documentation, 2016 Tour Down Under (Q21093836) will be taken as an example. The item of the race carries the Q21093836 number, module is always called by {{Cycling race/listofstages|Q21093836}}, regardless of the language version. First, each stage of the cycling race must have its own item, it can have two items for a small stage race up to twenty for a Grand Tour. On the part of the cycling race, in addition to more traditional information to fill the infobox, you need to list the stages items with has part(s) (P527). Values ​​are 2016 Tour Down Under, Stage 1 (Q21934629), 2016 Tour Down Under, Stage 2 (Q21934630), 2016 Tour Down Under, Stage 3 (Q21934631), 2016 Tour Down Under, Stage 4 (Q21934632), 2016 Tour Down Under, Stage 5 (Q21934633) and 2016 Tour Down Under, Stage 6 (Q21934634).

has part(s) (P527) 2016 Tour Down Under, Stage 1 (Q21934629)
2016 Tour Down Under, Stage 2 (Q21934630)
2016 Tour Down Under, Stage 3 (Q21934631)
2016 Tour Down Under, Stage 4 (Q21934632)
2016 Tour Down Under, Stage 5 (Q21934633)
2016 Tour Down Under, Stage 6 (Q21934634)
2016 Tour Down Under, Stage 1 (Q21934629) :
* instance of (P31)hilly stage (Q20646670)
* part of (P361)2016 Tour Down Under (Q21093836)
* series ordinal (P1545) → 1
* point in time (P585) → 19 january 2016
* start point (P1427)Prospect (Q3924087)
* destination point (P1444)Lyndoch (Q1415174)
* event distance (P3157) length (P2043) → 130.8 km
* ProCyclingStats race ID (P2327) → 163234
* winner (P1346)
** Caleb Ewan (Q2933765) of (P642)stage winner (Q20882747)
** Caleb Ewan (Q2933765) of (P642)overall leader at the end of the stage (Q20882763)

Secondly, the work takes place in each of the items of the stages of this race. The example used here is the 2016 Tour Down Under, Stage 1 (Q21934629).

instance of (P31) hilly stage (Q20646670)
part of (P361) 2016 Tour Down Under (Q21093836)
series ordinal (P1545) 1
point in time (P585) 19 january 2016
start point (P1427) Prospect (Q3924087)
destination point (P1444) Lyndoch (Q1415174)
event distance (P3157) length (P2043) 130.8 km
ProCyclingStats race ID (P2327) 163234
winner (P1346) Caleb Ewan (Q2933765)
of (P642)stage winner (Q20882747)
Caleb Ewan (Q2933765)
of (P642)overall leader at the end of the stage (Q20882763)

These properties are used to complete the table. It is possible to make additional statements to fill the stage infobox. The number of values ​​for has part(s) (P527) can count the stages to the infobox cycle races.