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,407:
:::This is an intriguing idea, but it'd have to be handled with care. Bot messages on every talk where this happens is not handling with care (it's asking for "external links modified" 2.0). <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> 13:41, 28 October 2023 (UTC)
:::{{ping|Polygnotus}} (I assume you meant [[d:WD:BOTREQ]]) The page says that asking on the Project Chat is preferable, so I decided to ask there first. [[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 19:30, 1 November 2023 (UTC)
== Edit request 15 December 2023 ==
{{Edit template-protected|answered=yes}}
'''Description of suggested change: Add optional globalSiteId parameter, for getEntityId() usage to get the QID from a non-enwiki sitelink'''
'''Diff:''' See [[Special:Diff/1190036817]]
'''Testcase:''' See [[Special:Diff/1190040466]]
Example: {{tq|<nowiki>{{#invoke:wd/sandbox|label|raw|page=Crosslauf-Europameisterschaften 2009|globalSiteId=dewiki}}</nowiki>}} should yield Q1141358. Implemented on sandbox and verified all test cases pass. It should not affect any existing behavior, as it only adds a new feature. If there is no opposition to this change, I can implement it. --[[User:Habst|Habst]] ([[User talk:Habst|talk]]) 16:12, 15 December 2023 (UTC)
:What is the use case? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:30, 15 December 2023 (UTC)
::@[[User:MSGJ|MSGJ]], in my case, I wanted to use it to help translate foreign-language pages in my userspace. If I could easily (with a regex) translate all <nowiki>[[wikilinks]]</nowiki> in a dewiki article into <code><nowiki>{{#invoke:wd/sandbox|label|raw|page=wikilink|globalSiteId=dewiki}}</nowiki></code> (or a template that would make this syntax shorter), I could combine that with {{tl|LinkedLabel}} to effectively translate all the wikilinks in a dewiki article into their enwiki equivalent titles.
::This is very helpful, because often times when translating an article, even if you understand the words, it can be difficult to know for sure what the appropriate target for a wikilink is. This can currently be done manually by clicking each wikilink in dewiki and then clicking "view wikidata item", but that's a painstaking manual process that only works one link at a time. --[[User:Habst|Habst]] ([[User talk:Habst|talk]]) 21:48, 15 December 2023 (UTC)
:::Okay, sounds like a good idea! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:52, 15 December 2023 (UTC)
:::: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 23:24, 22 December 2023 (UTC)
|