Help:Extension/Persistency

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|author=K, Suwa
 
|author=K, Suwa
 
|version=0.1
 
|version=0.1
|mediawiki=1.11.1
+
|mediawiki=1.11 only
 
}}
 
}}
  
Line 14: Line 14:
  
 
== Requirements ==
 
== Requirements ==
 +
Unix/Linux OS<br>
 
[[Doc:Extension/HTMLForm|HTMLForm]]
 
[[Doc:Extension/HTMLForm|HTMLForm]]
  
 
== Download ==
 
== Download ==
 
<table border="1" cellpadding="3" cellspacing="1">
 
<table border="1" cellpadding="3" cellspacing="1">
  <tr><td>version</td><td>source</td><td>size</td></tr>
+
  <tr><td>version</td><td>source</td><td>md5</td></tr>
  <tr><td>0.1(September 11,2008)</td><td>Persistency.phps</td><td></td></tr>
+
  <tr><td>0.1(September 29,2008)</td><td>{{#ifexistfile:/data/src/Persistency/Persistency.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">1f8ab157e335404b1e3edd6e3cc76170</pre></td></tr>
 
</table>
 
</table>
  
Line 28: Line 29:
 
  <li>Insert the follow lines to LocalSettings.php
 
  <li>Insert the follow lines to LocalSettings.php
 
   <pre>require_once( "$IP/extensions/Persistency.php" );
 
   <pre>require_once( "$IP/extensions/Persistency.php" );
$egPhpBin = "path to php binary";
+
$egPhpBin = "path to php binary"; // ex. /usr/bin/php
 
$wgExtraNamespaces = array( ...
 
$wgExtraNamespaces = array( ...
 
   xxx => "Persist", xxx+1 => "Persist_Talk",
 
   xxx => "Persist", xxx+1 => "Persist_Talk",

Revision as of 16:47, 29 September 2008

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki1.11 only
License
Hooks used
Token type

Contents


Persistency is achieved by Persist link and Persist namespace. This function is allowed only for logged-in users. See also Volatile.

Persist link 
[[Persist:name|template|params|name]] specifies a page title in Persist namespace, a template, and its parameters. In the specified page, the template is expanded with the parameters and its wiki code is saved as the page contents (without cash).
Persist namespace 
There is no need to create pages. When a specified page title exists, the contents will be overwritten.

Requirements

Unix/Linux OS
HTMLForm

Download

versionsourcemd5
0.1(September 29,2008)Persistency.phps
1f8ab157e335404b1e3edd6e3cc76170

Installtion

  1. Download the source code and rename it to Persistency.php.
  2. Place it in the extensions/ directory.
  3. Insert the follow lines to LocalSettings.php
    require_once( "$IP/extensions/Persistency.php" );
    $egPhpBin = "path to php binary"; // ex. /usr/bin/php
    $wgExtraNamespaces = array( ...
       xxx => "Persist", xxx+1 => "Persist_Talk",
       ...
    );
    $egPhpBin is required. Use 100 or larger numbers for xxx.

Function

  1. persistency
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox