Module:Korok Seeds

local p = {}

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

function p.Main(frame) local args = utilsArg.parse(frame:getParent.args, p.Templates["Korok Seeds"]) local rows = DataTable.parseRows(args.cells or {}) local dataTable = DataTable.printTable(rows, {		game = args.game,		columns = {"Korok ", "Type [Term][Nowrap]", "Coordinates [Nowrap]", "Notes [Description]"},	}) return dataTable end

p.Templates = { ["Korok Seeds"] = { params = { game = { required = true, desc = "A game code.", type = "string", enum = Franchise.enum, },			["..."] = {				name = "cells", type = "content", trim = true, },		},		tableParams = { {				name = "korok", desc = "An image of the Korok.", tags = {"Image"}, },			{				name = "type", desc = "The Korok Seed Puzzle type.", tags = {"Term"}, },			{				name = "coordinates", desc = "Precise location of the Korok Seed Puzzle.", optional = true, tags = {"Nowrap"}, },			{				name = "notes", desc = "Notes on how to locate the Korok in the area.", tags = {"Description"}, },		},	}, }

return p