Module:Sandbox/Galobtter/Shortdesc helper explained

local p =

local prepend = window.sdh = ;

/* These messages can be changed to localize Shortdesc helper for your wiki.

local append =

function p.main(frame) local text = mw.title.new('MediaWiki:Gadget-Shortdesc-helper.js'):getContent local content = text :match('var messages.-;') :gsub('var messages', 'window.sdh.messages') :gsub('\t\t', '\t') :gsub('\t};', '};') content = prepend..content..'\n\n'..append return frame:extensionTag ('syntaxhighlight', content, )end

function p.append(frame) return frame:extensionTag ('syntaxhighlight', append, )end

return p