Difference between revisions of "WikiDebug"

From TestWiki
Jump to: navigation, search
(+ new parser function)
(Added {{ExtensionCheck}})
Line 1: Line 1:
 +
{{ExtensionCheck|WikiDebug}}
 
{{On MediaWiki.org|WikiDebug}}
 
{{On MediaWiki.org|WikiDebug}}
 
This extension contains a small set of tools that I find useful when debugging my extensions:
 
This extension contains a small set of tools that I find useful when debugging my extensions:

Revision as of 19:50, 18 October 2011

This extension is currently installed on this wiki. Feel free to experiment with it!
MediaWiki logo.png
This extension is also documented at
Extension:WikiDebug
on MediaWiki.org.

If the pages are not in sync. then this version on my test wiki is always the most up-to-date.

This extension contains a small set of tools that I find useful when debugging my extensions:

  • describe_table - Displays information about the specified database table.
  • show_source - Outputs the contents of the specified file.
  • show_version - Displays the Subversion revision number of the specified file.
  • IfExtensionPresent - Parser hook so you can alter page content depending on whether an extension is installed on the wiki.


Current version: (rev 2439)
The source is available under example 1 of the show_source page.