Module:EditAtWikidata/sandbox: Difference between revisions

Content deleted Content added
copy of current module
 
add "nbsp" parameter which, if set to any value, will replace the leading space with  
Line 36:
local entity = mw.wikibase.getEntityObject(qid)
if entity then
 
local thisQid
if qid then thisQid = qid else thisQid = entity.id end
 
-- Named parameter nbsp allows replacing the leading space with  
local space
if frame.args.nbsp and (frame.args.nbsp ~= "") then
space = " "
else
space = " "
end
 
return
"space .. "[[File:Blue pencil.svg |frameless |text-top |10px |alt=" ..
i18n.message ..
" |link=https://www.wikidata.org/wiki/" ..