Search results
Results from the WOW.Com Content Network
shortcuts is an array of shortcut page names. (required) options is a table of options. The following keys are supported: msg - a message to leave after the list of shortcuts. category - if set to false (or a value regarded as false by Module:Yesno, such as "no"), categories are suppressed. frame is a frame object. This is optional, and only ...
A template to create links to Lua modules or built-in Lua libraries, displaying the text "require('<name>')". Template parameters [Edit template data] This template prefers inline formatting of parameters. Parameter Description Type Status Module 1 Either the full title of a module ("Module:String") or the name of a built-in module ("strict"). String required See also {{ ml }} - Similar ...
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
A table is a sequence, optionally supplemented by named keys: digit["two"]="2". Several table functions like table.concat will only work with the numbered values and ignore named keys. The metatable offers a large, optional set of methods for altering table behavior. For example, you can define a table to be callable like a function.
Save and unzip tinyweb.zip for example into c:\Program Files\Tinyweb, create a shortcut to tiny.exe, and add an argument in shortcut properties — path to your folder with wikipediatest.js and any file index.html (required). Start TinyWeb with this shortcut; unload it with Task Manager.
The NewPP parser hits the huge delays when passing 6,000 parameters whether to Lua, or to a template, or to a #switch parser function of 6,000 "|x=" branches. See expanded description and time-delay formula at: "WT:Lua#Passing 1,000 parameters exponentially slower". More later. -Wikid77 12:32, 24 March 2013 (UTC)
This is straightforward to implement as the frame:getParent().args table in Lua, which is accessed from the module, can directly read the arguments passed to the wrapper template. The template can then be as simple as {{#invoke:If empty|main}} (although there is slightly more code to make it substable and add documentation).
Scribunto Lua reference manual; Programming in Lua; Introduction to Lua patterns; About regex. Lua "patterns" are based on Regex (Patterns are a reduced set of regex). Help:Lua metamodules: Lua in Wikipedia has several meta-modules available that can make core functions easily available.