enow.com Web Search

Search results

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

    en.wikipedia.org/wiki/Module:Yesno

    While Lua allows the true and false boolean values, wikicode templates can only express boolean values through strings such as "yes", "no", etc. This module processes these kinds of strings and turns them into boolean input for Lua to process. It also returns nil values as nil, to allow for distinctions between nil and false. The module also ...

  3. Module:Yesno/sandbox - Wikipedia

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

    While Lua allows the true and false boolean values, wikicode templates can only express boolean values through strings such as "yes", "no", etc. This module processes these kinds of strings and turns them into boolean input for Lua to process. It also returns nil values as nil, to allow for distinctions between nil and false. The module also ...

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

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

    Only false and nil are false. Even "" is true. Tables can have both numeric and string entries. The two don't overlap. t [1] is distinct from t ["1"]. Uninitialized variables and nonexistent fields in tables are nil. or and and both have shortcut evaluation. = is assignment, == is equality comparison. not is boolean negation, but ~= is ...

  5. Wikipedia : Guide to Scribbling

    en.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling

    nil is the same as false as far as or is concerned. Lua's or operator has what are known as "shortcut" semantics. If the left-hand operand evaluates to something that isn't false or nil , it doesn't bother even working out the value of the right-hand operand.

  6. Boolean data type - Wikipedia

    en.wikipedia.org/wiki/Boolean_data_type

    Lua has a Boolean data type, but non-Boolean values can also behave as Booleans. The non-value nil evaluates to false, whereas every other data type value evaluates to true. This includes the empty string "" and the number 0, which are very often considered false in other languages.

  7. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    Lua patterns deliberately lack the most complex regular expression constructs (to avoid bloating the Lua code base), where many other computer languages or libraries use a more complete set. Lua patterns are not even a subset of regular expressions, as there are also discrepancies, like Lua using the escape character % instead of \, , and ...

  8. Module:Hatnote - Wikipedia

    en.wikipedia.org/wiki/Module:Hatnote

    This Lua module is used in MediaWiki:Wantedpages-summary, and on approximately 1,960,000 pages, or roughly 3% of all pages. Changes to it can cause immediate changes to the Wikipedia user interface. 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 ...

  9. Module:Error - Wikipedia

    en.wikipedia.org/wiki/Module:Error

    The args are passed through to the module-- from the template page, so use the args that were passed into the template. args = frame. args else-- We're being called from another module or from the debug console, so assume-- the args are passed in directly. args = frame end-- if the message parameter is present but blank, change it to nil so ...