[05:52:19] how do I get action=parse to parse "~~~~" instead of displaying it as is? [05:52:49] svetlana: pst [16:14:17] I have a newbie Lua q [16:15:41] please [16:16:21] This module returns a script error https://test2.wikipedia.org/wiki/Module:Sandbox/Sphilbrick/UNDtest [16:16:41] despiet the fact that it works fine in http://www.lua.org/cgi-bin/demo [16:17:16] I invoke it here: https://test2.wikipedia.org/wiki/User:Sphilbrick/sandbox [16:18:57] Phil___: click on the error message to see more details [16:19:14] "Script error: You must specify a function to call." [16:19:44] Ok, doesn't tell me what to do [16:19:49] "{{#invoke:Sandbox/Sphilbrick/UNDtest}}" [16:20:05] #invoke takes a second parameter, which is, well, the name o the functionto call :) [16:20:16] of the function to call* [16:20:43] this also probably means that your module has to define functions, not just "constants" [16:20:47] oh I had some parameters but I removeed them. [16:20:59] Ok, I'll try again [16:24:22] fixed [16:24:33] Phil___, [16:24:56] oh ffs, edit conflict :) [16:24:58] i had this: [16:24:59] local p = {} [16:24:59] [16:24:59] function p.hello() [16:24:59] ResponseTable = {} [16:24:59] ResponseTable["U"]= "Done" [16:25:00] ResponseTable["D"]= "Not Done" [16:25:03] res = ResponseTable["D"] [16:25:05] return res [16:25:07] end [16:25:09] [16:25:11] return p [16:25:20] it did return 'not done' this way [16:29:00] I tried copying your code, but still not fixed? [16:30:06] OK, got it, thanks [16:30:26] BTW, one of my favorite people is named svetlana [16:50:44] !paste | svetlana [16:50:49] Ugh [17:23:14] marktraceur, hi, thanks. i usually use dpaste.com. [17:29:04] And yet :) [17:32:04] I am trying to get hold of a database of wikipedia page abstracts. But the usual enwiki-latest-abstract.xml only contains the abstract text and not the wiki links. How can I get the abstracts with the links or markup? [17:33:28] david0288, are you saying that the latest dump doesn't contain something the previous ones did? [17:38:46] Krenair, no they all contain just the abstract text and always have. But what I need is a database of wikipedia abstracts with their wiki links. For example the abstract that says "This article is about [[NASA|NASA's]]" instead of just "This article is about NASA's.." [17:39:31] Hm. That sounds hard. [17:40:00] I guess if you sent the wikitext through the parser, then took the HTML and got the plain text from that... [17:40:58] Krenair, I dont want the plain text this is the problem. I want the version with the links. [17:41:22] enwiki-latest-abstract.xml has only the plain text. But it is the links I am interested in.