Help:Extension/Persistency

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 14: Line 14:
  
 
== Requirements ==
 
== Requirements ==
[[Doc:Extension/HTMLForm|HTMLForm]]
+
* [[Doc:Extension/HTMLForm|HTMLForm]]
  
 
== Download ==
 
== Download ==

Revision as of 15:41, 30 August 2010

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.3
MediaWiki1.11.1
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

Download

versionsourcemd5
0.3(March 5,2010)Persistency.phps
adba9c4b3b5e530e7d1b80e4cc78217b
0.2(December 4,2008)Persistency-0.2.phps
7710adada75055803559dc5cd01b1e82

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
    $egTmpPath = "path to tmp directory"; ( default: "/tmp" )
    $wgExtraNamespaces = array( ...
       xxx => "Persist", xxx+1 => "Persist_Talk",
       ...
    );
    $egPhpBin is required. Use 100 or larger numbers for xxx.
  4. $egTmpPath is a temporary place to save import xml file.

Function

  1. persistency

ChangeLog

0.3

  • recursiveオプションを追加しました。

0.2

  • __UPDATE_ALL_PERSISTENCIES__と書いて保存することにより、対象ページをjobテーブルに保存し、ページの作成/更新を行います。
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox