Module:EditAtWikidata/sandbox: Difference between revisions

Content deleted Content added
more performant
No edit summary
Line 27:
-- This will not normally be used except for testing outside the article.
local qid = frame.args.qid
if qid and (qid == "") then qid = nilmw.wikibase.getEntityIdForCurrentPage() end
 
-- The module can take a parameter pid=
Line 34:
 
-- Get the object containing all the claims for the article
if qid and mw.wikibase.entityExists(qid) then
local thisQid
if qid then thisQid = qid else thisQid = mw.wikibase.getEntityIdForCurrentPage()nil end
 
-- Named parameter nbsp allows replacing the leading space with