Help:Extension/Persistency
From Metabolomics.JP
(Difference between revisions)
Line 1: | Line 1: | ||
{{Extension | {{Extension | ||
|author=K, Suwa | |author=K, Suwa | ||
− | |version=0. | + | |version=0.2 |
− | |mediawiki=1.11 | + | |mediawiki=1.11.1 |
}} | }} | ||
Line 14: | Line 14: | ||
== Requirements == | == Requirements == | ||
− | |||
[[Doc:Extension/HTMLForm|HTMLForm]] | [[Doc:Extension/HTMLForm|HTMLForm]] | ||
Line 20: | Line 19: | ||
<table border="1" cellpadding="3" cellspacing="1"> | <table border="1" cellpadding="3" cellspacing="1"> | ||
<tr><td>version</td><td>source</td><td>md5</td></tr> | <tr><td>version</td><td>source</td><td>md5</td></tr> | ||
− | <tr><td>0. | + | <tr><td>0.2(December 4,2008)</td><td>{{#ifexistfile:/data/src/Persistency/Persistency.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">7710adada75055803559dc5cd01b1e82</pre></td></tr> |
</table> | </table> | ||
Line 41: | Line 40: | ||
== Function == | == Function == | ||
# [[Help:Extensions#Persist_Page__.7B.7B.23persist:pagename.7Cbutton_title.7Ctemplate_name.7Cnumber_of_args.7Cargs.7Cseparator.3D.3B.7D.7D|persistency]] | # [[Help:Extensions#Persist_Page__.7B.7B.23persist:pagename.7Cbutton_title.7Ctemplate_name.7Cnumber_of_args.7Cargs.7Cseparator.3D.3B.7D.7D|persistency]] | ||
+ | |||
+ | == ChangeLog == | ||
+ | 0.2 | ||
+ | * _<nowiki>_UPDATE_ALL_PERSISTENCIES__と書いて保存することにより、対象ページをjobテーブルに保存し、ページの作成/更新を行います。</nowiki> |
Revision as of 11:30, 4 December 2008
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.2 |
MediaWiki | 1.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
version | source | md5 |
0.2(December 4,2008) | Persistency.phps | 7710adada75055803559dc5cd01b1e82 |
Installtion
- Download the source code and rename it to Persistency.php.
- Place it in the extensions/ directory.
- 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.
$egTmpPath is a temporary place to save import xml file.
Function
ChangeLog
0.2
- __UPDATE_ALL_PERSISTENCIES__と書いて保存することにより、対象ページをjobテーブルに保存し、ページの作成/更新を行います。