Module:Franchise/Documentation/Snippets

local p = {}

local Franchise = require("Module:Franchise") local utilsTable = require("Module:UtilsTable")

function p.enum1 local enum = Franchise.enum return utilsTable.take(enum, 10) end function p.enum2 return Franchise.enum.reference end function p.enumIncludeSeries local enum = Franchise.enum({		includeSeries = true,	}) return utilsTable.take(enum, 3) end function p.enumIncludeCompilations local enum = Franchise.enum({		includeCompilations = true,	}) return utilsTable.includes(enum, "E") end function p.enumIncludeGroups local enum = Franchise.enum({		includeGroups = true,	}) return utilsTable.includes(enum, "ALttP&FS") end

function p.enumGames1 local enum = Franchise.enumGames return utilsTable.slice(enum, 18, 20) end function p.enumGames2 return Franchise.enumGames.reference end function p.enumGamesIncludeSeries local enum = Franchise.enumGames(true) return utilsTable.take(enum, 3) end

function p.remakes1 local remakes = Franchise.remakes return { LA = remakes["LA"], TWW = remakes["TWW"], ST = remakes["ST"], } end

return p