enow.com Web Search

Search results

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

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

    The first parameter is the frame of the invoking module; the second is the country or other entity to get the data of. The optional third parameter is a table of parameters to pass into the data template; this may, for example, include |age= or |mw=, which are used in the values of some sports alias parameters. E.g.,

  3. Module:CountryData - Wikipedia

    en.wikipedia.org/wiki/Module:CountryData

    This Lua module is used on approximately 421,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox .

  4. Module:TableTools - Wikipedia

    en.wikipedia.org/wiki/Module:TableTools

    Takes a table t and returns an array containing the numbers of keys with the optional prefix prefix and the optional suffix suffix. For example, for the table {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix 'a', affixNums will return {1, 3, 6}. All characters in prefix and suffix are interpreted literally.

  5. Module:CountryData/sandbox - Wikipedia

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

    This Lua module is used on approximately 421,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox .

  6. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    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.

  7. Wikipedia talk:Lua/Archive 10 - Wikipedia

    en.wikipedia.org/wiki/Wikipedia_talk:Lua/Archive_10

    this makes perfect sense if you want to extend the way a template can "query" the table. however, to extract data from commons table when you write a module (unlike "template"), the simplest way is to get it directly, and process it using your own code - you can start by copying one of the functions in that module, and change it so it will do ...

  8. Help:Lua debugging - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_debugging

    This help-page, Help:Lua debugging, explains issues of writing Lua script and debugging the source code, to remove errors or improve performance. Because Lua is a "semi-compiled" interpreted language, it does not prescreen for all common syntax errors, nor detect misspelled variables, which are only found at runtime when seeing the " Script ...

  9. 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.