Wikipedia:Lua

Wikipedia data structure
Namespaces
Subject namespacesTalk namespaces
0 (Main/Article)Talk 1
2 UserUser talk 3
4 WikipediaWikipedia talk 5
6 FileFile talk 7
8 MediaWikiMediaWiki talk 9
10 TemplateTemplate talk 11
12 HelpHelp talk 13
14 CategoryCategory talk 15
100 PortalPortal talk 101
118 DraftDraft talk 119
710 TimedTextTimedText talk 711
828 ModuleModule talk 829
Deprecated
2300 GadgetGadget talk 2301
2302 Gadget definitionGadget definition talk 2303
Not installed
90 ThreadThread talk 91
92 SummarySummary talk 93
108 Book 109
442 CourseCourse talk 443
444 InstitutionInstitution talk 445
446 Education Program 447
2600 Topic 2601
Virtual namespaces
-1 Special
-2 Media
Current list (API call)

Lua is a programming language that is available via the Scribunto MediaWiki extension on the English Wikipedia. Since February 2013, Lua code can be embedded into wiki templates by employing the "{{#invoke:}}" functionality of Scribunto. This extension supports Lua 5.1 as of October 2022.

The Lua source code is stored in pages called modules (e.g., Module:Example). These individual modules are then invoked (by code {{#invoke:<Module name>|<Function name>|(optional) param1 | param2...}}). Example:

Wikitext Result
{{#invoke:Example|hello}} Hello World!

Share this article:

This article uses material from the Wikipedia article Wikipedia:Lua, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.