Ir para o conteúdo

Contribuições do(a) usuário(a) Dr.faustobdls

Usuário com 336 edições. Conta criada em 25 de janeiro de 2025.
Navegar pelas contribuiçõesExpandirOcultar
⧼contribs-top⧽
⧼contribs-date⧽
(Mais novas | Mais antigas) Ver ( | 50 anteriores) (20 | 50 | 100 | 250 | 500)

27 de janeiro de 2025

26 de janeiro de 2025

  • 23h42min23h42min de 26 de janeiro de 2025 dif his +16 N Página Principal Criou página com 'Pagina Principal'
  • 13h48min13h48min de 26 de janeiro de 2025 dif his +745 N Módulo:Yesno Criou página com '-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki uses non-ascii characters for any of "yes", "no", etc., you -- should replace "val:lower()" with "mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val == true or val == 'yes' or val == 'y' or val =...'
  • 13h47min13h47min de 26 de janeiro de 2025 dif his +16 469 N Módulo:TableTools Criou página com '------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should not -- -- be called directly from #invoke....'
  • 13h46min13h46min de 26 de janeiro de 2025 dif his +12 721 N Módulo:Math Criou página com '--This module provides a number of basic mathematical operations. local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua. --Helper functions used to avoid redundant code. local function...'
  • 12h53min12h53min de 26 de janeiro de 2025 dif his +108 873 N Módulo:Game Criou página com 'local game = {} -- In-game units of measure game.units = { seconds = { full = 'Seconds', long_upper = 'Seconds', long_lower = 'seconds', short_upper = 'Sec', short_lower = 'sec', long_upper_plural = 'Seconds', long_lower_plural = 'seconds', short_upper_plural = 'Sec', short_lower_plural = 'sec', long_upper_singular = 'Second', long_lower_singular = 'second', short_upper_s...'
  • 12h53min12h53min de 26 de janeiro de 2025 dif his +1 059 N Módulo:Exponential search Criou página com '-- This module provides a generic exponential search algorithm. local checkType = require('libraryUtil').checkType local function midPoint(lower, upper) return math.floor(lower + (upper - lower) / 2) end local function search(testFunc, i, lower, upper) if testFunc(i) then if i + 1 == upper then return i end lower = i if upper then i = midPoint(lower, upper) else i = i * 2 end return search(testFunc, i, lower, upper) else upper = i i = mid...'
  • 12h52min12h52min de 26 de janeiro de 2025 dif his +32 731 N Módulo:Cargo Criou página com '------------------------------------------------------------------------------- -- -- Module:Cargo -- -- Common tasks for the cargo extension are generalized into handy functions -- in this meta module. ------------------------------------------------------------------------------- local m_util = require('Module:Util') local cargo = mw.ext.cargo -- Should we use the sandbox version of our submodules? local use_sandbox = m_util.misc.maybe...'
  • 12h51min12h51min de 26 de janeiro de 2025 dif his +10 054 N Módulo:Arguments Criou página com '-- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string'...'
  • 12h49min12h49min de 26 de janeiro de 2025 dif his +307 N Módulo:No globals Criou página com 'local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil end function mt.__newindex(t, k, v) if k ~= 'arg' then error('Tried to write global ' .. tostring(k), 2) end rawset(t, k, v) end setmetatable(_G, mt)'
  • 12h47min12h47min de 26 de janeiro de 2025 dif his +7 308 N Módulo:Item link Criou página com '------------------------------------------------------------------------------- -- -- Module:Item link -- -- This module implements Template:Item link. ------------------------------------------------------------------------------- require('Module:No globals') local m_util = require('Module:Util') local m_item_util = require('Module:Item util') -- Should we use the sandbox version of our submodules? local use_sandbox = m_util.misc.maybe_sa...'
  • 12h46min12h46min de 26 de janeiro de 2025 dif his +6 477 N Módulo:Item util Criou página com '------------------------------------------------------------------------------- -- -- Module:Item util -- -- This meta module contains utility functions for modules that deal with items ------------------------------------------------------------------------------- local m_util = require('Module:Util') local m_cargo -- Lazy load require('Module:Cargo') -- Should we use the sandbox version of our submodules? local use_sandbox = m_util.misc...'
  • 12h45min12h45min de 26 de janeiro de 2025 dif his +41 889 N Módulo:Util Criou página com '------------------------------------------------------------------------------- -- -- Module:Util -- -- This meta module contains a number of utility functions ------------------------------------------------------------------------------- local getArgs -- Lazy load require('Module:Arguments').getArgs local m_cargo -- Lazy load require('Module:Cargo') -- The cfg table contains all localisable strings and configuration, to make it -- easie...'
  • 12h44min12h44min de 26 de janeiro de 2025 dif his +3 795 N Módulo:Util/config Criou página com '------------------------------------------------------------------------------- -- -- Configuration for Module:Util -- ------------------------------------------------------------------------------- local cfg = {} -- ---------------------------------------------------------------------------- -- i18n -- ---------------------------------------------------------------------------- cfg.i18n = {} -- String values that should cast to boolean false...'
(Mais novas | Mais antigas) Ver ( | 50 anteriores) (20 | 50 | 100 | 250 | 500)