Translations:Extension:Scribunto/Lua reference manual/1246/en

Functions called by $1 will be passed a single parameter, that being a frame object. To access the parameters passed to the $1, code will typically use the  table of that frame object. It's also possible to access the parameters passed to the template containing the $1 by using $2 and accessing that frame's $3.