Module talk:Cycling race: Difference between revisions

From Wikidata
Jump to navigation Jump to search
Content deleted Content added
Molarus (talk | contribs)
Line 115: Line 115:
:<nowiki> string.gsub(s, "{{(%w+)}}", function (n) return frame:expandTemplate{ title = n } end)</nowiki>
:<nowiki> string.gsub(s, "{{(%w+)}}", function (n) return frame:expandTemplate{ title = n } end)</nowiki>
The point in this function is, that it is possible to integrate a Wikidata function (frame:expandTemplate) into a Lua-function (string.gsub). Yesterday I saw in the lua-doc that this is possible. The more I write lua code, the more I see how well the developers of Wikidata do their job. --[[User:Molarus|Molarus]] 13:09, 17 February 2016 (UTC)
The point in this function is, that it is possible to integrate a Wikidata function (frame:expandTemplate) into a Lua-function (string.gsub). Yesterday I saw in the lua-doc that this is possible. The more I write lua code, the more I see how well the developers of Wikidata do their job. --[[User:Molarus|Molarus]] 13:09, 17 February 2016 (UTC)
::Interesting. I am a little lost with code, but I start to understand little to little, you test something thats is brand new, and it permits uou to know the limit of the system. On my side, I modify the code for having a legend in small and centered, no point between the day and the month in some languages (I understand now) and no Wikidata logos for cyclists in the infobox in latin languages (thanks to nameGuzzler we have values). I miss my last test, Aps-vologda from RU Wiki (but I contact him on EN Wiki) [https://en.wikipedia.org/w/index.php?title=User_talk%3AAps-vologda&type=revision&diff=705419727&oldid=705410792 ask me to do this]. For the number of edition, russian have ''-й'' juste after the number (102-й, 83-й). [[User:Jérémy-Günther-Heinz Jähnick|Jérémy-Günther-Heinz Jähnick]] ([[User talk:Jérémy-Günther-Heinz Jähnick|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 14:54, 17 February 2016 (UTC)


== Tour du Táchira 2016 ==
== Tour du Táchira 2016 ==

Revision as of 14:54, 17 February 2016

Module talk:Cycling race/archive, Module talk:Cycling race/archive2, Wikidata:WikiProject Cycling/SPARQL, Module:Cycling team

Tour de France 2015

2015 Tour de France
Race details
Course102e Tour de France
Competition2015 UCI World Tour 2.UWT
Stages21
Dates4 – 26 July 2015
Distance3,360 km
CountriesFRA France
NED Netherlands
BEL Belgium
Journey originUtrecht
Journey destinationParis
Teams22
Starting riders198
Arriving riders160
Average speed39.567 km/h
Official siteOfficial site
Palmares
WinnerGBR Christopher Froome (Team Sky)
SecondCOL Nairo Quintana (Movistar Team)
ThirdESP Alejandro Valverde (Movistar Team)
PointsSVK Peter Sagan (Tinkoff-Saxo)
MountainsGBR Christopher Froome (Team Sky)
YouthCOL Nairo Quintana (Movistar Team)
CombativityFRA Romain Bardet (AG2R La Mondiale)
TeamESP Movistar Team
20142016
Documentation

References


Umag Trophy 2013

YearWinnerSecondThird
2013SLO Aljaž HočevarNOR Oscar LandaAUT Gernot Auer
2014SLO Matej MugerliCRO Matija KvasinaITA Davide Mucelli
2015SLO Marko KumpAZE Maksym AverinRUS Sergey Nikolaev
2016GER Jonas BokelohRUS Mamyr StashITA Filippo Fortin
2017SLO Rok KorošecITA Filippo FortinNZL Alex Frame
2018NOR Krister HagenGBR Tom BaylisSRB Dušan Rajović
2019CZE Alois KaňkovskýITA Andrea GuardiniNOR Olav Hjemsæter
2020NED Olav KooijSLO Marko KumpGER Niklas Märkl
2021ITA Jakub MareczkoITA Filippo FortinCZE Tomáš Bárta
2022AUT Daniel AuerCZE Tomáš BártaSRB Dušan Rajović
2023CZE Adam ToupalikSUI Jan ChristenNED Darren van Bekkum
2024GBR Matthew BrennanFRA Noa IsidoreITA Jakub Mareczko

Tour Down Under 2015

StageDateCoursetypeDistance - km (mi)Stage winnerOverall leader
1re stage 20 JanTanunda – Campbelltown
plain stage
plain stage
132.6AUS Jack BobridgeAUS Jack Bobridge
2e stage 21 JanUnley – Stirling
plain stage
plain stage
150.5ESP Juan José LobatoAUS Jack Bobridge
3e stage 22 JanNorwood – Paracombe
intermediate stage
intermediate stage
143.2AUS Rohan DennisAUS Rohan Dennis
4e stage 23 JanGlenelg – Mount Barker
plain stage
plain stage
144.5AUS Steele Von HoffAUS Rohan Dennis
5e stage 24 JanMcLaren Vale – Willunga
intermediate stage
intermediate stage
151.5AUS Richie PorteAUS Rohan Dennis
6e stage 25 JanAdelaide – Adelaide
plain stage
plain stage
90NED Wouter WippertAUS Rohan Dennis


Cycling race/infobox, finetuning

About the new update: Starttime and endtime is at one row now. If month and year are equal the format is: day1 - day2 month year. And so on. There is no need to translate the month, the code does that on its own. About distance and speed: The code checks that the units are kilometer and kilometer per hour. In this case "km" and "km/h" will be print. I have found the cyrillic abbreviations, but not the Japanese. I guess, in japanese there is now "kilometre" not "km". I have not tested the translation in ja and mk, but there should be no problem. --Molarus 00:04, 9 February 2016 (UTC)[reply]

I have found en:Date format by country, therefore I will add code tomorrow for the order styles YMD and MDY. --Molarus 00:35, 9 February 2016 (UTC)[reply]
The code for jaWP, enWP and lvWP is in Module:Version 2 now, but it is not as I would like. For example, in enWP it is day1 month1 year1 - day2 month2 year2, because I can´t believe that it is: "April 7 - 22, 1996" or in jaWP: 1996 July 7 - 22. PS: The code is around row 170. --Molarus 09:47, 9 February 2016 (UTC)[reply]
In England, they write the datas as we the French, but Americans not, see for example en:2015 Tour of California where we have "May 10–17, 2015".
On FR Wiki, I have again this problem of point after the day. But I discover that people from Luxembourg have this point like norvégians.
Can you delete the Wikidata flags for the cyclists ? The goal is to test this infobox when it will operationnal with only the logo at the title.
For the classification of the best team, can you adapt the function that you have created for listofstages when the winner is a team, to take the official name that don't have "2015".
I will make a translation for function infobox_left in English, but before, I think we should replace date de début and date de fin by date when it is a single day race and dates (plural) when it is a stage race. We should have a plural form for Compétition and for Pays when there is more than one country (there is no difference in this case in French, but I suppose it is different with other langages).
Finally, in In Wikidata missing, I discover a little lag (décalage in French), with for example image (P393) and légende (P17) on fr:Modèle:Cycling race/infobox. Jérémy-Günther-Heinz Jähnick (talk) 13:51, 9 February 2016 (UTC)[reply]
The program now exists in russian, thanks to Aps-vologda. Jérémy-Günther-Heinz Jähnick (talk) 14:18, 9 February 2016 (UTC)[reply]
I have written the basic version of the module, next step is to test it. I have seen already one error, I guess there are more.
Are you sure to delete the flags for the cyclists, they don´t link to the race, they link to the cyclists. Especial in small wikis this is a good feature. I would rather try to switch it off for some wikis.
I will do the other proposals.
"Tour Down Under 2015" on this page is broken, I have to see why.
Maybe if everything is OK with the basic version, we could start showing this module to the wikipedias? I guess there will be some wishes to add into the code and after that I will start adding the advanced features (ref, question mark, free form,..). Do you agree? --Molarus 16:06, 9 February 2016 (UTC)[reply]
The switch is the best solution. I think it will be very interesting for MK, RU, LV and JA. For Wikipedias that use the latin alphabet, I use nameguzzler to add a label to the latin languages, and when I publish on FR Wiki, I verify if we have the flag (it is rare that we don't have the nationality for a cyclist).
I already start to discuss with some users of other Wikipedias about a common infobox, and they are very interested. Some of them surely know the 100 % Wikidate infobox we already use on FR Wiki, and the number of articles of races written last year. They are also interested by the program of Papuass when I show them lv:Team Sky, evidence that many contributors are interested in improving their working conditions. Jérémy-Günther-Heinz Jähnick (talk) 17:09, 9 February 2016 (UTC)[reply]

I don´t understand for what the plural form for Compétition is used to? And note to me: You forgot the code for a one stage race. --Molarus 18:28, 10 February 2016 (UTC)[reply]

See fr:Grand Prix de Fourmies 2015 and fr:Grand Prix Criquielion 2015. Jérémy-Günther-Heinz Jähnick (talk) 19:00, 10 February 2016 (UTC)[reply]

The code for the date should be OK (Module:Version 2). The standard format is: 08. May 2016 There is special code for jaWP, enWP and lvWP. About point after day: Do you write in french: 08 May 2016? Then I have to add another special case and I have to look into the code for function listofwinners. --Molarus 05:45, 11 February 2016 (UTC)[reply]

We write "8 mai 2016".
On another point, Mahir256 that speak bengali use a little program on 2015 Tour de Luxembourg, Prologue (Q20035570) that permits him to enter 115 cyclistes in five minutes. So I contact him to ask more informations and I propose him to add bengali translations at the module. Around 200 millions of people speak this language in the world. Their Wikipedia is not very big but we can provide that a better access to Internet in few year will permit to boost their Wikipedia. Jérémy-Günther-Heinz Jähnick (talk) 14:13, 11 February 2016 (UTC)[reply]
The code for the fr:date is done and I have moved the code to this module. This way you can test or copy the code to fr:Wiki. I don´t expect any error.
Cool! --Molarus 16:26, 11 February 2016 (UTC)[reply]

There is another problem: The previous and the next race are now wikilinks of those races, but if the name of that race has many characters the infobox is getting really huge. In frWiki they use two rows for this problem, while in enWiki they just print the year. I prefer the enWiki solution, because it is obvious that this is the previous / next race because of the arrows. And one row less and a lot of characters less is better too. PS: I have choosed the arrows from unicodetables.com/. Actually "Geometric Shapes" and not arrows, 25C2 and 25B8, there are bigger ones, but I like the small ones. Could you comment on both topics? PPS: Interesting: Because there is no english label for "Grand Prix Criquielion 2016" the french label is used. And the point of time property and the second competition is missing in this infobox. I will do that today. PPPS: Just saw at Q19316919 the picture property: There is as qualifier some info about that picture added. Hey, that is your picture! It seems that the text is not shown right in frWiki, the templates are not working. But I guess the text under the picture in frWiki is not from Wikidata. --Molarus 14:58, 12 February 2016 (UTC)[reply]

I prefer arrows like FR Wiki, it is not little but not big. You can use only the year, it is more logical. But be careful if it is a race like fr:Tour d'Égypte 2016 because the race start in december 2015 but finish in january 2016 (always specific cases...). This way, we save place ans have no problems with races like International Wielertrofee Jong Maar Moedig.
Yes, it is me, the reportage is c:Grand Prix Criquielion 2015. I remember that this day I do at least 70 km with my bike to illustrate the race. I like this race. media legend (P2096) is not shown on FR Wiki, even if we have a problem that we dont have for halves stages. I can use sup if necessary, I discover that the legend of Wikidata is prioritary on the legend of FR Wiki (I delete it). Jérémy-Günther-Heinz Jähnick (talk) 17:26, 12 February 2016 (UTC)[reply]
There are a lot of hidden treasures in commons. About races around december / january: Maybe it is possible to find a solution for that with overwriting the module with wikicode? previous year = 2014/15 and next year = 2016/17. --Molarus 20:33, 12 February 2016 (UTC)[reply]
This case is very rare, but I think that it is the day of the last stage that count for the edition. Jérémy-Günther-Heinz Jähnick (talk) 20:36, 12 February 2016 (UTC)[reply]
This is my solution: Actually the link to the previous and next race looks this way: [[abc 123|abc 123]]. My solution is to get the part between "|" and "]" and delete everything that is not a number. Then, I´m adding the part before and after again (plus the arrow) and the new Wikilink is done. I have tested that in frWiki with the infobox in my userspace.
I have seen that in the documentation you write "... (P2096) qualifier used to specify the legend of photography. There may be as many values ​​as there are languages." I have not coded that, because P2096 has the datatyp "Monolingual text". That means if the legend is written in french, every wiki gets this text in french. My solution is so far, that the legend has to be added into wikicode in every wikipedia. What do you think?
Only the "Movistar 2015"-problem is missing (I will read this page later if I have missed something), which I will do this afternoon. After that I could start testing the code and maybe something is wrong or missing, or I could start improving the code. The functions flag and listofwinners could be written shorter and this way I could reduce the size of the module maybe 10kbytes, but I would need some more days (maybe 3 to 5 days). What do you prefer?
--Molarus 09:02, 13 February 2016 (UTC)[reply]
I prefer first the infobox. This morning I was at a reunion for the 2016 Grand Prix de Denain (Q19842424), I will upload the photos and create the article with the new infobox, I will present it to other speakers to ask them translations. I will try to do this this week end. For media legend (P2096), the creators says that we can add all the descriptions we want with different languages, on FR Wiki I think they have a filter that only take text in French. For the infobox, I will be interested for Wikidata logos only in LV, MK, RU, JA and language that have a different alphabet or translitteration. Idem for listofwinners (but keep the logo for edition), nameGuzzler permits me to update all latin languages (except LV that is specific). Can you use bold for titles like FR Wiki for the infobox ? Jérémy-Günther-Heinz Jähnick (talk) 13:02, 13 February 2016 (UTC)[reply]
The infobox should accept more than one value for part of (P361). For the 2016 Grand Prix de Denain (Q19842424), the race is part of the 2016 French Road Cycling Cup (Q22248291) and of the 2016 UCI Europe Tour (Q21029681).
The infobox is on the left, it should be on the right.
It will be interesting to have the little flag with the country.
It lacks the point in time (P585) when it is a single day race, but there is no problem when it is a stage race.
Can we have an infobox wide of around 250/260 px ? For example, files should be wide of 250 px. Jérémy-Günther-Heinz Jähnick (talk) 14:30, 13 February 2016 (UTC)[reply]
@Jérémy-Günther-Heinz Jähnick: The module is updated in frWiki. Have a look at fr:Utilisateur:Molarus. I will be in Wikidata for some more hours, so ping me if there is an error. Maybe the articles in frWP are not up to date, because sometimes is last some time. You could try in preview mode, maybe. --Molarus 16:41, 13 February 2016 (UTC)[reply]
Thank you Molarus. I do a test on fr:Grand Prix de Denain 2016 (I am producting the cartography thanks to the organisers), and it is very good (a dream becomes true). Is it possible to display the title Résultats only if we have a value for the winner of the race ? We have the problem with a point between 14 and avril. Is it possible to have a yellow line above the previous and next races ? The line below can become yellow ? And finally, is it possible to have documentation write in small ? It is just details. This morning, I speak of your work at organisers of the race, I say than thanks to your work editors of smaller Wikipedias will can also have articles about races and save time. Jérémy-Günther-Heinz Jähnick (talk) 17:19, 13 February 2016 (UTC)[reply]
The infobox is too big, I have added some width-information: width:350px. The small changes are done, the one with the Résultats I will do tomorrow. Are you producing the cartography for the organizers of the race? I guess yes. Congratulations! --Molarus 17:52, 13 February 2016 (UTC)[reply]
They give me an accreditation that permits me to be next to the cyclists, and in exchange I produce an article and I offer them the photos I realise during the races and during the presentations. I like producing cartography, especially when it is next to my house (I live at 12 km from the start/finish of this race). Jérémy-Günther-Heinz Jähnick (talk) 18:59, 13 February 2016 (UTC) PS : I try an update on FR Wiki, but it seems this module is more modern that the supermodule (that has not been updated with the last changes). Jérémy-Günther-Heinz Jähnick (talk) 19:09, 13 February 2016 (UTC)[reply]
Today, I make an adaptation to DE Wiki and to MK Wiki. For MK Wiki, I have a little problem with mk:Шаблон:Cycling race/infobox for distances and average speed, I know you will fastily found it, it is about units. In macedonian, they don't add a point between a day and a month (I think it needs to copy the lines 204/205 used for FR Wiki, but I am not sure).
And the three Wikipedias, I have a little problem with the cost of the Grand Prix de Fourmies, it lacks the unit.
Can you put "documentation" (bottom of the infobox) on the right of the infobox, instead on the left ?
Can you delete the Wikidata logos for cyclists for DE Wiki, I do a test, but it don't work. With a second line, I will can understand the thing and do the modification for some languages.
I have a problem with the cycle logo, that change of place depending the lenght of the name of the race. Isn't it possible to give it a precise place, and when the title is too long, we find it on two lines.
And finally, I have a little problem with the media legend (P2096). The rest works, it is interesting to see a such infobox. Jérémy-Günther-Heinz Jähnick (talk) 15:33, 14 February 2016 (UTC)[reply]
And to finish, a problem with the infobox that take deprecated datas 2016 Clásica de Almería (Q21869773). This race is an interesting case, because it arrives just today when I test the new infobox. Jérémy-Günther-Heinz Jähnick (talk) 17:53, 14 February 2016 (UTC)[reply]
I don´t understand why the deprecated rank is used. The problem is, that deprecated data could be everywhere and that means, updating all properties. I remember that was the discussion about winners who lost because of doping. But as far as I remember this information will not be seen, see Help:Ranking#Deprecated_rank. Maybe this is only true for wikilinks and labels, because the code for them is a bit different. For that I am using the wikidata functions. I don´t know if that is true, maybe I should ask Wikidata:Contact the development team.
I don´t see what you mean with Wikidata links in de:WP, I have no problem, see de:Vorlage:Cycling race/infobox. --Molarus 20:35, 14 February 2016 (UTC)[reply]
I have done the code for mk:WP, the icon and documentation. You can copy the module to mk:WP. About the picture, legend P2096. The legend is written in french (monotext) and therefore it is seen only in frWP. If that was not the problem, please tell me.
Could we put "Starting riders" and "Arriving riders" in one row, maybe this way: "Arrivants 160 (198)". The Partants are in brackets. This way we have one row less.
the cost needs more time, I will do that later. And for the rank, I have to do some tests to understand the problem. I will look for the item with the doping problem in our archive, to see why it worked there.
at de:WP the link to the next and previous race is not a wikilink, but it is seen. Maybe that link should not be seen? What do you think?
--Molarus 07:30, 15 February 2016 (UTC)[reply]
For DE Wiki, it is to do the same as FR Wiki : don't have the Wikidata logo for the cyclists. For latin languages, items already have values, I verify this when I enter a value. They also have flags.
Thanks to this diff, I now understand how to add an exception when languages not have a point between the day and the month.
Deprecated datas are interesting to figure in Wikidata, that avoid other users to bring a correction : we have an article in French, but not all users are able to understand the French. With Wikidatas, we have translatable items, it is not a problem to see a big race with only 21 kilometers because we have the info that normally it was 184 km but that has been shortened due to a very bad weather. Another exemple is a wrong date birth that has sources, using reason for deprecated rank (P2241) is not seen in the article, but if an user try to correct the information, he will see why the info is different. Today, this type of procedure is not very useful, we are generally only 2 or 3 Wikipedias to have an article, but we can imagine in the future being more numerous, and the change of a good information can be seen on around 10 Wikipedias. A good similar example is towns in Belgium, they have merged in the '70 : Tournai is now a commune that 30 former communes, and I think at a race like the prologue of the Eurométropole Tour that make a difference a finish to Mont-Saint-Auber rather than Tournai. We can give a better information, but we also can receive a better information. We can imagine a similar item to solve the case for Bergenga, when the finish of one of his race was not a town but an airport. It can say "this race don't take place in this commune but in another place". With translations, other users will can understand the case, and they will don't need to translate with Google a source added in an foreign language. These cases are very rare, it is sure.
For the media legend (P2096), I would prefer have the legend writting below the file, that we can always see it, like it is the case in FR WIki.
I prefer having two lines, it is not a problem to have a long infobox because we can provide having more text in the future in articles.
It is not a problem, the link will appear when they will create the articles. Is it possible to not display the arrow when we don't have values for follows (P155) and followed by (P156). I think at races like fr:La Méditerranéenne 2016 where it is the first time they are raced, and for a big number of race we are not sure they will already exist next year. It is only a detail.
I must say that to you, thanks for all the work you do daily since two monthes and two weeks, it is very big when we see all the road that had been make. Jérémy-Günther-Heinz Jähnick (talk) 09:57, 15 February 2016 (UTC)[reply]
I would say, a lot of people already joined this effort and we all achieved a lot. In my view, it seems that data and code are the two sides of the same coin. --Molarus 16:31, 15 February 2016 (UTC)[reply]
Yes, it is a team work, like in cycling, but you do a very big job.
I find a bizarre bug. The program works on de:Katar-Rundfahrt 2016 and es:Tour de Catar 2016 (also when I test in the documentation of LB) but not in fr:Tour du Qatar 2016 where I have in red L’ID saisi est inconnu du système. Veuillez utiliser un ID d’entité valide.. I have the same problem on MK.
A similar problem arrives with articles of the category lb:Kategorie:Quatre jours de Dunkerque, and I have a problem in more, a message error on some articles that indicate the line 137, that correspond to media legend (P2096).
Jérémy-Günther-Heinz Jähnick (talk) 17:59, 15 February 2016 (UTC)[reply]
I will look into this. And maybe I already have a solution for the "depreciated"-problem. You can see at Module talk:Version 2 that in this case everything is OK, but I have to test if that is true for other items. --Molarus 19:04, 15 February 2016 (UTC)[reply]
I found that the module can´t read the labels of the start- and endplace of Tour du Qatar 2016. After changing the label into "Corniche de Doha" with a big "C" from "corniche de Doha" with a small "c" the problem was gone. Strange!! Now I will look into Quatre jours de Dunkerque 2015. Maybe a similar problem? --Molarus 21:30, 15 February 2016 (UTC)[reply]
No, this race always start and finish at Dunkerque.
For the edition 1955, I found Erreur Lua dans Module:Cycling_race à la ligne 174 : bad argument #1 to 'pairs' (table expected, got nil).. It seems to be a problem with part of (P361) that the module wants absolutely. Jérémy-Günther-Heinz Jähnick (talk) 22:14, 15 February 2016 (UTC)[reply]
Maybe that is a different problem. With Quatre jours de Dunkerque 2015 I can read de and en label, but not fr and lb label. I will ask Wikidata:Contact the development team --Molarus 22:23, 15 February 2016 (UTC)[reply]
I have rewritten the module into a short module of 6 rows, that only reads the label and this code works. The conclusion is: This is my problem, not that of Wikidata. --Molarus 07:22, 16 February 2016 (UTC)[reply]
I have found my error and the problem is done. A big, bad error! Sorry for that. I have updated lb.WP, from where I took new translations to this module. --Molarus 09:57, 16 February 2016 (UTC)[reply]
I do tests for Quatre jours de Dunkerque 2013, 2014 and 2015 on FR Wiki et LB Wiki, and there is a problem, the image is not displayed, like the legend, but the rest is good. Jérémy-Günther-Heinz Jähnick (talk) 14:10, 16 February 2016 (UTC)[reply]
The image and the legend should work, even the template in the legende will work. Lua rocks! I have tested that with "Quatre jours de Dunkerque 2015" in frWiki. --Molarus 16:24, 16 February 2016 (UTC)[reply]
I try to adapt by deleting "thumb', but it don't works. I would prefer having just the legend below the photo, but with a display different that a classical photo in the text with borders and text inside (difficult to explain in English). To a someting similar to the card but with the legend as a text below. Jérémy-Günther-Heinz Jähnick (talk) 16:36, 16 February 2016 (UTC) A little problem on Quatre jours de Dunkerque 2012, we have two "[" when there is not file in image (P18).[reply]
The image and the legend should work, even the template in the legende will work. Lua rocks! I have tested that with "Quatre jours de Dunkerque 2015" in frWiki. And on this page I have added in the legende a text with templates and it does work too. This way I´m sure it will work in different Wikis then frWiki too. By the way, with a "thumb "the text will be seen on this page, without a thumb it is only a tooltip. And I have extended the code that without a legende, the thumb is not used. I will look into the problem. --Molarus 16:24, 16 February 2016 (UTC)[reply]
The problem is the border, like fr:Grand Prix de Denain 2015 has. I think it is possible to display the text contained in media legend (P2096) individually under the file. To have a function that display the file [[File:XXX|center|300px]] and another, independantly, that display a French legend if it exists, in small and centered. It is very important because the border is ugly. Jérémy-Günther-Heinz Jähnick (talk) 17:08, 16 February 2016 (UTC)[reply]
I have found another problem, the legend in "Quatre jours de Dunkerque 2013" was not shown (because french is the second legende in the item), the corrected code is on this wiki. I think it is possible to show the text in a colspan = 2 table row below the picture. I will do that tomorrow. --Molarus 17:28, 16 February 2016 (UTC)[reply]
Thank you. On my side, I finish my day of work in 1 h 30, so I just have listed Wikidatas that not have a point between a day and a month, and I will contact users to have translations, I think especially at a russian user. Jérémy-Günther-Heinz Jähnick (talk) 17:32, 16 February 2016 (UTC) (I note that your code for the legend is better than this we have on FR Wiki, because it permits to display the templates)[reply]

I have found a solution for the depreciouted-problem. At first I wanted to find one solution for all properties, but now I will find a different solution for every property. I already have one for distance and number of participants. It is not difficult, just add a loop and some lines of code in function fooA, therefore not much room for new errors. PS: the code to display templates is just one line of code:

string.gsub(s, "{{(%w+)}}", function (n) return frame:expandTemplate{ title = n } end)

The point in this function is, that it is possible to integrate a Wikidata function (frame:expandTemplate) into a Lua-function (string.gsub). Yesterday I saw in the lua-doc that this is possible. The more I write lua code, the more I see how well the developers of Wikidata do their job. --Molarus 13:09, 17 February 2016 (UTC)[reply]

Interesting. I am a little lost with code, but I start to understand little to little, you test something thats is brand new, and it permits uou to know the limit of the system. On my side, I modify the code for having a legend in small and centered, no point between the day and the month in some languages (I understand now) and no Wikidata logos for cyclists in the infobox in latin languages (thanks to nameGuzzler we have values). I miss my last test, Aps-vologda from RU Wiki (but I contact him on EN Wiki) ask me to do this. For the number of edition, russian have juste after the number (102-й, 83-й). Jérémy-Günther-Heinz Jähnick (talk) 14:54, 17 February 2016 (UTC)[reply]

Tour du Táchira 2016

Hello,

There is an error on fr:Tour du Táchira 2016. Happy debugging :-)

Regards, --Zebulon84 (talk) 10:37, 16 February 2016 (UTC)[reply]

Maybe that is because there are some winners called "no value"? I have deleted the infobox in this fr:article, because maybe this is a bigger problem. So far we assumed that if there is no winner, there would be no statement. --Molarus 10:50, 16 February 2016 (UTC)[reply]
Yes I guess that's the reason. Never assume anything on Wikidata... --Zebulon84 (talk) 10:56, 16 February 2016 (UTC)[reply]
Zolos infobox has no problem with "no value". --Molarus 12:25, 16 February 2016 (UTC)[reply]
Exact, no statement if no value. Now it works. Jérémy-Günther-Heinz Jähnick (talk) 13:26, 16 February 2016 (UTC)[reply]
Zebulon84 is right, that the code should live with that. I have added to this module code that it works with unknown winners and number of participants while there is a qualifier. I have seen, that the module has no problem with unknown speed and distance. I have updated the code in WD and frWP. The problem is solved.
The next problem is the rank. I have code for that, but I don´t think that I´m done with that. --Molarus 13:52, 16 February 2016 (UTC)[reply]