Module:ItemsNav/All

local p = {}

local Franchise = require("Module:Franchise") local Items = require("Module:Items") local utilsMarkup = require("Module:UtilsMarkup")

local data = mw.loadData("Module:Items/Data")

function p.Main(frame) local result = "" for _, game in ipairs(Franchise.enumGames) do		if Franchise.canonicity(game) == "canon" and not Franchise.isRemake(game) and data[game] then result = result .. utilsMarkup.heading(2, Franchise.display(game)) .. Items.printNav(game) for _, remake in ipairs(Franchise.remakes(game)) do				if data[remake] then result = result .. utilsMarkup.heading(3, Franchise.display(remake)) .. Items.printNav(remake) end end end end return result end

return p