Jump to content

Module:Shortdesc helper JS

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Galobtter (talk | contribs) at 09:40, 10 June 2019 (hm). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

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

return p