Utilisateur:GAN/Description of module functions
Changes
modifierlocal function getPlaceLink(placeID)
Added support for Cycling race/lang
so that you can add alternative options for displaying the start and finish of races. As well as a number of other names and infoboxes of the season and championship
![]() | Date | Course | type | Distance - km | Stage winner | Overall leader |
---|---|---|---|---|---|---|
1re étape | 17 oct. | Beihai – Beihai | ![]() | 135,6 | ![]() | ![]() |
2e étape | 18 oct. | Beihai – the name of this city is replaced with 'Cycling race/lang' | ![]() | 152,3 | ![]() | ![]() |
3e étape | 19 oct. | Nanning – Nanning | ![]() | 143 | ![]() | ![]() |
4e étape | 20 oct. | Nanning – Mashan Nongla Scenic Area | ![]() | 161,4 | ![]() | ![]() |
5e étape | 21 oct. | Liuzhou – Guilin | ![]() | 212,2 | ![]() | ![]() |
6e étape | 21 oct. | Guilin – Guilin | ![]() | 168,3 | ![]() | ![]() |
listofteams
modifierListing of second national teams (d:Q99658502) (for example team "B" on Tour de France ) and U-19 teams (d:Q54555994). They are displayed similarly to U-23 teams.
Found another type of team - "regional team" (d:Q20653570). Made them added to Regional and club teams. An attempt to make the display of the region similar to the national teams (in the native language), but with the country flag - did not work
- Regional and club teams - équipe régionale de Bretagne de cyclisme sur route
search in module --> trying to display the region that the team represents
Professional continental teams (3)Continental teams (14)
| |
![]() |
- National teams "B"
National teams (6)
| |
![]() |
- National teams U19 / juniors
> Wikidata is missing data about start time (P580) or point in time (P582)
infobox
modifier- New templates based on "infobox" --> "infoboxseason" and "infoboxChamp". For seasons and championships, similar to normal races.
Parameter | infoboxseason | infoboxChamp |
---|---|---|
Edition (46*) | Number (P393) and what tournament (P31). Similar to infobox | |
Dates (7*) | Tournament dates (P580 and P582 or P585. Similar to infobox | |
Country (9*) | ---------- | Country or countries (P17) of the championship |
Locations (48*) / City (67*) - differ only in the displayed headers | Region or country (P276) where the tournament was held. If the continent is represented by 1-2 countries, then I indicated the countries | The city where the tournament was held |
Arena (61*) (P115) | ---------- | Stadium, cycle track or other structure where the championship was held |
Racing (45*) / Medals (60*) - differ only in the displayed headers | It is counted through the number of races indicated (P527). Similar to the stages for multi-day events. At the moment, all specified races are considered, including canceled ones. | |
Organizers (50*) | Tournament or championship organizers (P664). You can shorten the spelling of their name through "Cycling race/l10n" | |
Team class (63*) (P2670) | What types of teams (P2670) participate in the races or what teams are eligible to get into the ranking at the end of the year. Need to decide. You can shorten the spelling of their name through "Cycling race/l10n" | ---------- |
Winners (51*) | Tournament winners at the end of the year. Racers are displayed without specifying a team, since during the season they could play for several teams / national teams at once.
For nations used Q54660600 (national cycling team). Using country elements can cause incorrect display in the template:
|
---------- |
infoboxseason
modifier
Challenge Desgrange-Colombo 1948
|
|
|
infoboxChamp
modifier
UCI Track Cycling World Championships 2019
|
UCI European Road Cycling Championships 2018
|
infobox (for comparison) UCI Asia Tour 2007
|
listofwinners
modifierlistofwinners --> "beginyear" and "endyear"
modifier- removed templates from the module
listofwinnersfirstpart
,listofwinnerssecondpart
,listofwinnersChampfirstpart
andlistofwinnersChampsecondpart
listofwinnerssecondpart
andlistofwinnersChampsecondpart
managed to be replaced. I suspect that you can make it possible to add after the template. Or even combine both possibilities together.
Source code in module | The changes made to the code are highlighted in bold. Now the module allows displaying the winners for any interval of years. And replace the standard hat with any one. |
|
|
|
|
|
|
{Cycling race/listofwinnerscountryU23|Q...|X|Y|Z}}
- Q... - element on high pressure
- X - the year from which to start displaying the list of winners
- Y - the year to finish start displaying the list of winners
- Z - if there is no or = 0 (zero) --> standard heading, if = 1 (one) --> arbitrary heading and the ability to add the necessary text on top, if = 2 (two) -> only results and the ability to add the necessary text above and below. Allows you to combine several identical tables into one.
Display options
modifierall years (standart) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340
| above row 5:arbitrary string between 4th b 5th years}}
|
{| class="mw-datatable standard wikitable sortable"
! YEAR
! style="background-color:gold"| GOLD
! style="background-color:silver"| SILVER
! style="background-color:#c96"| BRONZE
|-
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|0|0|0|1
| above row 5:arbitrary string between 4th b 5th years}}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2010 - 2015 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|2010|2015
| above row 3:arbitrary string between 2nd b 3th years
| below row 6:arbitrary string after 65th years}}
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
xxx - 2015 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|0|2015
| above row 5:arbitrary string between 4th b 5th years}}
|
{| class="mw-datatable standard wikitable sortable"
! YEAR
! style="background-color:gold"| GOLD
! style="background-color:silver"| SILVER
! style="background-color:#c96"| BRONZE
|-
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|0|2015|0|1
| above row 5:arbitrary string between 4th b 5th years}}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2010 - xxx | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|2010|0|0|0
| above row 5:arbitrary string between 4th b 5th years}}
|
{| class="mw-datatable standard wikitable sortable"
! YEAR
! style="background-color:gold"| GOLD
! style="background-color:silver"| SILVER
! style="background-color:#c96"| BRONZE
|-
{{#invoke:GAN-Cycling-race|listofwinnerscountryU23|Q1194340|2010|0|0|1
| above row 5:arbitrary string between 4th b 5th years}}
|
Joining two tables
modifierd:Q84348027 (Tour of Saudi Arabia 1999-2003) + d:Q84318914 (Saudi Tour 2020-)
{{En-tête de tableau Palmarès d'une course cycliste}} | colspan="4" style="text-align:center;" | 1999-2013 |- {{#invoke:GAN-Cycling-race|listofwinners|Q84348027||2012|2}} |- | colspan="4" style="text-align:center;" | 2020- {{#invoke:GAN-Cycling-race|listofwinners|Q84318914|||2}} |gfdgf||dffd||dfd||dfdf |}
Année | Vainqueur | Deuxième | Troisième | |
---|---|---|---|---|
1999-2013 | ||||
1999 | Amr Elnady | Yuriy Plyukhin | Ondrej Slobodník | |
2001 | Ghader Mizbani | Mohamed Abdel Fattah | Hossein Askari | |
2002 | Ghader Mizbani | Serguei Lavrenenko | Sergey Tretyakov | |
2020- | ||||
2020 | Phil Bauhaus | Nacer Bouhanni | Rui Costa | |
2021 | annulé/abandonné | |||
2022 | Maxim Van Gils | Santiago Buitrago | Rui Costa | |
2023 | Ruben Guerreiro | Davide Formolo | Santiago Buitrago | |
2024 | Simon Yates | William Junior Lecerf | Finn Fisher-Black | |
gfdgf | dffd | dfd | dfdf |
YEAR | GOLD | SILVER | BRONZE | |
---|---|---|---|---|
1999-2013 | ||||
1999 | Amr Elnady | Yuriy Plyukhin | Ondrej Slobodník | |
2001 | Ghader Mizbani | Mohamed Abdel Fattah | Hossein Askari | |
2002 | Ghader Mizbani | Serguei Lavrenenko | Sergey Tretyakov | |
2020- | ||||
2020 | Phil Bauhaus | Nacer Bouhanni | Rui Costa | |
2021 | annulé/abandonné | |||
2022 | Maxim Van Gils | Santiago Buitrago | Rui Costa | |
2023 | Ruben Guerreiro | Davide Formolo | Santiago Buitrago | |
2024 | Simon Yates | William Junior Lecerf | Finn Fisher-Black | |
gfdgf | dffd | dfd | dfdf |
Adding a header inside a table with a column shift
modifierInitial variant of table display
{{#invoke:GAN-Cycling-race|listofwinnersseason|Q428019|0|0|0|0|1|0|1|1|1|1|1|1|0}}
Year (1) | INDIVIDUAL (20) | YOUTH (21) | TEAM (22) | Groupe Sportif I (23) | Groupe Sportif II (24) | Groupe Sportif III (25) | COUNTRY (26) |
---|---|---|---|---|---|---|---|
1984 | Sean Kelly | ||||||
1985 | Sean Kelly | ||||||
1986 | Sean Kelly | ||||||
1987 | Sean Kelly | ||||||
1988 | Sean Kelly | ||||||
1989 | Laurent Fignon | ||||||
1990 | Gianni Bugno | ||||||
1991 | Gianni Bugno | ||||||
1992 | Miguel Indurain | ||||||
1993 | Miguel Indurain | ||||||
1994 | Tony Rominger | ||||||
1995 | Laurent Jalabert | ||||||
1996 | Laurent Jalabert | ||||||
1997 | Laurent Jalabert | ||||||
1998 | Michele Bartoli | Mapei-Bricobi | |||||
1999 | Laurent Jalabert | Mapei | |||||
2000 | Francesco Casagrande | Graziano Gasparre | Mapei-Quick Step | ||||
2001 | Erik Zabel | Yaroslav Popovych | Fassa Bortolo | ||||
2002 | Erik Zabel | Mikhail Timochine | Mapei-Quick Step | EDS-Fakta | Mapei-Quick Step Espoirs | Italie | |
2003 | Paolo Bettini | Denys Kostyuk | Fassa Bortolo | ||||
2004 | Damiano Cunego | Thomas Dekker | T-Mobile |
After adding a header inside the column shift table
{| cellpadding="4" cellspacing="0" <!-- class="sortable"--> style="border: 1px solid rgb(200,200,200); color: black; margin: 0 0 0.5em 0; background-color: rgb(255, 255, 255); padding: 5px; clear: left; text-align: left; vertical-align: top; font-size: 85%; line-height: 1.5em;" |+ class="hidden" | ! scope="col" style="background-color:#FFDF80;" align="center" | Year ! scope="col" style="background-color:#FFDF80;" align="center" | INDIVIDUAL ! scope="col" style="background-color:#FFDF80;" align="center" | YOUTH ! scope="col" style="background-color:#FFDF80;" align="center" | TEAM ! scope="col" style="background-color:#FFDF80;" align="center" | <!-- Groupe Sportif II--> ! scope="col" style="background-color:#FFDF80;" align="center" | <!-- Groupe Sportif III--> ! scope="col" style="background-color:#FFDF80;" align="center" | COUNTRY |- {{#invoke:GAN-Cycling-race|listofwinnersseason|Q428019|0|1998|0|2 |1|0|1|1|0|1|1|1|0}} |- ! scope="col" style="background-color:#FFDF80;" align="center" | Year ! scope="col" style="background-color:#FFDF80;" align="center" | INDIVIDUAL ! scope="col" style="background-color:#FFDF80;" align="center" | YOUTH ! scope="col" style="background-color:#FFDF80;" align="center" | Groupe Sportif I ! scope="col" style="background-color:#FFDF80;" align="center" | Groupe Sportif II ! scope="col" style="background-color:#FFDF80;" align="center" | Groupe Sportif III ! scope="col" style="background-color:#FFDF80;" align="center" | COUNTRY |- {{#invoke:GAN-Cycling-race|listofwinnersseason|Q428019|1999|0|0|2 |1|0|1|0|1|1|1|1|0}} |}
Year | INDIVIDUAL | YOUTH | TEAM | COUNTRY | ||
---|---|---|---|---|---|---|
1984 | Sean Kelly | |||||
1985 | Sean Kelly | |||||
1986 | Sean Kelly | |||||
1987 | Sean Kelly | |||||
1988 | Sean Kelly | |||||
1989 | Laurent Fignon | |||||
1990 | Gianni Bugno | |||||
1991 | Gianni Bugno | |||||
1992 | Miguel Indurain | |||||
1993 | Miguel Indurain | |||||
1994 | Tony Rominger | |||||
1995 | Laurent Jalabert | |||||
1996 | Laurent Jalabert | |||||
1997 | Laurent Jalabert | |||||
1998 | Michele Bartoli | Mapei-Bricobi | ||||
Year | INDIVIDUAL | YOUTH | Groupe Sportif I | Groupe Sportif II | Groupe Sportif III | COUNTRY |
1999 | Laurent Jalabert | Mapei | ||||
2000 | Francesco Casagrande | Graziano Gasparre | Mapei-Quick Step | |||
2001 | Erik Zabel | Yaroslav Popovych | Fassa Bortolo | |||
2002 | Erik Zabel | Mikhail Timochine | Mapei-Quick Step | EDS-Fakta | Mapei-Quick Step Espoirs | Italie |
2003 | Paolo Bettini | Denys Kostyuk | Fassa Bortolo | |||
2004 | Damiano Cunego | Thomas Dekker | T-Mobile |
Tables for seasonal tournaments on the example of the UCI Europe Tour
modifier
listofwinnerscountrymodifier
|
listofwinnerscountryU23modifier
|