3 ms·
The 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 "T
by mkl 14y ago
The 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.