Content deleted Content added
tweaks to clean code while retaining Snævar's performance fix; will restore Nardog's noprint when exact html is decided on talk |
tweaks; Module talk:EditAtWikidata/testcases shows no problems after this but the next edit will have noprint so the testcases will fail |
||
Line 1:
-- Module to display an icon with a tooltip such as "Edit this at Wikidata".
-- Icon
-- This message is only displayed if a local_parameter is not supplied
-- i.e. when called from a template, it can be coded not to display the message.
Line 32:
local anchor = trimToNil(args.pid)
-- Parameter nbsp replaces the leading space with
local space = trimToNil(args.nbsp) and " " or " "
return
space ..
"[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px
" |alt=" .. i18n.message ..
" |link=https://www.wikidata.org/wiki/" .. qid ..
(anchor and ("#" .. anchor) or "") ..
--"|class=noprint" ..
"|" .. i18n.message ..
"]]"
end
|