Translations:Extension:Scribunto/Lua reference manual/1244/qqq

«It is generally good style for the module to declare all functions and variables local.» It means that both (variables and functions) should be local.