Module:Shiren Shield List Converter Proof of Concept Alt

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 06:16, 15 November 2024 by B (talk | contribs) (Created page with "-- 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(data[shieldArg]["Shiren1DS_en"] .. () .. data[shieldArg]["ja"] .. [[)]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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(data[shieldArg]["Shiren1DS_en"] .. [[()]] .. data[shieldArg]["ja"] .. [[)]] .. data[shieldArg]["Shiren3Wii_en"] .. [[ ]] .. data[shieldArg]["Shiren5Vita_en"]):done()
	output(tag)("p"):wikitext("This shield is " .. data[shieldArg]["Shiren1SFC_en"])
	return tostring(output) -- prints the data
	end

return p