Module:Stub

-- local Stub = {} local getArgs = require('Dev:Arguments').getArgs function Stub._main(image, topic, title) local text = string.format(       'This article or section is a stub%s%s. You can help the %s by [%s expanding it].',        topic and (' about ' .. topic) or '',       title and (' in ' .. title) or '',       mw.site.siteName,        tostring(mw.uri.fullUrl(mw.title.getCurrentTitle.prefixedText, 'action=edit'))    ) return mw.html.create('div') :attr('id', 'mntExpand') :addClass('stub') :tag('span') :addClass('image') :css('text-align', 'center') :wikitext(image or '') :done :tag('span') :addClass('text') :css('left', '-40px') :css('padding-left', '40px') :wikitext(text) :done :wikitext('') :wikitext(title and () or ) end function Stub.main(frame) local args = getArgs(frame) return Stub._main(args.image, args.topic, args.title or args[1]) end return Stub