个人工具

Ubuntuguide XML exports

来自Ubuntu中文

跳转至: 导航, 搜索

Introduction

Ubuntuguide, like Wikipedia and many other websites, uses MediaWiki. It is easy to export pages in XML format and then import them into another wiki.

While the XML files may also be able to be imported to other wikis such as Moin Moin and Twiki, I have not tried it. (I have edited recent versions of Ubuntuguide to be as consistent as possible with both MediaWiki and Moin Moin formatting, but there are subtle differences between the two so that I cannot guarantee compatibility with Moin Moin).

Export Ubuntuguide wiki pages into an XML file

  • Examine the list of wiki pages available at Ubuntuguide:
Ubuntuguide.org -> Toolbox: Special Pages -> Lists of pages: All pages

Many of these pages will not be necessary for your private copy. Copy only the names of the wiki pages files you wish to export. The recommended list is below.

  • Export the desired pages from Ubuntuguide as an XML export:
Ubuntuguide.org wiki -> Toolbox: Special Pages -> Page tools: Export pages

(Note: This list of (English-language) wiki pages was accurate for the recent Lucid version. You may want to check all pages to see if something you want is missing from this list.)

模板:Ubuntuguide Lucid wikipages

-> Include only the current revision, not the full history (ticked) -> Offer to save as a file: (ticked) -> Export -> Save file
-> Ubuntuguide-xxxxx.xml
Here is a list of the primary wiki pages for several different editions of Ubuntuguide.

Import the Ubuntuguide XML into a local wiki

  • Import the Ubuntuguide XML export file into the local wiki:
Local wiki -> log in -> Username: wikiadmin -> Password: wikiadminpassword -> Log in
-> Special Pages -> Page Tools -> Import pages -> Browse -> Ubuntuguide-xxxxx.xml -> Open -> Upload file
  • Edit the Main Page of the wiki and add a link to the online Ubuntuguide as well as the imported copy:
*[[Ubuntu:Lucid|Ubuntuguide Lucid (local copy for editing)]]
*[http://ubuntuguide.org/wiki/Ubuntu:Lucid Ubuntuguide Lucid (online)]

The idea is to edit the locally stored Ubuntuguide as you customize your system. It can also serve as a template and an example of how to use the MediaWiki wiki.

  • Edit the local copy of Ubuntuguide to hide irrelevant links. In MediaWiki, use the <!---> and <---> tags to comment out instructions or text that should not be displayed. Example:
Ubuntuguide Lucid (local copy for editing) -> edit ->
 <!--->{{LucidLynxLanguageBar|languages=Languages:|InProgress=In progress:}}<--->

Can I do this?

Sure. Knock yourself out. This site is licensed under the Free Documentation License, so you can take whatever you want, except for the name (which is and has been reserved to this site for many years). Improve the site, if you can. Add pictures, videos, or whatever.

If your wiki is (or will be) accessible publicly or from the Internet, just be sure to name the site something other than Ubuntuguide or Ubuntu Guide (or anything indistinguishable). Those are legally protected names specific to this site (and trademarks are not open under the FDL).