dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

No way to dump templates? #171

Closed ipkpjersi closed 1 year ago

ipkpjersi commented 1 year ago

Hi,

I have a script that I used to dump every page of a wiki to xml:

It works perfectly, however, there doesn't seem to be an option in wikijs for dumping templates - which leaves pages looking quite broken after importing all of the pages (from import_xml.py on https://www.mediawiki.org/wiki/API:Import):

versus the wiki I dumped it from:

Am I mistaken or is this functionality just not supported in wikijs?

Also, maybe off-topic but do you know how would I import templates - is it the same as importing pages?

Thanks.

dijs commented 1 year ago

It was not supported. I just added it.

https://dijs.github.io/wiki/Wiki.html#exportXml

As far as the "look" not matching. I imagine that there are other custom styles/plugins that other MediaWiki is using which are completely outside of the page data. I hope that helps.