Module:Shiren Shield List Converter Proof of Concept Alt

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search

Documentation for this module may be created at Module:Shiren Shield List Converter Proof of Concept Alt/doc

-- This would only be used on the List of Shields page.

local p = {}
local mw = require('mw')

function p.main(frame)
	local args = frame.args

	local output = mw.html.create()

	local data = require("Module:Shiren Shield List Proof of Concept Data Cell")
	local metatable = {__index = function () return "" end}
	setmetatable(data, metatable)
	
	shieldArg = args["shield"]
	output:tag("p"):wikitext(shieldArg  .. ", Shiren 1 SFC: " .. data[shieldArg]["Shiren1SFC"] .. ", Shiren 6: " .. data[shieldArg]["Shiren6"]):done()

	return tostring(output) -- prints the data
	end

return p