Please remember that WiKirby contains spoilers, which you read at your own risk! See our general disclaimer for details.

Module:Autopatrol

From WiKirby, your independent source of Kirby knowledge.
Jump to navigationJump to search

Replaces the #switch implementation of Template:Autopatrol.


local p = {}
 
local usersData = mw.loadData( 'Module:Autopatrol/data' )
 
function p.users( frame )
    local usersText = frame.args[1]
 
    return usersData[usersText] -- Will return "y" if it exists on the table
end
 
return p