Difference between revisions of "Help:Lua"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 11: Line 11:
 
* [http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual Lua reference manual]
 
* [http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual Lua reference manual]
  
 +
* [http://en.wikipedia.org/wiki/Wikipedia:Lua_style_guide Wikipedia Lua style guide]
 
* [http://en.wikipedia.org/w/index.php?title=Special:AllPages&namespace=828 List of Lua modules on Wikipedia]
 
* [http://en.wikipedia.org/w/index.php?title=Special:AllPages&namespace=828 List of Lua modules on Wikipedia]
 
* [http://wiki.tf2.com/w/index.php?title=Special:AllPages&namespace=828 List of Lua modules on this wiki]
 
* [http://wiki.tf2.com/w/index.php?title=Special:AllPages&namespace=828 List of Lua modules on this wiki]

Revision as of 20:02, 20 November 2013

Key issues

  • It is important to maintain backwards compability as templates are converted to Lua modules, to save us having to manually fix 10's or 100's of thousands of template calls. To that end it would make the most sense for existing templates to just call {{#invoke:Module|function}} which calls Module.function_name(param1, param2, ...).
  • How will users now edit certain templates with edit permissions limited to staff members? This can be split into two use cases. Those who want to edit a string or translated string and those who want to edit the module code itself. Perhaps they can request changes on the Module talk page for a staff member to review and push. Or, in the latter use case, it would be more efficient to introduce a 'module editor' user group that has edit permissions for Module pages, given to trusted and capable editors.
  • Some sort of list of code conventions and guidelines should be created. A simple document for now, that can be expanded upon as issues arise.

Resources