enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    The module itself must return a Lua table of values. A Lua table is expressed as a list of values separated by commas, within curly braces. When the module is called by #invoke, the function it names (the first argument after |) is looked for in that table. That function, in turn, is expected to return something that can be represented as a string.

  3. Module:TableTools - Wikipedia

    en.wikipedia.org/wiki/Module:TableTools

    It will also work on arrays,-- but for arrays it is more efficient to use the # operator.-----function p. size (t) checkType ('size', 1, t, 'table') local i = 0 for _ in pairs (t) do i = i + 1 end return i end local function defaultKeySort (item1, item2)-- "number" < "string", so numbers will be sorted before strings. local type1, type2 = type ...

  4. Module:TableTools/sandbox - Wikipedia

    en.wikipedia.org/wiki/Module:TableTools/sandbox

    Returns a clone of a table. The value returned is a new table, but all subtables and functions are shared. Metamethods are respected, but the returned table will have no metatable of its own.

  5. Lua (programming language) - Wikipedia

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

    The C API also provides some special tables, located at various "pseudo-indices" in the Lua stack. At LUA_GLOBALSINDEX prior to Lua 5.2 [21] is the globals table, _G from within Lua, which is the main namespace. There is also a registry located at LUA_REGISTRYINDEX where C programs can store Lua values for later retrieval.

  6. Wikipedia : Guide to Scribbling

    en.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling

    A name in Lua is either an access of a local variable or a table lookup. [3] math.floor is a table lookup (of the string "floor") in the (global) math table, for example. Table lookups are slower, at runtime, than local variable lookups. Table lookups in tables such as the args table with its "specialness" are a lot slower.

  7. Module:Category handler - Wikipedia

    en.wikipedia.org/wiki/Module:Category_handler

    This Lua module is used in system messages, ... [# ret + 1] = nsCategory end if # ret < 1 then return nil else return table.concat (ret) end elseif self. _data ...

  8. Module:Set - Wikipedia

    en.wikipedia.org/wiki/Module:Set

    This module includes a number of set operations for Lua tables. It currently has union, intersection and complement functions for both key/value pairs and for values only. . It is a meta-module, meant to be called from other Lua modules, and should not be called directly from #invo

  9. Module:CountryData - Wikipedia

    en.wikipedia.org/wiki/Module:CountryData

    Note: This is likely not quicker than wikicode-only alternatives such as {} and {}, because it transcludes the data template from Lua and converts it to a Lua table using the above function, picks the wanted parameter name, and returns it to wikicode, whereas other templates perform two simple non-Lua transclusions to get, in most cases, the ...