Module:Treasure Chests

local p = {}

local DataTable = require("Module:Data Table") local utilsArg = require("Module:UtilsArg")

function p.Main(frame) local args = utilsArg.parse(frame:getParent.args, p.Templates["TotK Chest"]) local cells = args.cells or {} local rows = DataTable.parseRows(cells)

local columns = {"Treasure Chest [Term][Nowrap]", "Contents [Term][Nowrap]", "Coordinates [Nowrap]", "Notes [Description]"} local dataTable = DataTable.printTable(rows, {		game = "TotK",		columns = columns,	}) local html = mw.html.create("div") :wikitext(dataTable) return tostring(html) end

p.Templates = { ["TotK Chest"] = { params = { ["..."] = {				name = "cells", type = "content", trim = true, },		}	}, }

return p