3 ms·
>> To get it to process templates, get a Wikipedia dump, extract the templates, and use the mwdumper tool to import them into your local MediaWiki database. Co
by alok-g 14y ago
>> To get it to process templates, get a Wikipedia dump, extract the templates, and use the mwdumper tool to import them into your local MediaWiki database.
Could you please explain this more? Specifically, what is meant by "extract" the templates? From what I gather from your message, you are proposing using MediaWiki itself to process the templates and output more of a plain text (within the HTML output).
- mkl 14y agoThe dumps of Wikipedia come as big bzip2ed XML files containing all articles, templates, etc., each in a "page" tag. The templates have titles starting with "Template:", so they are easy to detect: <page> <title>Template:Convert</title> ... </page> It's these page tags that need to be copied to a new XML file, along with the header and footer from the original. From what I gather from your message, you are proposing using MediaWiki itself to process the templates and output more of a plain text (within the HTML output). Correct. The MediaWiki parser outputs HTML containing all the text to be displayed, including that generated by templates.