Module talk:Wd: Difference between revisions

Content deleted Content added
Line 134:
::::::::@[[User:Julius Schwarz|Julius Schwarz]] The <code>mw.getContentLanguage():formatNum(tonumber())</code> part above around the raw currency amount should fix that. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 13:15, 11 June 2025 (UTC)
:::::::::@[[User:Ahecht|Ahecht]] took a bit of tinkering but I think it is working, thanks a lot! [[User:Julius Schwarz|Julius Schwarz]] ([[User talk:Julius Schwarz|talk]]) 13:26, 11 June 2025 (UTC)
 
== Seeking most recent value ==
 
When seeking a value such as a population via this template, Wikidata will often have multiple values with different {{wpl|585}} qualifiers. Sometimes the most recent one will be given a preferred rank but sometimes not. Is there any way to ask it to retrieve the most recent one? I don't think (?) the future/current/former flags can work for this, both because they rely only on {{wpl|580}}/{{wpl|582}}, not on {{wpl|585}}, and because even if they did, the most recent value would just be one instance of a former value and wouldn't be prioritized if the other happened to be listed first.
 
I [[Module_talk:Wd/Archive_1#Seeking_newest_value,_rather_than_current_value|asked about this a few years ago]] and @[[User:Thayts|Thayts]] mentioned something in the works; has there been progress on it? <span style="border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)">[[User:Sdkb|<span style="color:#FFF;text-decoration:inherit;font:1em Lucida Sans">Sdkb</span>]]</span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:37, 28 July 2025 (UTC)