enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Module:Yesno/doc - Wikipedia

    en.wikipedia.org/wiki/Module:Yesno/doc

    It also returns nil values as nil, to allow for distinctions between nil and false. The module also accepts other Lua structures as input, i.e. booleans, numbers, tables, and functions. If it is passed input that it does not recognise as boolean or nil, it is possible to specify a default value to return.

  3. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    Often "global" is mentioned in these errors because you didn't have a local statement for the nil variable. string expected, got function. Some important things like mw.ustring.gmatch actually return functions, not strings - see Functions below. no such module. You #invoked a module that didn't exist — or wrote #invoke:Module:x instead of # ...

  4. Module:Text - Wikipedia

    en.wikipedia.org/wiki/Module:Text

    All methods have an unnamed parameter containing the text. The return value is an empty string if the parameter does not meet the conditions. When the condition is matched or some result is successfully found, strings of at least one character are returned.

  5. Help:Manipulating strings - Wikipedia

    en.wikipedia.org/wiki/Help:Manipulating_strings

    Regular expressions (or regex) are a common and very versatile programming technique for manipulating strings. On Wikipedia you can use a limited version of regex called a Lua pattern to select and modify bits of text from a string. The pattern is a piece of code describing what you are looking for in the string.

  6. Module:LuaCall - Wikipedia

    en.wikipedia.org/wiki/Module:LuaCall

    reserved_debug - nonzero value forces display of a not particularly useful debug text; The functioncall is written as some.function.name(a,b,c) where some.function.name means something in the Extension:Scribunto/Lua reference manual and a,b,c are the arbitrary variable names you've chosen.

  7. Lua (programming language) - Wikipedia

    en.wikipedia.org/wiki/Lua_(programming_language)

    Marshalling data between C and Lua functions is also done using the stack. To call a Lua function, arguments are pushed onto the stack, and then the lua_call is used to call the actual function. When writing a C function to be directly called from Lua, the arguments are read from the stack. Here is an example of calling a Lua function from C:

  8. Wikipedia:Lua string functions - Wikipedia

    en.wikipedia.org/wiki/Wikipedia:Lua_string_functions

    The string-search functions in Lua script can run extremely fast, comparing millions of characters per second. 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.

  9. Module:Arguments - Wikipedia

    en.wikipedia.org/wiki/Module:Arguments

    Note: the above functions will fail if passed input that is not of type string or nil. This might be the case if you use the getArgs function in the main function of your module, and that function is called by another Lua module. In this case, you will need to check the type of your input.