Module talk:WikidataIB: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) to Module talk:WikidataIB/Archive 8) (bot
Line 12:
{{oldtfdfull|date= 2020 September 15 |result=keep |disc=Module:Wikidata Infobox}}
{{archives|search=yes}}
 
==How to only show year of a numeric value?==
How can I only show the year of a numeric value, for example the year for the population size of a city? Now I used the following advanced string manipulation to remove the value, which makes the script slow - it gives the error message "The time allocated for running scripts has expired" if the script is included a large number of times in the same Wikipedia page:
*<code><nowiki>{{#invoke:Ustring|gsub|{{#invoke:WikidataIB |getValue |P1082 |qid=... |fwd=ALL |rank=best |osd=no |qual=P585|qdf=y|noicon=TRUE|list=p-1}}|^[%d,± ]* %((%d%d%d%d)%)|%1}}</nowiki></code>
 
[[User:Tomastvivlaren|Tomastvivlaren]] ([[User talk:Tomastvivlaren|talk]]) 00:06, 11 March 2022 (UTC)
 
== sorted=true: by what? ==