Module talk:Cycling race
See also:
There is no automatic archiving set up for this talk page. |
UCI data source
editLast month, I noticed that the Excel export disapeared from the UCI website. I contacted them, it is no mistake, they want to avoid commercial use of this function. It means that I have no data source anymore :(. Does someone have a source for the results that a computer can understand? Psemdel (talk) 14:03, 20 March 2023 (UTC)
- Copy from procyclingstats.com, firstcycling.com, https://www.feltet.dk/rdb/kalender/ to Excel? Or are there any restrictions? I used firstcycling.com for a while until they changed the format for writing a rider. — GAN (talk) 14:54, 20 March 2023 (UTC)
- Thx for updating the es module! I will be able to finish (eventually) the clean-up of the DB. Psemdel (talk) 09:36, 4 June 2023 (UTC)
date nil update
editw:es:Special:Diff/150919954 -- Leoncastro (talk) 22:43, 2 May 2023 (UTC)
Error for notes
editAn error has occurred at notes on rider squads. Antonio Tiberi was fired from Trek-Segafredo, not Otto Vergaerde. See here and another example for death here Hejsa (talk) 09:55, 6 June 2023 (UTC)
- The error occurred after User:CyclingInitBot removed part of (P361) from the teams seasons. --Hejsa (talk) 09:35, 7 June 2023 (UTC)
- Made corrections of this error in the main module. — GAN (talk) 12:26, 7 June 2023 (UTC)
- @Hejsa: Thanks for the tip, fixed. Update the module. — GAN (talk) 12:30, 7 June 2023 (UTC)
- @GAN: There is still an error, see Gino Mäder --Hejsa (talk) 13:56, 16 June 2023 (UTC)
- @Hejsa: I also found a taxable problem in da:Team Jumbo-Visma 2021. In the module on line 6128 he made a change "iii = iii + 1" -> "iii = iii" after that he psuvoed through the preview - the mistake of both Kolmands disappeared. But the module itself has not yet made this change. Maybe somewhere a similar problem at first. — GAN (talk) 17:22, 16 June 2023 (UTC)
- @GAN: There is still an error, see Gino Mäder --Hejsa (talk) 13:56, 16 June 2023 (UTC)
- @Hejsa: Thanks for the tip, fixed. Update the module. — GAN (talk) 12:30, 7 June 2023 (UTC)
- Made corrections of this error in the main module. — GAN (talk) 12:26, 7 June 2023 (UTC)
Error
editIn w:de:Ruota d’Oro, w:es:Ruota d'Oro and w:ru:Руота д’Оро throws an error in line 2135: > Wikidata is missing data about start time (P580) or point in time (P582). -- Leoncastro (talk) 16:13, 6 June 2023 (UTC)
- fixed - GAN (talk) 16:42, 6 June 2023 (UTC)
Error for national teams
editAn error has occurred for the national teams, see example here Hejsa (talk) 17:41, 16 June 2023 (UTC)
- @Hejsa: Update "Modul:Cycling race/l10n". You don't have enough translation words in "headoftableIII_translate". Maybe something else needs to be added. — GAN (talk) 17:48, 16 June 2023 (UTC)
- @GAN: Can you please help updating it? It has worked before. --Hejsa (talk) 18:02, 16 June 2023 (UTC)
- @Hejsa: [Modul:Cycling race/l10n: Forskelle mellem versioner Corrected]. for similar cases. The module looked for the 34th translation word in "translation for headoftableIII_translate index 34". You only had 33 words. — GAN (talk) 18:14, 16 June 2023 (UTC)
- @GAN: Can you please help updating it? It has worked before. --Hejsa (talk) 18:02, 16 June 2023 (UTC)
List of teams
editMade an update to this section. Below I will write what changes were made. GAN (talk) 22:11, 25 June 2023 (UTC)
A year ago we had a discussion Module_talk:Cycling_race/archive7#Q20639848_/_Q20652655. On its basis, the following was done. Also updated for this Module:Cycling race/l10n, Module:Cycling race/data and Module:Cycling race/l10n all. All categories of cycling teams for convenience can be divided into the following groups:
- UCI professional men's teams — remained unchanged
- - Q6154783 - WorldTeam
- - Q20638319 - ProTeam (2005-2014)
- - Q78464255 - ProTeam (2020-)
- - Q382927 - UCI Professional Continental Team (2005-2019)
- - Q1756006 - UCI Continental Team
- - Q20639847 - professional cycling team
- - Q20653563 - Groupe Sportif I
- - Q20653564 - Groupe Sportif II
- - Q20653566 - Groupe Sportif III
- UCI professional women's teams — added two new categories:
- - Q119942457 (UCI Women's Continental Team), he replaced from 2020 Q2466826 (UCI Women’s Team). As was the case with the men's categories "ProTeam". "List of teams" supports this change automatically, but "teamseasoninfobox" does not. To be able to replace them in the future.
- - Q119948768 (UCI Women's Elite-2 Team), this category is present in qranking.com/women and cyclingfever.com.
- other non-road UCI teams
- - Q2466819 - UCI Track Team — Marathon-Tula (Q50141602) had this category, but also performed on the road link
- - Q39885628 - UCI Cyclocross Team — can definitely compete from this year in road racing 2.1.005 International races and participation
- - Q2466804 - UCI MTB Team — at the same time added
- - Q39885630 - UCI BMX Team — at the same time added
- national teams
- - Q54660600 - national cycling team "any", without specifying additional parameters". so that it can be used for any discipline / type of cycling
- - Q23726798 - national road cycling team Elit
- - Q99658502 - national road cycling team "B"
- - Q20738667 - national road cycling team U23
- - Q54555994 - national road cycling team U19
- - Q26213387 - olympic team
- - Q46135307 - nation at sport competition in multisport games
- - All these 7 categories are displayed by the module in one block, without division.
- - Q28492441 - national cycling team with sponsor name. For example UniSA-Australia (Q2610824) or Bank BGŻ (Q65457000)
- - Q117280678 - mixt cycling team. For example World All-Stars (Q117280687)
- amateur, club and region
- - Q114864716 - DCU Elite Team
- - Q20652655 - amateur cycling team
- - Q26849121 - Women's amateur cycling team
- - Q20639848 - club cycling team
- - Q20653570 - region cycling team
- For these categories, I made two output possibilities:
- - each category separately with its heading. It is in the module by default.
- - all categories together with single headings. It stands in the module in a NOT activated form.
- For these categories, I made two output possibilities:
Verified in da-wiki and ru-wiki — GAN (talk) 13:58, 26 June 2023 (UTC)
- Hi, sorry I read this only now... I agree that the difference between amateur and club teams is, most of the time, not very interesting and we could display it together. For regional team, I am less sure, but it is anyhow not so often. A question: what is a "DCU" Elite team? What is the difference between "Команда велоклуб" and "Региональная команда"? Psemdel (talk) 10:21, 24 December 2023 (UTC)
- @Psemdel:
- "DCU" - I believe that this is the highest level Danish amateur team in the Danish Federation classification. And similar to DN1, DN2, DN3 in France @Hejsa: requested that “DCU teams” be in a separate category. And I did it this way.
- "Команда велоклуба" (club cycling team) - This is a regular amateur cycling team that exists every year. But it is part of the structure of a large sports club. Which may include teams in other sports.
- "Региональная команда" (region cycling team) - In the USSR there were internal competitions in which teams from a certain region participated. These teams could consist of representatives of amateur and club teams. Example USSR Championship:
- - Section sportive de l'Armée rouge - club team fr:CSKA Moscow
- - Équipe de Leningrad - is a regional team that will represent the region. In this case, the city of Leningrad. And in theory it would be good for regional tournaments to display the names and flags of these teams like those of the “national teams”. In ru-wiki "Leningrad", and in fr-wiki "Leningrad". And for international tournaments, only the names of these teams are displayed as for the “national teams”. If necessary, I will write in more detail with examples.
Tour de France 2023: Combativity award is now gold
editThe jersey number for the combative rider of the Tour de France is no longer red; (since) this year it is gold. Can someone please fix this problem? Cycling race/infobox and Cycling race/stageinfobox and so on … the red jersey number is misleading for this year. Thanks Superbia23 (talk) 12:14, 7 July 2023 (UTC)
- @Superbia23: If fr-wiki, then I updated. If another wiki, then update Module:Cycling race/data in it. — GAN (talk) 15:13, 7 July 2023 (UTC)
- thanks Superbia23 (talk) 15:38, 7 July 2023 (UTC)
Riders from Russia & Belarus
editSince 1 March 2022 all Russian and Belarussian riders are competing in UCI races under neutral flag. The flags of Russia and Belarus must be removed or replaced by white/blank flags. The names of the countries, as well as the acronyms of Russia (RUS) and Belarus (RUS) must be deleted and left blank. (Source: UCI Regulations) Any idea how to solve that in the module? Thanks Superbia23 (talk) 10:21, 24 July 2023 (UTC)
Class of competition
editHi, friends. I don't have a problem nor doubt about module. It runs very well until now (in cawiki). But I have a question about data structure that I couldn't find the answer. Which property do we use in cycling for "modality / category / class of competition" ?. I mean, between 2021 UCI Track Cycling World Championships – Women's scratch (Q109010975) & 2021 UCI Track Cycling World Championships – Men's sprint (Q109373980) there are no statement with information to identfy "Scratch" from "Sprint", nor know the gender of the course, except in label content. I don't know if just this two exemples are the only badinformation cases, but I search a lot of cases without success. In other sports with categoritzations of its courses, as swimming or athletics, use competition class (P2094), but is not the case of cycling. May you give some clue ? Thanks, Amadalvarez (talk) 06:52, 21 August 2023 (UTC)
- @Amadalvarez: I made changes to both elements similar to road racing. Look. — GAN (talk) 07:45, 21 August 2023 (UTC)
- Thanks, @GAN. If I understand correctly:
- sports discipline competed in (P2416) for "type of event"
- competition class (P2094) for gender
- P31, the most specific.
- winner (P1346) qualified as "Cycling style"
- part of (P361) instead of sports season of league or competition (P3450) and keep P155-P156 as properties, no as qualifiers.
- About this two last statements I'd like to talk with you (cycling super solution team) about the future. I build a infobox for any kind of sport event and I manage the winner in 3-4 diferents ways in function of the data structure that are implemented in each sport.
- When I found the use of P642 in cycling but in no other sport, that use applies to part (P518) or mix of sports discipline competed in (P2416) + competition class (P2094), I continued with present formula, but waiting to talk to you about how you think approach the process to deprecate the P642. So, sooner or later, the use of P642 as qualifier for diferents winners of a competition or round should migrate. Do you have a plan?. May I help you?.
- Regarding P155-P156, it exists another initiative that advocates the use of P155-P156 as qualifiers under a concept that "serializes" them, and to avoid them as a main property. Since then, these properties as qualifiers are related to P361, P31 and P3450, mainly. Sometimes they keep redundant, because old P155-P156 remains for compatibility of previous processes. In addition, the P3450 (the newest of all the others) has increased its use, because previously the season was in P361 (as it happens in cycling). With P3450 + P155 + P156 we are freeing up the P361 for another type of grouping.
- To me and my infobox, nowadays, the structure of cycling items is not a problem. However, I suggest to think in a migration plan.
- If you consider that I may help you with knowledge acquired, keep on touch.
- Salut ! Amadalvarez (talk) 09:14, 21 August 2023 (UTC)
- Thanks, @GAN. If I understand correctly:
- Sorry. One more question. when I make SPARQL with P279* for sporting event (Q16510064) just show a few cases, because your [specific] P31 has no subclasses. I tried with P279* for cycling race (Q15091377) without success too. Which the good one filter to get all cycling event ?
Thanks, Amadalvarez (talk) 10:51, 21 August 2023 (UTC)
Cycling race/listofteams
editI use Template:Cycling race/listofteams in Finnish wikipedia and it outputs the team names in Japanese. Here you can see an example: https://fi.wikipedia.org/wiki/Italian_ymp%C3%A4riajo_2024#Joukkueet
Can someone please fix this? Intomies (talk) 17:46, 8 May 2024 (UTC)
Columns
editÌs there any way that one can divide the list in two parallel columns? Some races give one column of 80 or more rows that only takes one third (or fourth) of the width of the page (see for instance sv:Paris-Camembert). Episcophagus (talk) 11:07, 16 May 2024 (UTC)
Dark mode
editDo we have a version of module adapted to work in dark mode ?
At CAwiki we are changing templates in order to adapt them; most of them are infoboxes & other kind of box used for documentation or within de body text, as happen in cycling race articles.
We are following this guideline; mainly: creating templatestyles to hold styles classes instead to have it inside the code; to add class=inverted
in file:
statements for those .svg that are in black & transparent in order to force inversion to white, and changing background in white to transparent i in order to allow dark mode system to change "dark" automatically.
I look forward to hearing from you.
Thanks ! Amadalvarez (talk) 10:50, 11 July 2024 (UTC)
- @Amadalvarez: There is such an edit. But I haven't tested it. — GAN (talk) 15:49, 11 July 2024 (UTC)
- Background in darkmode is not working in the following pages:
- -- KRLS (talk) 14:46, 12 July 2024 (UTC)
- In most cases it should be sufficient to remove the hardcoded white background color from the tables. hgzh 06:19, 23 July 2024 (UTC)
- Thanks,@Hgzh. I know it. But my question is because I'm using the common Cycling race module and I don't want to make a forke of it. I rather the maintenance team make the fix to work in dark mode and I'll apply it. Amadalvarez (talk) 05:13, 25 July 2024 (UTC)
- Module:Cycling_race/data#L-207 (tandardtablecss_part1) can be customized per wiki without forking the entire module. Some white background definitions are directly in the module code though. hgzh 07:31, 25 July 2024 (UTC)
- @Hgzh
listofstages
>> fixed. Thanks - What about
startlist
?. I couldn't find in Module:Cycling_race/data. - And listofwinners?
- Thanks ! Amadalvarez (talk) 21:03, 25 July 2024 (UTC)
- @Hgzh
- Module:Cycling_race/data#L-207 (tandardtablecss_part1) can be customized per wiki without forking the entire module. Some white background definitions are directly in the module code though. hgzh 07:31, 25 July 2024 (UTC)
- Thanks,@Hgzh. I know it. But my question is because I'm using the common Cycling race module and I don't want to make a forke of it. I rather the maintenance team make the fix to work in dark mode and I'll apply it. Amadalvarez (talk) 05:13, 25 July 2024 (UTC)
- In most cases it should be sufficient to remove the hardcoded white background color from the tables. hgzh 06:19, 23 July 2024 (UTC)
@GAN: Summary of changes done & tested in CAwiki regarding dark mode. Consider to apply them in this WD master version:
- hinzufügen class infobox, as you suggested. You already did and now it's Tested.
- Make infobox icons inverted in the title infobox header.
listofstages and listofwinners
, following @Hgzh suggestion.startlist
... I could not find the fix. I try to delete the "background-color: rgb(255, 255, 255)" at line Module:Cycling_race#L-1515, Module:Cycling_race#L-1522 & Module:Cycling_race#L-7694 but still keeps in blank when dark mode is selected.
I'll appreciate if you may help to me with this last case. Thanks,--Amadalvarez (talk) 05:54, 26 August 2024 (UTC)
listofstageclassification - How to set the background color for a new jersey
editHello, I added the black jersey with colorful dots (Q129835665). It's the new jersey for the mountain classification of the Deutschland Tour (Q124169326). I set the jersey in the prologue (Q128095287) and the jersey is shown correctly in the first row of the table, but it won't set the background of the rows below to black (or grey). Unfortunately, I have no clue how to add this part and I'm afraid to damage a thing. I hope, you can help me. I used the jersey here: https://de.wikipedia.org/wiki/Deutschland_Tour_2024 PiLLaZ (talk) 07:27, 27 August 2024 (UTC)
- @PiLLaZ: It's done like this. Check it out.
I also added it to the Module.— GAN (talk) 10:05, 27 August 2024 (UTC)