Módulo:Argumentos

De Wikinoticias, la fuente libre de noticias
[ver · editar · actualizar]
Documentación de módulo
Aún no se han escrito las instrucciones sobre este módulo. Añádelas.


local z = {}

function z.obtenerArgumentos(frame)
	if frame.args[1] then 
		return frame.args
	end
 
	return frame:getParent().args
end

function z.obtenerArgumentosConValor(frame)
    if frame == mw.getCurrentFrame() then
        argumentos = frame:getParent().args
    else
        argumentos = frame.args or frame
    end
    
    return require('Módulo:Tablas').copiarElementosConValor(argumentos)
end

return z