Module talk:Wd/Archive 1: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Wd) (bot
m Archiving 1 discussion(s) from Module talk:Wd) (bot
Line 1,332:
 
:{{ping|Ponor}} The code probably uses the precision set in Wikidata, not in Wikipedia. [[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 14:38, 27 September 2023 (UTC)
 
== Built-in citation needed function ==
 
Would it be possible to build in a mechanism for the references function of {{t|Wikidata}} to output a {{t|Citation needed}} tag if it does not come up with any references? For instance, when we use the template to fetch the number of students at a university, it's theoretically possible that someone in the future will update the {{wpl|2196}} (setting the more recent value to preferred rank) but not add references. If that happens, it'd be nice for there to be a citation needed tag rather than for the references function to just not display. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 04:21, 4 October 2023 (UTC)
:I'm seeing a use case for this sort of thing at [[Associated Students of Pomona College]], where [[Module:WikidataIB]] should be used instead of this module, per the documentation and a related RFC. Using that module will take care of sourcing for you and will decline to show data when sourced numbers are not available. You could tell the module what to display or output a tracking category if if can't get a sourced number. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 04:57, 4 October 2023 (UTC)
::@[[User:Jonesey95|Jonesey95]], thanks for the reply; I'll look into converting to [[Module:WikidataIB]] there. The particular use case that prompted me to ask here was the first sentence of {{section link|Pomona College|Student body}}, where the number of students is used in the prose, so just blanking isn't an option. When I was updating [[wikidata:Q7227384#P2196|the data]] for this semester on Wikidata, I tried waiting a moment to add the reference for the new data, hoping that I'd configured the <code>single</code> flags (or whatever it is I need to be configuring; perhaps I need to only allow <code>preferred</code>-ranked data?) well enough that it would identify that a reference is missing. But it just spit out all the references for the old data instead. The flags are a confusing enough part of the template that I just haven't been able to get them to work quite right. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 05:41, 4 October 2023 (UTC)
::As far as I know WikidataIB does not yet display any references &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:06, 4 October 2023 (UTC)