Module:GuyPerfect: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
mNo edit summary
Line 3: Line 3:
     S2 = "Splatoon 2"
     S2 = "Splatoon 2"
}
}
function SiteColor(frame)
    return frame:expandTemplate {
        title = "SiteColor",
        args = { GAMES[frame.args[1]] }
    }
end


return {
return {
     hello = function(frame)
     gear = function(frame)
         local ret = ""
         local game    = frame.args[1]
         local num = 0
         local category = frame.args[2]
      
        local name     = frame.args[3]
        for k,v in pairs(frame.args) do
        local color    = frame:expandTemplate
            ret = ret .. "*" .. k .. " = " .. v .. "\n"
             { title = "SiteColor", args = { GAMES[game] } }
             num = num + 1
        end
   
        return "Arguments: " .. num .. "\n" .. ret
    end,


    gear = function(frame)
        ret = ret .. "</div></div>"
         return SiteColor(frame)
         return ret
     end
     end
}
}

Revision as of 01:00, 16 April 2021

Documentation for this module may be created at Module:GuyPerfect/doc

local GAMES = {
    S  = "Splatoon",
    S2 = "Splatoon 2"
}

return {
    gear = function(frame)
        local game     = frame.args[1]
        local category = frame.args[2]
        local name     = frame.args[3]
        local color    = frame:expandTemplate
            { title = "SiteColor", args = { GAMES[game] } }

        ret = ret .. "</div></div>"
        return ret
    end
}