User:Ganaram inukshuk/Provisional style guide for Lua: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
Parts of it are adapted for use on the wiki, with details on specific conventions. If a specific convention is missing, fall back to that described in the Luarocks style guide. | Parts of it are adapted for use on the wiki, with details on specific conventions. If a specific convention is missing, fall back to that described in the Luarocks style guide. | ||
== Provisional additions for version 2 == | |||
Consistency with param names, including spelling: | |||
* Define all param names at the module level, not the template level | |||
* Use snake_case for all param names throughout; anything remotely close to snake_case is normalized to snake_case | |||
* "debug" and "nocat" are reserved for toggling categories; the use of "debug" this way has already been the standard | |||
== Preliminaries == | == Preliminaries == | ||