Module talk:ResolveEntityId: Difference between revisions

Content deleted Content added
Redirects: groan, I see the last example on doc is a test of redirects
Redirects: I've looked up how to be pretty
Line 18:
 
:{{ping|MSGJ|Jonesey95|Johnuniq}} I think I have it resolved now. There was an earlier change to the sandbox before I made my changes that caused an error if there wasn't a Wikipedia sitelink in the Wikidata item (which wasn't in my testcases). I have fixed that issue in my sandbox, and implemented it in {{tl|taxonbar/sandbox}}. I also fixed the sandbox so that it only resolves redirects if a wikidata item doesn't exist. Please test out the new sandbox version, and I can copy it over to the main module. --[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<span style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:-.3em;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</span>]]) 00:14, 26 February 2022 (UTC)
::{{ping|Ahecht}} Please review the history at [[Module:ResolveEntityId/sandbox]] and check the edits I have made. Re [[Module:ResolveEntityId/doc]], you might consider rewriting the examples like the following.<syntaxhighlight lang="lua" indent="1">
<pre>
local resolveId = require('Module:ResolveEntityId')._id
id = resolveId('Q42')
</syntaxhighlight>
</pre>
::[[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 03:58, 26 February 2022 (UTC)