Difference between revisions of "WikiDebug"

From TestWiki
Jump to: navigation, search
m (Fix link)
(Updated to reflect new name.)
 
(5 intermediate revisions by the same user not shown)
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, or when making them available to others.  I periodically add tools as I find a need, and may consider requests from other people if I find them interesting or useful enough.
  
 
<div style="border: 1px solid #CCCCCC; padding: 0.2em 0.5em 0.5em 0.5em; margin: 1em; float: left;">
 
<div style="border: 1px solid #CCCCCC; padding: 0.2em 0.5em 0.5em 0.5em; margin: 1em; float: left;">
* '''[[/describe_table/]]''' - Displays information about the specified database table.
+
* '''[[/describe_table|&lt;describe_table&gt;]]''' - allows you to output the structure of a DB table on a wiki page.  
* '''[[/show_source/]]''' - Outputs the contents of the specified file.
+
* '''[[/show_source|&lt;show_source&gt;]]''' - displays the contents of a named file on a wiki page.
* '''[[/show_version/]]''' - Displays the Subversion revision number of the specified file.
+
* '''[[/show_revision|&lt;show_revision&gt;]]''' - displays the Subversion revision number of the specified file.
 +
* '''[[/IfExtensionPresent|<nowiki>{{#IfExtensionPresent: ...}}</nowiki>]]''' - Parser hook so you can alter page content depending on whether an extension is installed on the wiki.
 
</div>
 
</div>
 
<br clear="both" />
 
<br clear="both" />
  
'''Current version: <show_version file="WikiDebug.php" />'''<br>
+
'''Current version: <show_revision file="WikiDebug.php" />'''<br>
 
The source is available under [[/show_source#Example 1: WikiDebug.php|example 1 of the show_source page]].
 
The source is available under [[/show_source#Example 1: WikiDebug.php|example 1 of the show_source page]].

Latest revision as of 00:56, 8 February 2016

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, or when making them available to others. I periodically add tools as I find a need, and may consider requests from other people if I find them interesting or useful enough.

  • <describe_table> - allows you to output the structure of a DB table on a wiki page.
  • <show_source> - displays the contents of a named file on a wiki page.
  • <show_revision> - 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.