Module talk:WikidataIB/Archive 7: Difference between revisions

Content deleted Content added
m Archiving 2 discussion(s) from Module talk:WikidataIB) (bot
m Archiving 1 discussion(s) from Module talk:WikidataIB) (bot
Line 413:
::I think the "easiest" would be using Y F d (in #time: syntax). As long as it was the right date, #time: would use what parts it needs without knowing which order the parts are. All my questions are connected with {{tlx|PH wikidata}} – [[User:Not Samuel Pepys|Not Samuel Pepys]] ([[User talk:Not Samuel Pepys|talk]]) 23:33, 11 November 2020 (UTC)
::: The module uses [[Module:Complex date]] to render dates in whatever language is required, and using <code>mw.language:formatDate</code> (the Scribunto implementation of the #time parser function) would break that functionality as well as failing when qualifiers like 'circa' are added. If I still had the value of the timestamp available when doing the sorting, I could sort that alphanumerically and that would be easiest way. I'm considering prepending the timestamp to the formatted date and then stripping it off after sorting as a solution to the problem. --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 00:21, 12 November 2020 (UTC)
 
== Wrong default for display parameter passed to Coord template by getCoords ==
 
Right now if you use the getCoords function and don't explicitly provide a display parameter, it sets a default of "inline, title". This is unexpected and unnecessary since {{tl|Coord}} has a pre-existing default for display which is "inline". Thus, getCoords doesn't need to pass its own default display parameter. And even if it did, it should be "inline", not "inline, title". This is causing confusion for people who are migrating templates to use WikidataIB instead of {{tl|Coord}} directly: [https://en.wikipedia.org/wiki/Module_talk:Coordinates#Duplication_of_coordinates][https://en.wikipedia.org/wiki/Template_talk:Infobox_bridge#Multiple_coordinates]. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 04:10, 8 December 2020 (UTC)
:
: {{re|Kaldari}} thanks for the bug report. In the sandbox I checked the result of not providing a default from getCoords and it looks fine - see [[Module talk:WikidataIB/sandbox/testing #Coordinates]]. I've now made that version live, so please ping me if any errors show up. Cheers --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 20:43, 8 December 2020 (UTC)