From mediawiki.org
MediaWiki extensions manual
Release status: unmaintained
Implementation Special page
Description View the raw wikitext of a page by a special page
Author(s) Nathan Larson (Leucostictetalk)
Latest version 1.0.0 (2014-03-10)
MediaWiki 1.23+
License GNU General Public License 3.0 or later

The ViewWikitext extension lets you view the raw wikitext of a page by a special page. This could be useful if, for instance, you wanted to have the Internet Archiver archive all the wikitext on your wiki. This extension goes well with Extension:OneColumnAllPages.


  • Download and place the file(s) in a directory called ViewWikitext in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/ViewWikitext/ViewWikitext.php";
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Special:ViewWikitext/page_name will give you the wikitext for page_name.

Adding to the sidebar[edit]

  • Go to MediaWiki:Sidebar on your wiki. Under * navigation, add ** viewwikitext-url|viewwikitext.

Now when people view your wiki pages at the Internet Archive, they'll have a link they can click on to see the wikitext.