Module talk:Cycling race
See also:
There is no automatic archiving set up for this talk page. |
UCI data source
[edit]Last 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
[edit]w:es:Special:Diff/150919954 -- Leoncastro (talk) 22:43, 2 May 2023 (UTC)
Error for notes
[edit]An 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
[edit]In 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
[edit]An 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
[edit]Made 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.
— GAN (talk) 11:48, 24 December 2023 (UTC)
Tour de France 2023: Combativity award is now gold
[edit]The 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
[edit]Since 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
[edit]Hi, 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
[edit]I 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
[edit]Do 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:
- Add 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
[edit]Hello, 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)
@Bordurie, Damiankramek, FromZeFild, Hejsa, Joseba65:@Kawona67, Repf72:
UCI created UCI Women's ProTeam from 2025.
I have added additions to the module for this type of commands. You need to update yours:
- Module:Cycling race
- Module:Cycling race/data
- Module:Cycling race/l10n add
, "UCI Women's WorldTeam", "UCI Women's WorldTeams", "UCI Women's ProTeam", "UCI Women's ProTeams"
to the end of lineheadoftableIII_translate
andheadoftableIII_women_translate
Wikidata:WikiProject Cycling/2025 teams - created all UCI WorldTeam", UCI ProTeam, UCI Women's WorldTeam and 5 out of 8 UCI Women's ProTeam (3 not yet known)
— GAN (talk) 22:00, 21 October 2024 (UTC)
- @Psemdel:. Bordurie (talk) 07:21, 22 October 2024 (UTC)
- Thanks Bordurie, I will have a look this weekend. Psemdel (talk) 20:14, 23 October 2024 (UTC)
Winners and Leaders
[edit]@Swpb: Your edits to the bike racing elements break the system used by this module in several language Wiki projects for over 7 years. — GAN (talk) 16:34, 6 November 2024 (UTC)
@Psemdel, MisterSynergy, Rz98, Kawona67, Repf72:@Bordurie, Damiankramek, FromZeFild, Hejsa, Joseba65:
Please help. The user transfers values related to stage leaders from "P642" to "P3831". The module does not see it and everything disappears. — GAN (talk) 17:02, 6 November 2024 (UTC)
- GAN: Thanks for your vigilance. This seems to be related to a project to deprecate the "of" qualifier, see WD:P642. I do not know whether there is any consensus for these mass edits. Apart from breaking the module, the edits leave races in an inconsistent state, typical example: 2023 Simac Ladies Tour: Some of the winners retain "of", others are with the new property. Also, even allowing for deprecation of P642, is there really nothing better than to replace it with "object of statement has role"? -- Rz98 (talk) 17:41, 6 November 2024 (UTC)
- Thank you for the notice. I apologize that the edits came without warning. However, of (P642) has indicated for several years that it is going away, this has been widely advertised, and the global consensus to get rid of it overrides the local consensus of any particular topic-area WikiProject or other editing group to keep using it. Updating an infobox to use a different property is a comparatively tiny effort. For qualifier values like "stage leader" etc. to winner (P1346) statements, object of statement has role (P3831) is the most specific accurate property I'm aware of (vastly more specific than of (P642)), but if there is a desire to create a more specific property for the role, that is certainly possible and I'd be glad to help with the proposal. The inconsistent state is a temporary result of the migration proceeding more slowly than would be ideal; they will all be migrated in the next couple of days. Swpb (talk) 18:43, 6 November 2024 (UTC)
- @Swpb: Thanks for the clarification. In this case, we first need to support two parameters (old and new). And update the module. So that during the parameter transfer there are no problems with displaying data through the module.
A separate similar parameter for sports competitions would probably be good. But this still requires preliminary support for two parameters.
— GAN (talk) 21:38, 6 November 2024 (UTC) - award received (P166) would be an alternative. Indeed, some of the replacements have already used P166 instead of P3831, see Cima Pantani here: 2016 Giro d'Italia, stage 14 (Q21074499). These too have disappeared from infoboxes, and we currently have (at least) three different properties to deal with. -- Rz98 (talk) 07:58, 7 November 2024 (UTC)
- Are designations like second overall (Q20882668) and overall leader at the end of the stage (Q20882763) really "awards" though? I guess I can see a case for that, especially if GAN agrees. There is also ranking (P1352). Other than that, though, there's no getting around the fact that on winner (P1346) statements, of (P642) has been used to mean several totally different things, as described here: in some cases, it clearly means country for sport (P1532); in others, competition class (P2094); and in others, object of statement has role (P3831), as with the values driver (Q352388), co-driver (Q2465611), and team (Q327245). We should not want these unrelated meanings to share a single property. Swpb (talk) 14:44, 7 November 2024 (UTC)
- @Swpb: Thanks for the clarification. In this case, we first need to support two parameters (old and new). And update the module. So that during the parameter transfer there are no problems with displaying data through the module.
@GAN, Rz98: I have begun reverting statements migrated to object of statement has role (P3831) so that the module will display properly until it can be updated. In the meantime, please assess this table and let me know if you think any part of it is incorrect:
Type of qualifier value | Replacement property |
---|---|
designations given to a competitor based on achievement, such as overall leader at the end of the stage (Q20882763), BUT NOT instances of distinctive jersey used in professional cycling (Q24257743) (see below) | |
medals awarded | award received (P166) |
countries | country for sport (P1532) (as long as the subject is a sport competition; otherwise probably represents (P1268) if different from country of citizenship, but I think that's outside your scope) |
distinctive jerseys worn | distinctive jersey (P2912) |
roles of competitors within a competition, e.g. driver (Q352388), co-driver (Q2465611), and team (Q327245) | object of statement has role (P3831) |
subclasses of a larger competition, e.g. by age, gender, distance, team size, vehicle type, etc., such as 18 metre Class (Q18156047), women's sports (Q920057), downhill men (Q120758370) | competition class (P2094) |
other | TBD, leave on of (P642) until alternatives are identified |
@Swpb: Thanks for restoring the current data. I will try to tell about the structure of the module. I am writing through a translator. I collected "places" (I think I found everything) where we use the "P642" parameter in the Module. And gave some explanations. So that it would be better to understand. What will need to be changed, and what can be left alone.
- In the winner (P1346) section, we indicate data on the results of the race, stage of the race, championship, tournament. These can be winners and / or leaders of the entire race (top 3), secondary classifications of the race, the tournament in which this race is included. They can be a person, a team, a national team and formally a country. It is important to use one qualifier for all of them to make it easier to update the Module. And also the presence of a single qualifier will be convenient for those who enter data.What if we make a new property "sports result"?
- Cima Pantani (Q10452933) - This is both an award. And at the same time it is a result at a stage of the race.
- Lanterne rouge (Q1315624) - it is stated that this is a sports award. But it is a designation of the last place in the Tour de France. It turns out that this is a result.
- country for sport (P1532) is used to indicate the "sports citizenship" of the racer in a specific race if it differs from the current one. For example, a racer from Great Britain at the Commonwealth Games will NOT represent Great Britain, but England, Scotland, Wales, S. Ireland. member of sports team (P54) Similarly, if the current team is different.
- head coach (P286) - here we use P642 to indicate the team that this person coaches. Will there be a need for a replacement?
- In distinctive jersey (P2912) we use to display the corresponding jersey in the table. In it we indicate depending on the type of race:
- - a cycling jersey from the list Jerseys.
- - the name of the discipline of the road cycling championship, to display the corresponding jersey and achievement. In total, there are more than 400 of them and it takes a long time to make a jersey for each one.
- Element Jolanda Neff (Q3183108), parameter member of sports team (P54). In it we use "P642" to indicate the cycling discipline to which the cycling team belongs. Will a replacement be needed?
- Element Tour de Limpopo (Q52579603), parameter subclass of (P279). We use to indicate the tournament in which this race was included in the specified years. Will a replacement be needed?
Since I see you have a little knowledge of Spanish, for clarity you can look at 2024 Tour de France (Q115137730) and es:Tour de Francia 2024. All tables are made through the Module.
Сan also help us @Psemdel: . — GAN (talk) 19:02, 7 November 2024 (UTC)
- I think you may slightly misunderstand what is going on. The main value of winner (P1346) can be a person, team, or country; that is not changing. What is changing are the qualifiers applied to those statements, which indicate all of the information on the left side of my table above. It is not appropriate for these different kinds of information to share a single qualifier property. For the first type of info listed, Rz98 suggested award received (P166); results (P2501) is also a possibility. I think the two of you (and any other users of this module) should confer and decide on a property, and let me know what it is. As for the second type of information, I have assumed that in a statement like [race]winner (P1346)[competitor]
of (P642)[country], the country listed is the country the user is representing in that competition, rather than the country of their citizenship. As far as I can tell, country for sport (P1532) means exactly that, and I am just changing the qualifier property, not its values. - As for the other properties you mention, yes: wherever they are used as main properties qualified by of (P642), the qualifier will have to be replaced. For now, let us focus on qualifiers of winner (P1346). Swpb (talk) 19:51, 7 November 2024 (UTC)
- Swpb: Thanks for your efforts and explanations. Your examples seem to include some usages of winner that are unrelated to cycling, such as "driver" or "18 metre class". Would it help if we compiled a list of items (e.g., Cima Pantani (Q10452933), overall leader at the end of the stage (Q20882763) etc) that the module currently uses with winner/of, and, say, made them "instance of" an item called "award in a cycling race"? This could be used to guide their conversion in a uniform way. -- Rz98 (talk) 19:31, 7 November 2024 (UTC)
- Yes, it would be helpful for the future to have all the awards/rankings be instances of such a class. Swpb (talk) 19:35, 7 November 2024 (UTC)
- @Rz98: - Wikidata:WikiProject Cycling/Kit to translate and User:GAN/sandbox#1 Values for the parameter "winner". But perhaps here are not all that we will use now. — GAN (talk) 19:51, 7 November 2024 (UTC)
- There is now distinction in a cycle race (Q131094762). It serves as a class for items understood by Module:Cycling race in the winner/of relation. Items that are instance of (P31) this class can be found with this query: [1]. That list was compiled from GAN's page and complemented by the results of some queries. As for the qualifier to replace of (P642), I suggested award received (P166), but I leave the choice to the others, who are much more familiar with all this. -- Rz98 (talk) 20:56, 8 November 2024 (UTC)
- @Rz98: - Wikidata:WikiProject Cycling/Kit to translate and User:GAN/sandbox#1 Values for the parameter "winner". But perhaps here are not all that we will use now. — GAN (talk) 19:51, 7 November 2024 (UTC)
- @Rz98, Psemdel: I am more inclined to replace it with results (P2501). This parameter seems closer to these achievements to me.
And in award received (P166) they can add directly the medal (gold, silver, bronze) received at the competition. This can allow to avoid problems/confusion in the future. — GAN (talk) 08:37, 9 November 2024 (UTC)
- @Rz98, Psemdel: I am more inclined to replace it with results (P2501). This parameter seems closer to these achievements to me.
- @Swpb: I made a sample in the Sandbox, replacing all "of (P642)" with "results (P2501)". This is how it should be in the end? Is it correct? Will this parameter pass our criterion? — GAN (talk) 08:37, 9 November 2024 (UTC)
- @GAN, Rz98, Psemdel: That looks fine to me. Please let me know when the module is updated to avoid reliance on P642, at least as far as winner (P1346) is concerned, and I will again migrate those statements. Swpb (talk) 15:08, 12 November 2024 (UTC)
Hi, sorry not very active presently, yes if the module needs to be changed I am available. Generally, I suppose award received (P166) should be ok. The cases parameter member of sports team (P54) like in Element Jolanda Neff (Q3183108), subclass of (P279) like in Tour de Limpopo (Q52579603) should not be a big deal. The of (P642) was (at least in French) making no sense at all, we just picked a property to give more detail. By member of sports team (P54) we could use sport (P641) (which would make more sense) and by subclass of (P279) we could use sports competition competed at (P5249) for instance. By head coach (P286), we could use member of sports team (P54)... Just ideas. Psemdel (talk) 21:20, 7 November 2024 (UTC) You let me know Psemdel (talk) 20:48, 8 November 2024 (UTC)
- Thanks Psemdel! Each of your suggested replacements make sense to me; let me know when the module is updated to handle them. Swpb (talk) 15:22, 12 November 2024 (UTC)
- Ok, I will start this weekend. I keep you updated. Disclaimer: I am still very very busy IRL, I will do my best... Psemdel (talk) 19:42, 14 November 2024 (UTC)
- I will assume that an item uses the new system or the old system, but not a mix of both, ok? Psemdel (talk) 20:35, 15 November 2024 (UTC)
- I coded the fallbacks here: https://fr.wikipedia.org/wiki/Module:Psemdel1 , I will make some tests tomorrow. Psemdel (talk) 21:03, 15 November 2024 (UTC)
- @Psemdel: I checked your changes in ru-wiki infobox, listofstages, listofstagesclassification, raceinfobox, listofwinners, victories that use section winner (P1346). — GAN (talk) 09:44, 16 November 2024 (UTC)
- From Sunday became Tuesday, but yes it seems to work. (anyhow, I did not change much). I think we can give it a try without fearing the disaster. For subclass of (P279) to give the circuit, it makes P279 in P279 I just noticed, it is not really bad, but maybe strange. I wanted to mention it. Psemdel (talk) 20:46, 19 November 2024 (UTC)
- @Psemdel: I checked your changes in ru-wiki infobox, listofstages, listofstagesclassification, raceinfobox, listofwinners, victories that use section winner (P1346). — GAN (talk) 09:44, 16 November 2024 (UTC)
@Psemdel: How is the template work going? I've come across another odd set of cases (see query), where the value of winner (P1346) is cancelled (Q30108381), but there is still a qualifier of (P642), generally with value overall winner general classification (Q20882667). I'm inclined to set all these to winner (P1346) = [no value] and drop the qualifiers, maybe adding a qualifier has cause (P828) = cancellation (Q54806642) cancelled (Q30108381). Will that affect you? Swpb (talk) 21:01, 25 November 2024 (UTC)
@Swpb: Yes, it will.
cancelled (Q30108381) indicates (designates) that the entire race was cancelled (did not take place) without specifying a reason. You can create an element "race cancelled" and replace it with it. In this case, the Module displays the name of the specified element in the table (if I'm not mistaken).
There may be several reasons for cancellation. For example:
- stage neutralised (Q119704279) - the stage took place, but its results will not be counted in the overall race standings
- cancellation of the stage (Q23023872) - the stage was not held at all. without specifying a reason.
But in both cases, the leaders of the various standings will be present (will remain the same compared to the previous stage).
— GAN (talk) 08:55, 27 November 2024 (UTC)
- I don't understand. I'm talking about statements like 2020 ZLM Tour (Q112304546)winner (P1346)cancelled (Q30108381)
of (P642)overall winner general classification (Q20882667) or 2022 Tour of Britain, stage 6 (Q113718385)winner (P1346)cancelled (Q30108381) of (P642)stage winner (Q20882747). No winner is specified in those statements, or anywhere else on those items; cancelled (Q30108381) (or "race cancelled") is a nonsensical value for winner (P1346) to have. Our proposal of replacing of (P642) with results (P2501) when the qual value is a standing only makes sense when the main value is a person: 2020 ZLM Tour (Q112304546)winner (P1346)cancelled (Q30108381) results (P2501)overall winner general classification (Q20882667) is just as nonsensical. This information should be modeled as I described, with winner (P1346) set to "no value" with no standing attached, and the template should be modified to handle that if necessary. If the template is presenting an actual stage winner for these cancelled stages, it must be inferring it from the previous stage's item, since no such winner is given on the cancelled stage items. Swpb (talk) 15:42, 27 November 2024 (UTC) - Ok, we could do this change. Let me check. Psemdel (talk) 21:22, 27 November 2024 (UTC)
- Just note that if someone has the bad idea to use both qualifiers results (P2501) and has cause (P828), it will be a bit buggy. I would stay by cancelled (Q30108381), it is well established and used by many races. cancellation (Q54806642) is maybe slightly better grammatically, but it's not too important. If everybody is ok, I could deploy it to the diverse wiki on the weekend. Just tell me. Psemdel (talk) 21:33, 27 November 2024 (UTC)
- I will rollout the change tomorrow evening (I will try ;)), if nobody makes a veto. Psemdel (talk) 21:21, 30 November 2024 (UTC)
- @Swpb, Psemdel: For cancelled races it will look like this? (Sandbox)
- The only thing I am against is using cancellation (Q54806642). In the ru-wiki it is called "cancellation of agreement" ("отмена договорённости"). This reason will look a little strange here.
- Therefore, since there will be a global replacement and the element cancellation of the stage (Q23023872) already exists, I propose to create a new element "Race cancelled".
— GAN (talk) 10:37, 1 December 2024 (UTC)- Why not. Psemdel (talk) 20:13, 1 December 2024 (UTC)
- Sure, we can do cancelled (Q30108381) instead of cancellation (Q54806642). I don't really feel like going through and changing some to cancellation of the stage (Q23023872) and others to "race cancelled", so I'd suggest any template relying on that value should accept any of those three. Swpb (talk) 17:39, 2 December 2024 (UTC)
- @Swpb, Psemdel: For cancelled races it will look like this? (Sandbox)
- I will rollout the change tomorrow evening (I will try ;)), if nobody makes a veto. Psemdel (talk) 21:21, 30 November 2024 (UTC)
- Just note that if someone has the bad idea to use both qualifiers results (P2501) and has cause (P828), it will be a bit buggy. I would stay by cancelled (Q30108381), it is well established and used by many races. cancellation (Q54806642) is maybe slightly better grammatically, but it's not too important. If everybody is ok, I could deploy it to the diverse wiki on the weekend. Just tell me. Psemdel (talk) 21:33, 27 November 2024 (UTC)
- Ok, we could do this change. Let me check. Psemdel (talk) 21:22, 27 November 2024 (UTC)
Done I deployed everywhere I could (I cannot on WP:es, ca and mk).I open some templates when possible, it was ok, except by WP:fo. A rollback did not help there so I left it...strange. Psemdel (talk) 19:35, 7 December 2024 (UTC)
- @Psemdel: Thanks! Do you know why you can't deploy to es, ca, and mk? It looks like you did deploy to ca, and you've edited the module on mk in the past? Anyway, I seem to have the ability to edit the module on those wikis, do I just need to copy the entire module from here to there? And what do you want to do with fo? Swpb (talk) 18:23, 9 December 2024 (UTC)
- It is protected. It may not have been before. I wrote ca, but it was a mistake, something overthere :D, maybe Portugal... Psemdel (talk) 21:10, 9 December 2024 (UTC)
@Swpb: — GAN (talk) 14:12, 10 December 2024 (UTC)
- This change (new criterion) is currently NOT supported by the module. Can you roll it back for now?
- And I also saw that you selectively changed the criterion for THIS.
Will they also need to be replaced? Right now the module has been updated only for winner (P1346) — GAN (talk) 12:39, 10 December 2024 (UTC)
- Sure, I will roll back that league or competition (P118) batch for now (and in future, I believe you can initiate the rollback as well, if I don't respond fast enough). Which part of the latter edit is causing a problem? beginning (Q529711) is not a unit, and number of participants (P1132) is constrained to not have any units. If the qualifier needs to be location (P276) instead of valid in period (P1264), that's fine, but I think it would be wise for the module to accept either. I guess I misunderstood Psemdel's "done" as meaning the module no longer relied on P642 at all. As I said before, ultimately every single use of of (P642) will need to be replaced. Swpb (talk) 14:54, 10 December 2024 (UTC)
- @Swpb: Thanks.
- I just don't know how to roll back such changes en masse. And how to make them (changes) too.
- The main (principal) problem is for us to know what needs to be (preferably) replaced with what. And what criterion will be offered to us as a new one is secondary.
- https://www.wikidata.org/wiki/Q115137730#P286 (head coach (P286)) Also replace of (P642). Is the most suitable option coach of sports team (P6087)?
— GAN (talk) 15:35, 10 December 2024 (UTC)
- @Swpb: Thanks.
- To roll back a batch edit, click the link "details" in the edit summary of any of the edits. This takes you to a page on Toolforge like this, where you will see a button "Undo entire group", which does exactly that. Yes, head coach (P286) is preferable to member of sports team (P54); I didn't know it existed. That is what should be used. Swpb (talk) 16:10, 10 December 2024 (UTC)
No panic, we can still change things. I read head coach (P286) instead of member of sports team (P54), why not. For league or competition (P118), I need to look. Psemdel (talk) 12:33, 11 December 2024 (UTC) For P118, presently I have P279. So in P279 put another P279... I can change if you want. P118 is presently not used at all in the module. We have sports season of league or competition (P3450) in the other direction, season of club or team (P5138) for the season of team, but no P118.Psemdel (talk) 13:28, 11 December 2024 (UTC) To answer your question SWP, all P642 are fallback now, but of course, you need to use the property we agreed for the replacement. There is no mention of P118 here. What is the problem with location (P276) now, it is also a new topic... P1264 is a "period", start/end is an instant, that's different things. If there is property "when" we could use it, but it does not exist. Date makes no sense at all neither. In cycling, the start is a location (start line) so there is no real problem with P276. Anyhow it is impossible to have everything perfect grammatically, all languages are different. Psemdel (talk) 13:37, 11 December 2024 (UTC)
- Yeah, sorry for changing some things on you. GAN pointed out that for coaches, coach of sports team (P6087) (not head coach (P286), to be clear) is more appropriate than member of sports team (P54), and I agree. The issue with sports competition competed at (P5249) is that its subject is supposed to be a season of a team; league or competition (P118) is not restricted that way. As far as start/end, location (P276) is fine: I can't remember what I was thinking with that one-off edit, it obviously wasn't needed for of (P642) migration. So to summarize, for the non-winner (P1346) statements, we have:
main property main value class qualifier property qualifier value class example head coach (P286) any member of sports team (P54)
coach of sports team (P6087)sports team (Q12973014) any
(including member of sports team (P54))any sport (P641) sport (Q349) Jolanda Neff (Q3183108)member of sports team (P54)Liv Racing TeqFind (Q1886678) sport (P641)road bicycle racing (Q3609) any sports season of a sports club (Q1539532) sports competition competed at (P5249) recurring sporting event (Q18608583), sports competition (Q13406554), or sports league (Q623109) any
(including subclass of (P279))any except sports season of a sports club (Q1539532) sports competition competed at (P5249)
league or competition (P118)
(I don't think subclass of (P279) would be appropriate here.)recurring sporting event (Q18608583), sports competition (Q13406554), or sports league (Q623109) Tour de Limpopo (Q52579603)subclass of (P279)2.2 (Q22231113) league or competition (P118)UCI Africa Tour (Q268357)
- Swpb (talk) 17:00, 11 December 2024 (UTC)
- ok, got it (changed in the code). Where do we need P5249? Psemdel (talk) 19:59, 11 December 2024 (UTC)
- sports competition competed at (P5249) may not apply to this module, I just included it for completeness. So you're saying the module is now updated to handle each of the other three cases above, as well as the winner (P1346) ones? How many languages have those latest changes been distributed to? I'm trying to get a handle on when I can run migration batches without breaking things on various Wikipedias. Thanks again for all the work you've done on this! Swpb (talk) 21:29, 11 December 2024 (UTC)
- ok, got it (changed in the code). Where do we need P5249? Psemdel (talk) 19:59, 11 December 2024 (UTC)
@Psemdel, GAN: How long do you think I should wait on pt-wiki and mk-wiki to update their protected modules before I start migrating "winner" statements? I put in edit requests on those wikis 7 and 6 days ago respectively and gotten no response. Also, are the updates for the above table pushed out to the Wikipedias? Swpb (talk) 17:09, 16 December 2024 (UTC)
- @Swpb: In the PT-wiki, the module is used more actively than in the MK-wiki. Therefore, it is advisable to update it in Portuguese. I pinged the most active person who updated the module earlier in the PT-wiki. Maybe by that time we will have time to make other changes to the module for the global update. — GAN (talk) 20:45, 18 December 2024 (UTC)
@Swpb: What is the point of these edits? Will something change again? We have a link to the years and category of the race. And in the new amendments, it is just the name of the tournament. — GAN (talk) 20:22, 18 December 2024 (UTC)
- Here there is a replacement for "P361". And in the table above, it was suggested to replace it with "P118". ??? — GAN (talk) 20:35, 18 December 2024 (UTC)
- A mistake I will fix. Nothing is changing from the plan. Swpb (talk) 20:34, 18 December 2024 (UTC)
Sorry guys, I am really not so active. I will update all wiki again... Psemdel (talk) 20:49, 18 December 2024 (UTC)
- Ok, I sync. Missing are: WP:ar (fork, see below), WP:da (idem), WP:es (forked, permission), WP:mk (forked, permission), WP:pt (forked, permission), and WP:ru (GAN you seem to have done some small changes...). 2001:9E8:4A0A:9100:AC84:C288:AFFC:59B2 20:32, 20 December 2024 (UTC)
- Yes, there is a slight difference in the ru-wiki. If anything, I will manually add them locally later. — GAN (talk) 04:37, 21 December 2024 (UTC)
@Psemdel, Swpb: https://www.wikidata.org/wiki/Q131471399#P1344 replace of (P642) --> competition class (P2094) (P2094 is used for the team category). For verification Classement UCI --> (GSIII). — GAN (talk) 04:44, 21 December 2024 (UTC)
- I have P279, if I see correct rigth now. Can we decide on something? Psemdel (talk) 20:12, 21 December 2024 (UTC)
- You can also replace it with P279. The main thing is to replace it right away. So that you don't have to update all the modules again because of this parameter. — GAN (talk) 21:27, 21 December 2024 (UTC)
- I'm not sure I understand the relationship being expressed by of (P642) here, but I'm sure it's not appropriate to use subclass of (P279) as a qualifier; it is constrained to main property scope. If UCI Trade Team III (Q20653566) is a role temporarily assigned to one particular team, then maybe subject has role (P2868) is what you're after? Or is it actually a competitive class? Swpb (talk) 03:25, 22 December 2024 (UTC)
- In this case, the team class is already stated in the preceding P2094 statement. Wouldn't the module take the information from there? As far as I can see, P1344/P642 is a relatively rare use for teams, I found only these:
- -- Rz98 (talk) 20:06, 22 December 2024 (UTC)
- @Rz98: It is rare. From 1999 to 2004, the team rating was divided into three categories GSI, GSII and GSIII (de:UCI-Weltrangliste Straßenradsport (Männer)). Accordingly, this parameter is used to indicate the category to which the team belonged in a certain year. Your option can also be used. But for this, more changes will probably have to be made to the module (to limit the range of years used). I suggest the "path of least resistance" option. — GAN (talk) 20:33, 22 December 2024 (UTC)
- Ok, I was wondering if the module already used P2094. If that is not the case, I agree with you. -- Rz98 (talk) 20:40, 22 December 2024 (UTC)
- @Rz98: It is rare. From 1999 to 2004, the team rating was divided into three categories GSI, GSII and GSIII (de:UCI-Weltrangliste Straßenradsport (Männer)). Accordingly, this parameter is used to indicate the category to which the team belonged in a certain year. Your option can also be used. But for this, more changes will probably have to be made to the module (to limit the range of years used). I suggest the "path of least resistance" option. — GAN (talk) 20:33, 22 December 2024 (UTC)
class=skin-invert when image is infobox icon
[edit]Hi @Psemdel. Yesterday you refresh the CAwiki version. These change deleted several class=skin-invert
that I added to adapt the module to dark mode, as I explained in previous discussion. Don't mind, I added them again, keeping the rest of your changes. I suggest you add them in the main wikidata version for future changes. Thanks,
In addition, your last yesterday message on previous discussion said "I deployed everywhere I could (I cannot on WP:es, ca and mk).". Is it something that may I help you regarding CAwiki?. Thanks ! Amadalvarez (talk) 06:09, 8 December 2024 (UTC)
- Obviously, I confused different wiki, if I changed CA. For the dark, it was not my intention to remove your edit. We need, as you mentioned, to put them in the main one. I will do it, but when... I don't know. Psemdel (talk) 19:28, 8 December 2024 (UTC)
- Ok, I just did it before I forget. It was a quick one. Please test on WP:ca, if it works. Psemdel (talk) 20:03, 8 December 2024 (UTC)
@Psemdel: Allows you to compare module versions in different Wikis and update
- https://www.mediawiki.org/wiki/Synchronizer - Script
- https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules - Description
You need to specify
- Module entity (Module:Cycling race) - Q21707933
- Master wiki (where the new version of the module will come from) - wikidatawiki or XXwiki
@Swpb: I updated eswiki via this script from wikidatawiki — GAN (talk) 14:26, 10 December 2024 (UTC)
- @GAN, Psemdel: Thanks! So if I understand correctly, mk and pt are now the only wikis where the module has not been updated? Swpb (talk) 15:01, 10 December 2024 (UTC)
- Thanks for the link. We can use it, but I normally try avoiding such mass change without involvement of the different wikis. We did it in the past, nobody checks (or can check) that it does lead to bug in a wiki. The wiki then says "the module is sh**" and we get a ban like on WP:en. I prefer, when I can, do it one by one and check if at least the basic templates work in normal case. But now, is something different. Psemdel (talk) 12:20, 11 December 2024 (UTC)
- @Mr._Ibrahem: could you please put your local change in the master? I don't want to erase them. thx. 2001:9E8:4A0A:9100:AC84:C288:AFFC:59B2 20:20, 20 December 2024 (UTC)
- @Hejsa:, idem. It seems there is local code in WP:da, can you merge? thx. 2001:9E8:4A0A:9100:AC84:C288:AFFC:59B2 20:22, 20 December 2024 (UTC)
- Sorry, I can't merge it. Hejsa (talk) 21:28, 20 December 2024 (UTC)