I'm finally getting around to starting to port the Thunderbird KB articles. When I have enough ported and updated to be useful I'll create a thread in Thunderbird General announcing that, and also mention it in the sticky "Is Thunderbird dead and other FAQ" thread. These are notes to myself which somebody else might find useful if they do something similar.
Sample command line from powershell window:
pandoc -f html -t mediawiki "64 bit builds.html" >"64 bit builds.wiki"
Create a
https://mzlazine.miraheze.org/wiki/64_bit_builds web page and paste the contents of "64 bit builds.wiki" in it. Then
Delete the masthead div (otherwise you get MozillaZine as the first section)
Pandoc seems to create a section named after the KB article, as the first section. Delete it to avoid duplicating the title.
Delete all indexs, such as [[[index.php?title=64_bit_builds&action=edit§ion=6|edit]]]
Delete the footer div at the bottom. For example
This page was last modified 21:00, 2 June 2019. This page has been accessed 159,792 times. About MozillaZine Knowledge Base - Disclaimers
MozillaZine and the MozillaZine Logo Copyright © 1998-2019 MozillaZine. All Rights Reserved - Privacy Policy
I'm leaving many of the rest of the div and span statements alone for the moment as they don't seem to cause any harm. Long term they should be deleted to make it easier to edit the markup (less visual clutter). Our mediawiki doesn't support them but if we ever backport the articles I assume that will be after the mediawiki software is updated.
The wiki uses :Category instead of Category and doesn't add a Categories: prefix. I replaced
[[Category:Thunderbird|Thunderbird]] [[Category:SeaMonkey|SeaMonkey]] with Categories:[[:Category:Thunderbird | Thunderbird]] for example
Quotes are remapped to HTML by pandoc. "supposedly" becomes "supposedly" for example
It also remaps some words with apostrophes. For example doesn't becomes doesnΓÇÖt , which you have to manually fix.
You need to add class="wikitable" to each table to have basic styling. It used to occur by default.
Indenting a ordered list by using multiple '*' characters as described in
https://www.mediawiki.org/wiki/Help:Lists doesn't seem to work. It doesn't indent and displays multiple '*' characters with embedded spaces. Using one or more ':' characters for the indented entry instead seems the best workaround, though that omits displaying a '*'.
It seems easiest to add categories by tagging them in the wiki page, and after saving the page click on the Category link, and save it as a empty page.
In general, pandoc seems to work well. I was most worried about the mail and news settings article due to its very large size and heavy use of tables but it wasn't a problem.
I'm finally getting around to starting to port the Thunderbird KB articles. When I have enough ported and updated to be useful I'll create a thread in Thunderbird General announcing that, and also mention it in the sticky "Is Thunderbird dead and other FAQ" thread. These are notes to myself which somebody else might find useful if they do something similar.
Sample command line from powershell window:
pandoc -f html -t mediawiki "64 bit builds.html" >"64 bit builds.wiki"
Create a https://mzlazine.miraheze.org/wiki/64_bit_builds web page and paste the contents of "64 bit builds.wiki" in it. Then
Delete the masthead div (otherwise you get MozillaZine as the first section)
Pandoc seems to create a section named after the KB article, as the first section. Delete it to avoid duplicating the title.
Delete all indexs, such as [[[index.php?title=64_bit_builds&action=edit§ion=6|edit]]]
Delete the footer div at the bottom. For example
This page was last modified 21:00, 2 June 2019. This page has been accessed 159,792 times. About MozillaZine Knowledge Base - Disclaimers
MozillaZine and the MozillaZine Logo Copyright © 1998-2019 MozillaZine. All Rights Reserved - Privacy Policy
I'm leaving many of the rest of the div and span statements alone for the moment as they don't seem to cause any harm. Long term they should be deleted to make it easier to edit the markup (less visual clutter). Our mediawiki doesn't support them but if we ever backport the articles I assume that will be after the mediawiki software is updated.
The wiki uses :Category instead of Category and doesn't add a Categories: prefix. I replaced
[[Category:Thunderbird|Thunderbird]] [[Category:SeaMonkey|SeaMonkey]] with Categories:[[:Category:Thunderbird | Thunderbird]] for example
Quotes are remapped to HTML by pandoc. "supposedly" becomes "supposedly" for example
It also remaps some words with apostrophes. For example doesn't becomes doesnΓÇÖt , which you have to manually fix.
You need to add class="wikitable" to each table to have basic styling. It used to occur by default.
Indenting a ordered list by using multiple '*' characters as described in https://www.mediawiki.org/wiki/Help:Lists doesn't seem to work. It doesn't indent and displays multiple '*' characters with embedded spaces. Using one or more ':' characters for the indented entry instead seems the best workaround, though that omits displaying a '*'.
It seems easiest to add categories by tagging them in the wiki page, and after saving the page click on the Category link, and save it as a empty page.
In general, pandoc seems to work well. I was most worried about the mail and news settings article due to its very large size and heavy use of tables but it wasn't a problem.