Module:EditAtWikidata: Difference between revisions

Content deleted Content added
create module to display an icon with a tooltip such as "Edit this at Wikidata"
 
internationalise
Line 36:
if qid then thisQid = qid else thisQid = entity.id end
local icon = " [[File:Blue pencil.svg |frameless |text-top |10px |alt=" .. i18n.message .. " |link=https://www.wikidata.org/wiki/" .. thisQid .. "|Edit" this.. oni18n.message Wikidata.. "]]"
return icon