Search results
Results from the WOW.Com Content Network
This module provides a framework for making templates which produce a template test case.While test cases can be made manually, using Lua-based templates such as the ones provided by this module has the advantage that the template arguments only need to be input once, thus reducing the effort involved in making test cases and reducing the possibility of errors in the input.
If the template has a separate documentation page (usually called "Template:template name/doc"), add [[Category:Templates based on the String Lua module]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Templates based on the String Lua module]]</noinclude>
Lua patterns are used to define, find and handle a pattern in a string. It can do the common search and replace action in a text, but it has more options that doing plain text only. For example, in one go it can change the errors 'New yorker', 'New-Yorker', and 'NewYorker' into 'New Yorker'.
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
The Lua software was initially configured with a small, 10-second timeout limit, for the combined operation of all Lua code when formatting a page. By comparison, the markup-based templates have a 60-second timeout (6x higher time limit), and when the servers are slow, the markup-based templates could format perfectly, up through 59 seconds ...
I mentioned the 8/4 input because current Lua source that happens to have tabs (because it was prepared somewhere else and was pasted into the edit window) should be using 8-column tabs (an example being Module:Convert/data), while someone writing a new module in the new CodeEditor will get 4-character column tabs if they press the Tab key. A ...
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.
This Lua module is used on approximately 10,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox . Consider discussing changes on the talk page before implementing them.