Help:Extension/Persistency
From Metabolomics.JP
(Difference between revisions)
Line 7: | Line 7: | ||
__TOC__ | __TOC__ | ||
− | Persistency is | + | Persistency is achieved by Persist link and Persist namespace. This function is allowed only for logged-in users. See also [[Help:Extension/Volatile|Volatile]]. |
− | ;Persist link : <nowiki>[[Persist: | + | ;Persist link : <nowiki>[[Persist:name|template|params|name]]</nowiki> 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 are overwritten. | ; Persist namespace : There is no need to create pages. When a specified page title exists, the contents are overwritten. | ||
Line 24: | Line 24: | ||
== Installtion == | == Installtion == | ||
<ol> | <ol> | ||
− | <li>Download source and rename to Persistency.php.</li> | + | <li>Download the source code and rename it to Persistency.php.</li> |
− | <li> | + | <li>Place it in the extensions/ directory.</li> |
− | <li>Insert follow | + | <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"; | ||
Line 33: | Line 33: | ||
... | ... | ||
);</pre> | );</pre> | ||
− | $egPhpBin is required | + | $egPhpBin is required. Use 100 or larger numbers for xxx.</li> |
− | Use 100 or larger numbers for xxx.</li> | + | |
</ol> | </ol> | ||
== 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]] |
Revision as of 17:41, 20 September 2008
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.1 |
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 are overwritten.
Requirements
Download
version | source | size |
0.1(September 11,2008) | Persistency.phps |
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"; $wgExtraNamespaces = array( ... xxx => "Persist", xxx+1 => "Persist_Talk", ... );
$egPhpBin is required. Use 100 or larger numbers for xxx.