Extension:ViewWikitext

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
ViewWikitext
Release status: stable
ViewWikitext.png
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 GPL
Download
Translate the ViewWikitext extension if it is available at translatewiki.net
Check usage and version matrix.

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.

Installation[edit]

  • 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:
    require_once "$IP/extensions/ViewWikitext/ViewWikitext.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

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.