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,580:
:The above filters the multiple values of population (P1082 property) by the latest year (P585 qualifiers). If you add <code>|P459=Q6042918</code> after <code>|P1082</code>, then the result is also filtered by determination method. [[User:Serresmap|Serresmap]] ([[User talk:Serresmap|talk]]) 18:55, 18 April 2024 (UTC)
::{{ping|Serresmap}} Thank you for your reply. When I wrote this code exactly, it didn't work. Could there be a problem? Could you please check again? --[[User:Sadrettin|Sadrettin]] ([[User talk:Sadrettin|talk]]) 08:41, 23 April 2024 (UTC)
 
== Reference without title ==
 
If a reference doesn't have a title, the URL isn't shown and "Error: Unable to display the reference properly. See the documentation for details." is shown instead.<br>
Would it be possible to not use <nowiki>{{</nowiki>[[Template:Cite web|Cite web]]<nowiki>}}</nowiki> if there's no title so that the URL is shown? [[User:The RedBurn|The RedBurn]] <small>([[User Talk:The RedBurn|ϕ]])</small> 15:59, 11 May 2024 (UTC)
:This is an as-yet unaddressed problem with the module. See [[#A_systematic_way_to_avoid_reference_errors_may_be_needed|above]]. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 03:47, 13 May 2024 (UTC)
:I plan to improve this error message; in the next ~3 months, if nothing wrong. But I agree with you it would probably be better if we let {{tl|Cite web}} to report missing titles. I thinks so because if the reference rendering fails, the module will need to report two errors (one for {{tl|Cite web}} missing/unknown param on Wikidata, and one error for {{tl|Cite Q}}) – this would be probably too confusing for non-technical editors.
:Is anybody opposed to this change?
:—[[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 09:35, 25 May 2024 (UTC)
::I have made the said change to the sandbox. Here is a result sample:
:::{{#invoke:wd/sandbox|references|Q69678|P1082}}
::Original behavior, for comparison:
:::{{#invoke:wd|references|Q69678|P1082}}
::&ndash; [[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 17:32, 7 June 2024 (UTC)
{{reflist-talk}}
::{{ping|The RedBurn}} Oops, I misread {{tq|1=to not use {{tl|Cite web}} }} in your comment as "to use {{tl|Cite web}}". As for this, we could probably not; see [[Module talk:Wd/Archive 1#Reference formatting bug when using "author name string" (P2093)|this]] discussion. To quote an editor from the discussion: {{tq|1=Titles are required so when <code><nowiki>{{cite web}}</nowiki></code> emits a missing title error, that is a good thing, because someone can go to wikidata and fix it}}.
::As for the change I did (even though it's not what you proposed), what do you think of it?
::–[[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 06:40, 9 June 2024 (UTC)
:::Your change is great, I actually thought {{T|Cite web}} was the culprit for hiding the URL when there's no title. [[User:The RedBurn|The RedBurn]] <small>([[User Talk:The RedBurn|ϕ]])</small> 06:29, 10 June 2024 (UTC)
::::Ok, I went ahead and updated the module. [[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 19:18, 10 June 2024 (UTC)
:::::{{ping|Janhrach}} This is a huge improvement, thank you! [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 19:42, 15 June 2024 (UTC)