嗨,我有一些定制的wikitext(其中也包括模板),需要转换为html。主要的问题是,我可以有任何维基百科模板和大多数解析器不做模板扩展,或需要模板下载前手。另一个复杂性是新的Lua模块(例如信息框模块使用#invoke),它破坏了一些实现。以下是我尝试过的几件事:
1. So are there any other software which can download templates(also Lua) through wiki api and parse wikitext effectively.
2. I tried using revid while getting templates to get away with Lua modules but the gwtwiki is still failing. Are there any other libraries that do wiki api download of templates and store locally. And then convert to html.
1. Are there any guides to effectively do this.
2. ALso the Lua plugin fails if I do a simple Special:Import in my wiki after I did a Special:Export of a article in wikipedia.
3. After this import, the articles and modules exist in my sql dump but they donot seem to be linked. The buildall.php scripts takes forever.
发布于 2013-06-23 22:49:51
所有可以作为MediaWiki请求执行的GET API查询也可以使用POST。
我认为您想要的API模块是action=parse。类似于:
网址:http://en.wikipedia.org/w/api.php
发布数据: action=parse&text=your文本
https://stackoverflow.com/questions/17265566
复制相似问题