Módulo Discussão:Filtros

Último comentário: 22 de abril de 2014 de Helder.wiki no tópico Erro

Erro editar

Hi. My apologies for not writing this in Portuguese, but I am an English speaker. I'm including a translation via translate.google.com below.

There is a minor error with Module:Filtros and getNumberOfFalsePositives. Several pages generate a Erro no script. For example, please refer to http://pt.wikipedia.org/wiki/Wikipedia:Filtro_de_edições/2 .

The problem occurs through the following steps

  • getNumberOfFalsePositives calls getContent for Wikipédia:Filtro_de_edições/Análise/Filtro 2
text = mw.title.new( 'Wikipédia:Filtro de edições/Análise/Filtro ' .. frame.args[1] ):getContent()
local gen, fp = string.gmatch(text, '{{Ação|%d+|?(%a*)'), 0

You can resolve this issue by including the following code

   if text == nil then -- title does not exist; content is nil; must exit now, or will fail when passing nil to string.gmatch below
       return 0
   end

You can refer to https://pt.wikipedia.org/wiki/Usu%C3%A1rio%28a%29:Gnosygnu/sandbox/M%C3%B3dulo:Filtros .

There's also a "live preview" using the extension

The error affects the following 12 pages:

Let me know if you need more information. Thanks. Gnosygnu (discussão) 23h16min de 1 de abril de 2014 (UTC)Responder


Oi. As minhas desculpas por não ter escrito isso em Português, mas eu sou um orador Inglês. Estou incluindo uma tradução via translate.google.com abaixo.

Há um pequeno erro com Módulo: Filtros e getNumberOfFalsePositives. Várias páginas gerar a Erro nenhum script . Por exemplo, consulte http://pt.wikipedia.org/wiki/Wikipedia:Filtro_de_edições/2.

O problema ocorre por meio das seguintes etapas

  • GetNumberOfFalsePositives chama getContent para Wikipédia:Filtro_de_edições/Análise/Filtro 2
text = mw.title.new( 'Wikipédia:Filtro de edições/Análise/Filtro ' .. frame.args[1] ):getContent()
local gen, fp = string.gmatch(text, '{{Ação|%d+|?(%a*)'), 0

Você pode resolver esse problema, incluindo o seguinte código

   if text == nil then -- title does not exist; content is nil; must exit now, or will fail when passing nil to string.gmatch below
       return 0
   end

Você pode se referir a https://pt.wikipedia.org/wiki/Usu%C3%A1rio%28a%29:Gnosygnu/sandbox/M%C3%B3dulo:Filtros .

Há também uma " visualização ao vivo ", utilizando o extension

O erro afeta as 12 páginas a seguir:

Deixe-me saber se você precisar de mais informações. Obrigado. Gnosygnu (discussão) 23h16min de 1 de abril de 2014 (UTC)Responder

  Feito. Helder.wiki (discussão) 14h54min de 22 de abril de 2014 (UTC)Responder
Regressar à página "Filtros".