ᱜᱚᱸᱲᱚᱸ:Lua
ᱧᱮᱞᱚᱜ
WP:Lua WPtalk:Lua | Help | To do | Resources mw:reference manual |
"Hello world"
[ᱥᱟᱯᱲᱟᱣ | ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]- Module:Bananas: The simplest possible script: say "hello world". Providing a single function with no arguments.
- Module:BananasArgs: Demonstrates how to access and use parameters.
Documentation
[ᱥᱟᱯᱲᱟᱣ | ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]- Scribunto Lua reference manual (Manual for the Mediawiki implementation)
- Programming in Lua (Official book/introduction to Lua)
- Lua tutorials at lua-users.org
- Wiktionary:Lua on English Wiktionary: contains notes on efficiency and on dealing with Unicode and UTF-8
How-to guides
[ᱥᱟᱯᱲᱟᱣ | ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]- Help:Lua for beginners
- Wikipedia:Lua style guide – standards to improve the readability of code through consistency
- "What do converted templates look like?" (slideshow)
- Wikipedia:Lua string functions
- Wikipedia:Guide to Scribbling
Testing modules
[ᱥᱟᱯᱲᱟᱣ | ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]- Module:UnitTests - used to power many module unit tests, which are usually found by the name "Module:(your-module-name)/tests".
- Sample unit tests for the "Hello world" modules
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
- PatternsTutorial
- REGEX (as applied by WP:AWB): WP:REGEX
Wikipedia resources
[ᱥᱟᱯᱲᱟᱣ | ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]- Special:PrefixIndex/Module:Sandbox - allows you to work on a set of files within a sandbox prefix.