enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Module:TableTools - Wikipedia

    en.wikipedia.org/wiki/Module:TableTools

    The-- compress option compresses the table so that it can be iterated over with-- ipairs.-----function p. numData (t, compress) checkType ('numData', 1, t, 'table') checkType ('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs (t) do local prefix, num = mw. ustring. match (tostring (k), '^([^0-9]*)([1-9][0-9]*)$') if num ...

  3. Module:Lua call - Wikipedia

    en.wikipedia.org/wiki/Module:Lua_call

    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.

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

  5. Module:TableTools/sandbox - Wikipedia

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

    The-- compress option compresses the table so that it can be iterated over with-- ipairs.-----function p. numData (t, compress) checkType ('numData', 1, t, 'table') checkType ('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs (t) do local prefix, num = mw. ustring. match (tostring (k), '^([^0-9]*)([1-9][0-9]*)$') if num ...

  6. Module:Arguments with aliases - Wikipedia

    en.wikipedia.org/wiki/Module:Arguments_with_aliases

    Also, we keep a record-- in the metatable of when pairs and ipairs have been called, so we do not-- run pairs and ipairs on the argument tables more than once. We also do -- not run ipairs on fargs and pargs if pairs has already been run, as all -- the arguments will already have been copied over. --]] metatable . __index = function ( t , key ...

  7. Module:Arguments - Wikipedia

    en.wikipedia.org/wiki/Module:Arguments

    Also, we keep a record-- in the metatable of when pairs and ipairs have been called, so we do not-- run pairs and ipairs on the argument tables more than once. We also do -- not run ipairs on fargs and pargs if pairs has already been run, as all -- the arguments will already have been copied over. --]] metatable . __index = function ( t , key ...

  8. Module talk:Arguments - Wikipedia

    en.wikipedia.org/wiki/Module_talk:Arguments

    Mr. Stradivarius: I discovered that calling ipairs() on args and then breaking out of the loop early will unnecessarily result in all of the numeric arguments being expanded, instead of just the ones that were iterated over. I added a test case for this and implemented a fix in the sandbox.

  9. Module:Portal - Wikipedia

    en.wikipedia.org/wiki/Module:Portal

    The behaviour of ipairs is undefined if nil values are present, so we need to make sure they are all removed. args = type (args) == 'table' and args or {} local portals = {} local namedArgs = {} for k, v in pairs (args) do if type (k) == 'number' and type (v) == 'string' then-- Make sure we have no non-string portal names. table.insert (portals ...