Moduldiskussion:Cycling race

Sidans innehåll stöds inte på andra språk.
Från Wikipedia

Too many expensive function calls[redigera wikitext]

@Jérémy-Günther-Heinz Jähnick: It looks like that this module is trying to då too much at the same time. See e.g. Team Sky that got error messages at the end. Please make the error message disappear. --MagnusA 4 juli 2016 kl. 13.56 (CEST)[svara]

Hi MagnusA. We start to discover this problem since few weeks because each day we enter datas on Wikidata (in this example, we enter the different teams of cyclists).
The solution will surely consist to ask at the Fundation to rise the limit of expensive function calls. We are just discussing of this problem. Jérémy-Günther-Heinz Jähnick (diskussion) 4 juli 2016 kl. 14.13 (CEST)[svara]
And when you hit the limit again? Raising even more? It must be a better, more effektive, way to the problem. E.g. splitting certain articles into smaller pieces? --MagnusA 4 juli 2016 kl. 14.29 (CEST)[svara]

Lua script error after recent module update[redigera wikitext]

@Jérémy-Günther-Heinz Jähnick: The recent update you did for this module has a negative side effect:

  • When there is no slutdatum (P582) for any of the har del(ar) (P527) of a "WorldTeam" the variable riderEnd has the nil value when it, on line 5605 in the Lua code, is subject to a string concatenation. The concatenation fails and the result is that Lua code execution is aborted and the wikipage is left with an error message.

I think you have to change line 5605

from
tCell:wikitext( ' ('..riderStart..'–'..riderEnd.. (riderPosition or '')..note..')')

to
tCell:wikitext( ' ('..riderStart..'–'..(riderEnd or '').. (riderPosition or '')..note..')')

and maybe also similar for riderStart in order to handle this case.

The object AG2R La Mondiale 2017 (Q27996479) is an example on where this occurs. It is used i article Ag2r-La Mondiale in this wiki. --Larske (diskussion) 13 februari 2020 kl. 14.26 (CET)[svara]

Hi @Larske:. Yes, it was that. I make an update on Modul:Cycling race. But I see the code evolves on d:Module:Cycling race so I make a new update from this supermodule (on SV Wiki, you just have a copy, the fact was near two years were spend before two updates). Thanks you. I have two points to speak to you (sorry for my English but I am French) :
1) Since year, other functions were created, I have in my head classifications and a full startlist, see here. Are you interested to receive these functions ? (the code on SV Wiki already permits to use them, but it is possible you need to add swedish translations on the supermodule).
2) Four year ago, when I gives you few functions on SV Wiki, I was not able to give a documentation in your language on how to fill Wikidata. On a second hand, Wikidata is surely used at other parts of SV Wiki. So since few time I am working with a Catalan wikimedian at a part of a bigger project (creating common infoboxes) where I make documentation for properties : Supertemplates. If you or other Swedish Wikimedians are interested, it is possible to bring translations on Wikidata items, this permits to finally have a documentation entirely translatable in swedish. This documentation evolves with the time, I often add new cases and new properties documentation. The idea is, in more to share programs, it is possible also to share documentation.
Jérémy-Günther-Heinz Jähnick (diskussion) 13 februari 2020 kl. 19.01 (CET)[svara]

@Jérémy-Günther-Heinz Jähnick: Pardonnez Moi! it is too long ago since I learned French. I never did it very well and it never came into much use! I see your code make Red links. I have failed to come up with a cheap algoritm that set up red links. Where in the code should I look? 62 osv (diskussion) 11 augusti 2020 kl. 21.22 (CEST)[svara]