Diferencia entre revisiones de «Módulo:If empty»

86 bytes añadidos ,  27 ene 2019
Página creada con «local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Plantilla:If empty', removeBlanks = false}) -- Por razones de c…»
wikitves>Jackmcbarn
(actually, only the first 8 need this check)
 
wikitves>Franar8
(Página creada con «local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Plantilla:If empty', removeBlanks = false}) -- Por razones de c…»)
Línea 2: Línea 2:


function p.main(frame)
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Plantilla:If empty', removeBlanks = false})


-- For backwards compatibility reasons, the first 8 parameters can be unset instead of being blank,
-- Por razones de compatibilidad con versiones anteriores, los primeros 8 parámetros se pueden desactivar en lugar de estar en blanco,
-- even though there's really no legitimate use case for this. At some point, this will be removed.
-- aunque realmente no hay un caso de uso legítimo para esto. En algún momento, esto será eliminado.
local lowestNil = math.huge
local lowestNil = math.huge
for i = 8,1,-1 do
for i = 8,1,-1 do
Línea 17: Línea 17:
if v ~= '' then
if v ~= '' then
if lowestNil < k then
if lowestNil < k then
-- If any uses of this template depend on the behavior above, add them to a tracking category.
-- Si algún uso de esta plantilla depende del comportamiento anterior, agréguelos a una categoría de seguimiento.
-- This is a rather fragile, convoluted, hacky way to do it, but it ensures that this module's output won't be modified
-- Esta es una forma bastante frágil y complicada de hacerlo, pero garantiza que la salida de este módulo no se modificará
-- by it.
-- por esto.
frame:extensionTag('ref', '[[Category:Instances of Template:If_empty missing arguments]]', {group = 'TrackingCategory'})
frame:extensionTag('ref', '[[Categoría:Wikipedia:Instancias de Plantilla:If_empty faltan argumentos]]', {group = 'TrackingCategory'})
frame:extensionTag('references', '', {group = 'TrackingCategory'})
frame:extensionTag('references', '', {group = 'TrackingCategory'})
end
end
Usuario anónimo
MediaWiki spam blocked by CleanTalk.