Extension:XML2Wiki
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintained |
|
---|---|
Implementation | Tag , Ajax, Special page |
Description | Allows to import xml inside an article. |
Author(s) | Alejandro Darío Simi (Daemonracotalk) |
Latest version | 0.3 (2010-09-04) |
MediaWiki | 1.15+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | GitHub: Note: |
Example | DAEMonRaco's Wiki |
|
|
The XML2Wiki extension allows a user import a XML file inside an article from a path of the server, or from an uploaded file.
UsageEdit
Using XML2Wiki is quite simple: for example, if you uploaded a xml file called something.xml to your wiki you can show it by adding this code to an article:
<xml2wiki>
file = File:Something.xml
</xml2wiki>
OptionsEdit
Option | Description |
---|---|
class | This option specifies one or more CSS classes to be used. This option is related to style table. |
debug | This option enables debug information[1]. Available values are:
|
editable | This option enables dynamic edition for style table[2]. Available values are:
|
file | It's the XML file to be opened, it could be a internal file (this means something like File:somefile.xml) or a full path (it must be an allowed path). |
showattrs | Allows to show attributes for style list. Available values are:
|
style | This selects an style to be applied to the XML. This option supports this values:
|
translator | This is the XML file containing tags translations (it must be an allowed path). |
InstallationEdit
- Download and place the file(s) in a directory called
XML2Wiki
in yourextensions/
folder. - Add the following code at the bottom of your
LocalSettings.php
:require_once "$IP/extensions/XML2Wiki/XML2Wiki.php";
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
ConfigurationEdit
- $wgXML2WikiAllowedPaths
- Array of allowed paths. Example
$wgXML2WikiAllowedPaths = [
'/home/common/xmlfiles/'
];
See alsoEdit
- Official Site: http://wiki.daemonraco.com/wiki/Xml2wiki-dr
ReferencesEdit
- ↑ Since version 0.3
- ↑ Since version 0.3
- ↑ For SyntaxHighlight Extension visit MediaWiki.org
This extension was migrated from Google code and checked into a GitHub software repository. |