Content deleted Content added
m fix syntaxhighlight |
m Archiving 1 discussion(s) from Module talk:Wd) (bot |
||
Line 793:
There are several wishlist items this year that relate to this template. I'd particularly encourage folks to go support [[meta:Community Wishlist Survey 2022/Editing/Tool to add Wikidata to an article|Tool to add Wikidata to an article]]. Cheers, <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}}</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:56, 29 January 2022 (UTC)
== Wrap label in nowiki? ==
At [[Template:LinkedLabel/testcases#Complex_labels_in_Wikidata_(failure_cases_as_of_February_2021)|this testcases page]], there is an example of a failure to render a retrieved label correctly, because the label has three ' (apostrophe) characters in a row. That string of three ' is rendered as bold markup instead of plain text. Please see [[Module_talk:Infobox_gene#Template-protected_edit_request_on_3_February_2022|this discussion]] for a similar problem with trusting raw wikidata values to be valid as wikitext output.
Can someone please wrap the label in nowiki formatting so that this problem does not happen? I suspect that there are subtle instances of this sort of error caused by this module on many article pages, not just this one testcases page. [https://en.wikipedia.org/w/index.php?oldid=1071136191&diff=prev Here's a diff] showing one way to handle the raw Wikidata text. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:32, 17 February 2022 (UTC)
:Pinging {{U|Uzume}}, for whom this might be a quick fix. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:32, 17 February 2022 (UTC)
::{{re|Jonesey95}} Okay, I fixed two things for that. First I did [[Special:Diff/1072641193/prev|1072641193]] to fix the issue of escaping raw Wikidata labels when used in wikitext links but that did not fix the aforementioned test case because the testcase uses a Wikidata item that had no applicable sitelinks and the code avoided making a link for such cases (despite making links for properties which never have sitelinks). So then I did [[Special:Diff/1072645968/prev|1072645968]] to make it so that Wikidata items will always yield links (when requested). They will continue to use applicable sitelinks when available but will fallback to linking to Wikidata in a fashion similar to how it handled properties (which never have sitelinks). —[[User:Uzume|Uzume]] ([[User talk:Uzume|talk]]) 19:22, 18 February 2022 (UTC)
:::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)
|