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

then $1 will return $2, $3 will return $4, and $5 (or $6) will return $7. It is also possible to iterate over arguments using $8 or $9.