Module:Cite blog

From Starsector Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Cite blog/doc

local p = {}

local data = mw.loadData('Module:Cite blog/data')

function p.main(frame)
	local spec = nil
	if #frame.args == 0 then spec = "trueAccurate" 
	else spec = frame.args[1] end
	local entry = data[spec]
	if entry == nil then 
		return (spec .. ". ''[[Starsector]]'' blog.")
	end
	return (entry .. ". ''[[Starsector]]'' blog.")
end

return p