Difference between revisions of "Extension:baselinker"
From Testiwiki
Juha Villman (talk | contribs) (→Installation) |
Juha Villman (talk | contribs) (→Installation) |
||
Line 3: | Line 3: | ||
== Installation == | == Installation == | ||
− | # Download extension file from [[ | + | # Download extension file from [[Image:rdblinker.zip|here]] |
# Place file into extension directory of your wiki | # Place file into extension directory of your wiki | ||
# Add this into your localsetting.php: <pre>require_once ( "$IP/extensions/rdblinker.php" );</pre> | # Add this into your localsetting.php: <pre>require_once ( "$IP/extensions/rdblinker.php" );</pre> |
Revision as of 08:06, 12 November 2008
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