Module talk:WikidataIB/Archive 6: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikidataIB) (bot
m Archiving 1 discussion(s) from Module talk:WikidataIB) (bot
Line 158:
 
::::Fixed by [[User:WOSlinker]]. Thank you! [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 02:39, 18 April 2020 (UTC)
 
== Create Graphs and tables from Wikidata Values ==
 
Hi, I know [[Module:WikidataIB]] is intended to be used only inside the Infobox of an article. Is there any modules available so that we can construct graph and create tables using the data from Wikidata.-[[User:Gnoeee|<span style="color:#990000">❙❚❚</span><span style="color:#339966">❙❙</span><span style="font-family:Noto Sans;color:#000"> JinOy </span><span style="color:#006699">❚❙❚</span><span style="color:#339966">❙❙</span>]] [[User talk:Gnoeee|✉]] 12:14, 24 April 2020 (UTC)
: {{re|Gnoeee}} It depends on what you want to do.
: Modules are good at extracting data from single entries, so it would be realistic, for example, to pull the figures for {{q|P1082}} from {{q|Q60}}:
:* <code><nowiki>{{wdib|fwd=ALL|osd=n|P1082|qid=Q60|qual=P585}}</nowiki></code> → {{wdib|fwd=ALL|osd=n|P1082|qid=Q60|qual=P585}}
: It wouldn't be difficult to use those figures to create a chart.
: Modules are very poor when you want to scan across multiple entries to extract a value from each one. That's usually done via the [[Wikidata Query Service]] (WDQS). [https://w.wiki/NxA This query] is an example of cities with a population greater than 12 million. Unfortunately there's presently no way to use those results directly in Wikipedia pages. You'd have to use an external charting tool and embed the result in a Wikipedia page. --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 17:48, 24 April 2020 (UTC)
::{{re|RexxS}} Thank you for providing the information. It was just for a confirmation about the usage of the above mentioned template outside that of Infobox. I have created a model table using the template you have mentioned at [[User:Gnoeee/sandbox|here]] to display daily updates of 14 items. So that the data changes according to the changes in Wikidata.-[[User:Gnoeee|<span style="color:#990000">❙❚❚</span><span style="color:#339966">❙❙</span><span style="font-family:Noto Sans;color:#000"> JinOy </span><span style="color:#006699">❚❙❚</span><span style="color:#339966">❙❙</span>]] [[User talk:Gnoeee|✉]] 19:16, 24 April 2020 (UTC)