Help:Extension/Volatile
From Metabolomics.JP
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.12 |
MediaWiki | |
License | |
Hooks used | |
Token type | Link markup |
Contents |
Volatile is achieved by Volatile link and Volatile namespace. See also Persistency.
- Volatile link
- [[Volatile:page?param1¶m2&...¶mN|name]] specifies a page in Volatile namespace and its parameters. In the specified page, the contents are expanded with the parameters (without cash).
- Volatile namespace
- The notation of page contents is the same as Template namespace. Use {{{1}}}, {{{2}}} ... for parameters.
Example
一つ目の引数に「first_arg」、二つ目の引数に「second_arg」と言う文字列を渡すVolatileの使い方です。
- ソース
[[Volatile:Help:Extension/Volatile?my_1=first_arg&my_2=second_arg|volatile test]]
- テンプレートソース
- Volatile:Help:Extension/Volatile
一つ目の引数{{{1}}}、二つ目の引数{{{2}}}
- Volatile:Help:Extension/Volatile
- 実行例
Requirements
Download
version | source | md5 | OperationCheck version |
0.12(March 21,2009) | Volatile.phps | 1ec87da5d0c6c627f8a1f086b493e7db | 1.11.1, 1.16.2 |
0.11(October 23,2008) | Volatile-0.11.phps | 46e6021b00cfdb21ffc677d5dc61d455 | 1.11.1 |
Installtion
- Download the source code and rename it to Volatile.php.
- Place it in the extensions/ directory.
- Insert the follow lines to LocalSettings.php
require_once( "$IP/extensions/Volatile.php" ); $wgExtraNamespaces = array( ... xxx => "Volatile", xxx+1 => "Volatile_Talk", ... );
Use 100 or larger numbers for xxx.
Function
ChangeLog
0.12
- Volatileの$を含む引数がphpの変数として解釈されてしまうバグを修正