Module:Minimal Example

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 01:08, 9 November 2024 by B (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Adventure Squad Pokémon dungeons table -- -------------------------------------------------------------------------------- local p = {} local mw = require('mw') function p.main(frame) local args = frame.args local output = mw.html.create() local test = mw.html.create() local data = require("Module:Adventure Squad Dungeon Data Cell") local metatable = {__index = fun...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Minimal Example/doc

--------------------------------------------------------------------------------
--
--					Module:Adventure Squad Pokémon dungeons table
--
--------------------------------------------------------------------------------

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

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

	local output = mw.html.create()
	local test = mw.html.create()

	local data = require("Module:Adventure Squad Dungeon Data Cell")
	local metatable = {__index = function () return "" end}
	setmetatable(data, metatable)

	while true do

		local dungeonArg = args["dungeon_" .. i]
		test:tag('div'):wikitext(data[dungeonArg]["version"]):done()
		end

	output
		:node(test)
	return tostring(output)

end

return p