Extension:baselinker
From Testiwiki
This extension creates SQL-queries to The Result Database. Queries are actually passed as URL-parameter.
Contents
Installation
- Download extension file from here
- Place file into extension directory of your wiki
- Add this into your localsetting.php:
require_once ( "$IP/extensions/rdblinker.php" );
Usage
Basic
SQL-query is placed between <sql-query> and </sql-query> -tags
Example:
<sql-query> select * from Variable </sql-query>
Generates: <sql-query>select * from Variable</sql-query>
Note that you can have line breaks etc. in your query. Character count is limited to 255.
Advanced
Extension has 2 additional parameters:
- name
- Name parameter defines the name of the query link. Default is "Run query".
- display
- Display defines whether the SQL-query is displayed on the wiki page or not. Set this to "1" if you want your query to be displayed as pre-formatted wiki-text