Module:Shiren Shield List Converter Proof of Concept Alt

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 06:25, 15 November 2024 by B (talk | contribs)
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("pre"):wikitext(data[shieldArg]["Shiren1DS_en"]  .. ", Shiren 1 SFC:" .. data[shieldArg]["Shiren 1 SFC"] .. ", Shiren 6:" .. data[shieldArg]["Shiren6"]):done()

	return tostring(output) -- prints the data
	end

return p