Search results
Results from the WOW.Com Content Network
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'.
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.
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 ...
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
If this template is wrapped with the {{nowrap}} template, or is wrapped with a parent HTML object with {{{1}}} defined, the output will not be broken into lines; it will appear as one continuous space-separated string of text. Note that no space-replacement is performed; non-breaking spaces and similar are respected, and reproduced in the output.
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Pages for logged out editors learn more
For example, a search of a 40,000-character article text, for 99 separate words (passed as 99 parameters in a template), ran within one second of Lua CPU clock time. That total time involved the pinpointing of the locations of each of those 99 words in the long text, as scattered across the text.
In lists of links such as inside infoboxes and navboxes, use a horizontal list (perhaps via the template {}) to format lists. For occasional cases where you need to delineate two pieces of text outside of a list, you can use the templates {{·}} or {{•}} which contain a before the dot, thus handling some of the wrapping problems.