enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. 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 ...

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

  4. Wikipedia : Guide to Scribbling/Programmers' Quick start ...

    en.wikipedia.org/wiki/Wikipedia:Guide_to...

    Almost everything is a table. If it isn't a table, it's a string, a number, a boolean, a function, or a nil. Libraries are tables. string.gmatch is the "gmatch" entry in the table named by the global variable string. Arguments that you receive from MediaWiki are tables. But they're a bit special. Arrays are tables that follow a specific convention.

  5. Module:CountryData/sandbox - Wikipedia

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

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

  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:CountryData/doc - Wikipedia

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

    Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate

  8. Module:Dump - Wikipedia

    en.wikipedia.org/wiki/Module:Dump

    -- The iterator returns key, repr where key is the actual key, and-- repr is its representation: a number for the ipairs keys, or-- a string, including for number keys above the table length. if type (var) ~= 'table' then return function return nil end end local nums = {} local results = Collection. new for i, _ in ipairs (var) do nums [i ...

  9. Module:Val/units/doc - Wikipedia

    en.wikipedia.org/wiki/Module:Val/units/doc

    To override entries at Convert, make an entry here. If you're not in a hurry, you may notice when editing Val/units that it consists of two Lua string assignments, and Lua comments. Be careful. Questions or requests related to Val units are welcomed at Template talk:Val. For feedback specifically about the terminology or procedural steps seen ...