Jump to content

Module:Based on/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Nardog (talk | contribs) at 20:45, 21 January 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p._main(args)
	return args[3] and string.format(
			'%s <br /><span style="vertical-align:top">by </span><div class="plainlist" style="display:inline-block">\n* %s</div>',
			args[1],
			table.concat(args, '\n* ', 2)
		)
		or args[2] and string.format(
			'%s <span style="display:inline-block">by %s</span>',
			args[1],
			args[2]
		)
		or args[1]
end

function p.main(frame)
	return p._main(mw.clone(frame:getParent().args))
end

return p