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		local section = "" if Franchise.canonicity(game) == "canon" and not Franchise.isRemake(game) then if data[game] then section = section .. Items.printNav(game) end for _, remake in ipairs(Franchise.remakes(game)) do				if data[remake] then section = section .. utilsMarkup.heading(3, Franchise.display(remake)) .. Items.printNav(remake) end end end if section ~= "" then result = result .. utilsMarkup.heading(2, Franchise.display(game)) .. section end end return result end

return p