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 803:
:::Thanks for your attention. I never understand 100% of conversations when Wikidata is involved, but the testcases page that I linked above displays properly now. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 19:31, 18 February 2022 (UTC)
::::{{re|Jonesey95}} Well, if you like, I can attempt to explain things at Wikidata in more detail. Let me know if you are interested. —[[User:Uzume|Uzume]] ([[User talk:Uzume|talk]]) 19:50, 18 February 2022 (UTC)
 
== Linking non-notable people to Wikidata entry ==
 
I discovered [[User_talk:Femkemilene#Demoing_how_to_get_CO2_atmosphere_PPM_from_Wikidata|here]] that when I use the "linked" flag, it produces this: {{wikidata|references|linked|P186|Q1997|page=Atmosphere of Earth}}. I want to use the flag so that NOAA will be linked, but when I do so, it also links to the Wikidata entry the author, who is not notable. This is not desirable, since only notable topics should be wikilinked. Could this behavior be disabled?
{{talkref}} <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> 18:53, 20 February 2022 (UTC)
:Another problem with <code><nowiki>{{wikidata|references|linked|P186|Q1997|page=Atmosphere of Earth}}</nowiki></code> is that it adds {{para|access-date}} using the date of the most recent en.wiki article refresh. Today, that is 20 February 2022. Tomorrow it will be 21 February 2022 and etc. That is wholly and completely wrong. {{para|access-date}} is used to identify {{em|the}} date that a human editor confirmed that the cited source supported the text in an en.wiki article. A fixed-in-time {{para|access-date}} allows editors to locate an appropriate archive snapshot if (when) the source goes 404.
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 19:14, 20 February 2022 (UTC)
::@[[User:Trappist the monk|Trappist the monk]], it doesn't look like that's the case. It's using the {{wpl|813}} value at Wikidata; I just set it to two days ago, and now it reads February 18. <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> 20:51, 20 February 2022 (UTC)
:::Yeah, ok.
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 23:42, 20 February 2022 (UTC)
:{{ping|Sdkb}} I think that is a consequence of [https://en.wikipedia.org/w/index.php?oldid=1072645968&diff=prev this change] that was recently introduced by {{u|Uzume}} (see the [[#Wrap label in nowiki?|Wrap label in nowiki?]] discussion above). [[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]]&nbsp;[[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 18:11, 21 February 2022 (UTC)
::Ah, thanks for the context; it looks like this is new as of a few days ago. {{u|Uzume}}, could you revert the change so that we can discuss before implementing? <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> 18:18, 21 February 2022 (UTC)
:::Ideally, we can keep the "nowiki" part of change but revert the "linking" part of the change. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 21:15, 21 February 2022 (UTC)
::::{{re|Sdkb|Jonesey95|Trappist the monk}} Okay, I commented out that part (at [[Module:Wd#L-701]]), however, this will likely still be an issue as I only implemented the "nowiki" fix on the linked label path when an actual link is created (that us why I forced it to always create the link when requested by the {{para||link}} parameter, falling back to linking to Wikidata when there is no local sitelink) as that was the only time I was sure client code was not expecting the raw unescaped label value. Reverting this will break testcases for Wikidata items with no local sitelinks (but that have labels needing to be escaped when used in wikitext), e.g., [[Template:LinkedLabel/testcases#Labels in Wikidata containing wikicode formatting (display plain text without formatting)]]. —[[User:Uzume|Uzume]] ([[User talk:Uzume|talk]]) 22:36, 21 February 2022 (UTC)
:::::{{re|Jonesey95|Sdkb|Trappist the monk}} Okay, I think I fixed this. When a linked label is requested the label is always "nowiki" escaped even when there is no local sitelink and an actual wikitext link is not returned. Raw unescaped labels can still be obtained via this interface by not requesting a linked label (i.e., unlinked labels are not "nowiki" escaped). I still think this should always return a wikitext link when a linked label is requested; when there is no local sitelink it should link to the Wikidata entity as is done for properties (which never have sitelinks). —[[User:Uzume|Uzume]] ([[User talk:Uzume|talk]]) 21:08, 22 February 2022 (UTC)
::::::Thanks again! – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 22:24, 22 February 2022 (UTC)
::::::{{ping|Uzume}} I have undone [https://en.wikipedia.org/w/index.php?title=Module:Wd&diff=1073619513&oldid=1073461681 this part] as it introduced link obscurity for no apparent reason. Also, I'm not in favour of linking to Wikidata if there is no sitelink just because of the example shown by {{u|Sdkb}}. When you want to make changes like these, please discuss them on this page first. [[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]]&nbsp;[[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 17:10, 23 February 2022 (UTC)
:::::::{{re|Thayts}} I see no issue there. Such things just came about while working on the issues presented here and a little cleanup while trying to understand and make such modifications. Properties have no sitelinks (local or otherwise) but they link to Wikidata. It seemed to me it made sense to return a link when a link is requested even when there was no local sitelink available. If that assumption was wrong, I have no issues discussing and fixing things. You will notice that such a change was introduced while I was attempting to fix the "nowiki" escaping for labels that contain valid wikitext markup. —[[User:Uzume|Uzume]] ([[User talk:Uzume|talk]]) 17:38, 23 February 2022 (UTC)
::::::::Properties are specific to Wikidata, so it's logical to link them to Wikidata. However, the purpose of linking (non-raw) entity labels was to link to their respective Wikipedia articles, if they exist. This because the idea was to make it possible to enrich Wikipedia with data from Wikidata by using this module. Nevertheless, perhaps a new flag can be added to allow linking to Wikidata in such cases. I also don't really understand how nowiki escaping is dependent on either linking or not. [[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]]&nbsp;[[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 22:32, 23 February 2022 (UTC)