Open main menu

Changes

214 bytes added ,  12:55, 25 February 2015
no edit summary
This extension was built on MediaWiki version 1.25alpha. It may not be compatible with earlier releases since there are a number of external libraries such as [https://www.mediawiki.org/wiki/JQuery jQuery] which have changed over time. Contact Us if you have version compatibility issues.
Since parsing the DOM is problematic when using PHP's native DOM manipulation (which is itself based on libxml), we use the [http://querypath.org/ QueryPath project] to provide a more flexible parsing platform. The best tutorial on QueryPath is this [http://www.ibm.com/developerworks/opensource/library/os-php-querypath/index.html IBM DeveloperWorks article] The most recent list of documentation for QueryPath is at this bug: https://github.com/technosophos/querypath/issues/151 The API docs contain a [http://api.querypath.org/docs/_c_s_s_reference.html CSS selector reference]
Html2Wiki can import entire document sets and maintain a hierarchy of those documents. The [http://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages $wgNamespacesWithSubpages] variable will allow you to create a hierarchy in your wiki's 'main' namespace; and even automatically create navigation links to parent article content. Taking this further, the [https://www.mediawiki.org/wiki/Extension:SubPageList SubPageList ] extension creates navigation blocks for subpages.
== Error handling ==
# submitting the form with no file <span style="color:red;">There was an error handling the file upload: No file sent.</span># choosing a file that is too big (: limit is set to 100 MB, so far haven't tested)# choosing a file of the wrong type <span style="color:red;">There was an error handling the file upload: Invalid file format.</span># choosing a file that has completely broken HTML: You could end up with no wiki markup, but it tries hard to be generous.
4,558

edits