[15:40:20] I am looking for an API that would take as input some wikicode and return the HTML it would generate on enwiki [15:41:43] (the wikicode I would like to submit would include citation templates, so the API would need to run the underlying Lua code to generate the HTML output) [15:50:32] pintoch, you can do that with api.php [15:50:35] I'll get you a demo [15:51:26] ❤ [15:51:50] pintoch, looking at https://en.wikipedia.org/w/api.php?action=help&modules=parse and working on demo [15:52:44] halfak: thank you very much! [15:52:51] https://en.wikipedia.org/w/api.php?action=parse&text={{citation%20needed}}&prop=text [15:53:08] Note how the template is parsed. It should work the same when calling a Lua module [15:53:46] You can force the parser to assume a specific page title like this: https://en.wikipedia.org/w/api.php?action=parse&text={{citation%20needed}}&prop=text&title=Biology [15:54:04] That's useful in case a magic word (like {{PAGENAME}}) is used. [16:28:03] that works like a charm :-) [20:38:45] halfak: I use that API method to implement wikitext parsing in Wikipedia Requests :D [20:42:00] hare, what's Wikipedia Requests? [20:42:10] https://wpx.wmflabs.org/requests/en [20:42:28] Interesting. [20:42:36] Looks like this could replace cleanup templates [20:42:39] is that the idea? [20:42:43] Not quite [20:42:46] It replaces Flow ;) [20:42:58] Flow!?