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,197:
::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 00:14, 8 June 2023 (UTC)
:::I am trying to create the best citations possible – in general: sometimes I get lazy and perform the reparameterisations described above – and I don't want to come off as oppositional, since I recognise we're on the same team. But if {{code|1=website=}} {{tq|should only get the ___domain name when the source is best known by that name}}, why do scripts assign that parameter the ___domain name more than nineteen times in twenty? Can things be adjusted such that the {{code|1=website=}} parameter gets assigned the ___domain name for a whitelist of domains, a human-readable name when the appropriate function can determine one, and remains unassigned in all other cases? [[User:Folly Mox|Folly Mox]] ([[User talk:Folly Mox|talk]]) 05:16, 8 June 2023 (UTC)
 
== Problem in [[Template:Infobox Russian inhabited locality]] ==
 
I recently edited [[Kazan]] as part of a [[User:XOR'easter/sandbox/ReferenceExpander|citation repair project]], and one of its references displays the pink text {{!bxt|Error: Unable to display the reference properly. See the documentation for details.}}, with "the documentation" linking this module.{{pb}}The error is coming from [[Template:Infobox Russian inhabited locality]], in the bit about 2018 population estimates, where it calls <nowiki>{{wikidata|reference|P1082|P585=2018-01-01}}</nowiki>. I thought I'd ask here if anyone has any ideas how to resolve the error, but I'm open to redirection if there's a better place to ask, whether on wp-en or on wikidata. [[User:Folly Mox|Folly Mox]] ([[User talk:Folly Mox|talk]]) 18:41, 12 June 2023 (UTC)
 
:The issue probably is that the reference for "1,243,500" on [[d:Q900#P1082|Kazan's Wikidata object]] uses {{property|P143}}. —[[User:Dexxor|Dexxor]] ([[User talk:Dexxor|talk]]) 08:02, 13 June 2023 (UTC)
::<s>According to the documentation {{Q|P143}} references should be ignored. So perhaps the error is coming from the second reference (maybe the Russian title) instead?</s> More testing is needed. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:11, 13 June 2023 (UTC)
::Correction - the error ''is'' coming from the first reference. The module is correctly ignoring {{Q|P143}}, but then all it has is the {{Q|P854}} without any title so it can't use {{tl|cite web}}. If you add {{Q|P1476}} to the first reference, then it use the first reference. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:15, 13 June 2023 (UTC)
::I suspect what we would like to do is to ignore the whole reference if ''any'' of the reference properties include {{Q|P143}}. That would be a significant change to the way the module is currently coded. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:26, 13 June 2023 (UTC)
:::Can I ask, what would be the positives of doing so? [[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 06:40, 18 June 2023 (UTC)
:For now I have [https://www.wikidata.org/w/index.php?title=Q900&diff=prev&oldid=1914299740 deleted] the URL which was a dead link anyway. It now correctly displays the second reference for that value. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:29, 13 June 2023 (UTC)
 
Testing on {{Q|Q4115189}}:
{{wikidata|reference|Q4115189|P1082|P585=2018-01-01}}
{{reftalk}}