Jump to content

Help:Lua: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Adding material from Resources - this should be reworked into a Help:Lua main interface
new key for Category:Module help: " " using HotCat
 
(47 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{WikiProject Lua/header}}
{{WikiProject Lua header|sc1=HELP:LUA}}


== "Hello world" ==
* See [[Module:Example]]


==Documentation==
==Documentation==
* [[mw:Extension:Scribunto/Lua reference manual|Scribunto Lua reference manual]] (Manual for the Mediawiki implementation)
* [[mw:Extension:Scribunto/Lua reference manual|Scribunto Lua reference manual]] (Manual for the Mediawiki implementation)
* [http://www.lua.org/pil/contents.html#P1 Programming in Lua] (Lua.org manual for version 5.2)
* [http://www.lua.org/pil/contents.html#P1 Programming in Lua] (Official book/introduction to Lua)
* [http://lua-users.org/wiki/TutorialDirectory Lua tutorials at lua-users.org]
* [[wikt:Wiktionary:Scribunto|Wiktionary:Lua]] on English Wiktionary: contains notes on efficiency and on dealing with Unicode and UTF-8


==How-to guides==
==How-to guides==
* [[Help:Lua for beginners]]
* [[Wikipedia:Lua style guide]] – standards to improve the readability of code through consistency
* [[Wikipedia:Lua style guide]] – standards to improve the readability of code through consistency
* [[:File:WMF Tech Talk 2013-02-28 slides - Scribunto presentation.pdf|"What do converted templates look like?" (slideshow)]]
* [[:File:WMF Tech Talk 2013-02-28 slides - Scribunto presentation.pdf|"What do converted templates look like?" (slideshow)]]
* [[Help:Lua debugging]] – a how-to guide about [[debugging]] Lua modules
* [[Help:Lua for beginners]]
* [[Wikipedia:Lua string functions]]
* [[Wikipedia:Lua string functions]]
* [[Wikipedia:Guide to Scribbling]]


== "Hello world" demonstration modules ==
==Debugging modules==
* [[Module:SimpleDebug]] - It allows to collect and view the values of one or several variables and/or customized labels of several points of a lua program.
* [[Module:Bananas]]: The simplest possible script, providing a single function with no arguments.

* [[Module:BananasArgs]]: Demonstrates how to access and use parameters.
== Testing modules ==
* [[Module:UnitTests]] - used to power many module [[unit test]]s, which are usually found by the name "Module:(your-module-name)/tests".
* [[Module:Example/testcases]] – [[Module talk:Example/testcases|Results]] - Unit tests for [[Module:Example]] (the "hello world" module)

== Profiling modules and functions ==
* [[Module:Timing]] – module to do some simple probing of timing issues, mostly to spot and fix load problems

==Patterns==
* [[:mw:Extension:Scribunto/Lua_reference_manual#Patterns]]
* [[:mw:Extension:Scribunto/Lua_reference_manual#Ustring_patterns]]
* [http://lua-users.org/wiki/PatternsTutorial PatternsTutorial]
* REGEX (as applied by [[WP:AWB]]): [[WP:REGEX]]


==Wikipedia resources==
==Wikipedia resources==
* [[Special:PrefixIndex/Module:Sandbox]] - allows you to work on a set of files within a sandbox prefix.
[[Lua]] (mainspace article)

{{Lua programming language}}
{{Wikipedia technical help|collapsed}}

[[Category:Module help| ]]

Latest revision as of 15:03, 16 June 2024

  • Help:Lua for beginners
  • Help:Lua debugging – about debugging Lua modules
  • Wikipedia:Lua style guide – standards to improve the readability of code through consistency
  • Module:Sandbox provides a pseudo-namespace for experimenting with Lua modules

"Hello world"[edit]

Documentation[edit]

How-to guides[edit]

Debugging modules[edit]

  • Module:SimpleDebug - It allows to collect and view the values of one or several variables and/or customized labels of several points of a lua program.

Testing modules[edit]

Profiling modules and functions[edit]

  • Module:Timing – module to do some simple probing of timing issues, mostly to spot and fix load problems

Patterns[edit]

Wikipedia resources[edit]