The TTSCpedia:WikiProject Transwiki

Revision as of 19:11, 28 December 2008 by en>Roadrunner@en.wikipedia.org (→‎Useful files and templates)
Shortcut

Template:TOCleft Welcome to WikiProject Transwiki, a WikiProject for helping with the transwiki process outside of the Wikimedia family. This is done by explaining how to import and export articles, linking to help with MediaWiki software, prepping templates for use outside of Wikipedia, listing available resources (including editors willing to help), and much more.

For more information on WikiProjects, please see Wikipedia:WikiProjects and Wikipedia:WikiProject best practices.

Main goals

  1. Template "pack" - a pack of commonly used templates that is pure wikicode and ready to be imported via xml file. We'll need to identify which templates should go into this basic pack. Some templates might require converting into pure-wiki table code, or for simplification.
  2. MediaWiki "pack"- similar to the template pack, a bunch of MediaWiki namespace pages that are formatted for general and easy use for most other wikis
  3. How to export- Expanding on the export/import guide, which so far is very minimal.
  4. A general technical guide on how to adapt articles for use on another wiki
  5. Establish other resources to aid the reuse of Wikipedia content

Useful files and templates

MediaWiki files

  • /MediaWiki:Common.css - Click edit and select all text. Disregard appearance when viewed as a normal page. Should work on most installations of MediaWiki. Will import most of the css classes that Wikipedia uses (especially useful for wikitable classes). Last updated: April 17, 2008
  • /MediaWiki:Common.js - Click edit and select all text. Disregard appearance when viewed as a normal page. Same as above, but for some common java script. Also includes useful bug fixes that might not be fixed in the current version of MediaWiki. Last updated: April 17, 2008

Common.js doesn't seem to be loaded for MediaWiki 1.7.1, I got collapsable tables to work by cutting and pasting that section of code into MediaWiki:Monobook.js

Templates

These templates can normally be used as-is

Special Templates

Many wikipedia templates cannot be directly exported to other wikis because they include HTML code within a parser function that does not translate across wikis. Wikipedia has a "tidy" pass that cleans up HTML code. Without that pass, HTML code within templates get translated into quoted tags that get displayed.

To fix this problem the following template have been converted so that templates contain HTML code within a parser function but rather than uses wiki tags for table conversions.

The following templates have been converted to use pure-wiki code, which is often required for most MediaWiki wikis, which do not have the tidy extension configured in the same way as wikipedia

The TTSCpedia:WikiProject Transwiki/exporting

See also