Difference between revisions of "WikiDebug"
From TestWiki
(Added {{ExtensionCheck}}) |
m (Better link text, to show type of item) |
||
Line 4: | Line 4: | ||
<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/|<describe_table>]]''' - Displays information about the specified database table. |
− | * '''[[/show_source/]]''' - Outputs the contents of the specified file. | + | * '''[[/show_source/|<show_source>]]''' - Outputs the contents of the specified file. |
− | * '''[[/show_version/]]''' - Displays the Subversion revision number of the specified file. | + | * '''[[/show_version/|<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. | + | * '''[[/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" /> |
Revision as of 22:29, 19 October 2011
This extension is currently installed on this wiki. Feel free to experiment with it!
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.