Jump to content

Module talk:ResolveEntityId

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 20:25, 24 June 2021 (clarify). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Redirects

@Ahecht: a really useful module. Would it possible to follow redirects and give the ID of their target? โ€” Martin (MSGJ ยท talk) 17:07, 22 June 2021 (UTC)[reply]

@MSGJ: It already follows Wikidata redirects. For example {{#invoke:ResolveEntityId|entityid|Q404}} returns Q404. Are you talking about following Wikipedia redirects as well? UInless I'm mistaken, since redirects typically don't have Wikidata entries, this would require an expensive function call to retrieve the redirect target. --Ahecht (TALK
PAGE
) 20:00, 24 June 2021 (UTC)[reply]