Help:Extension/Volatile
From Metabolomics.JP
(Difference between revisions)
Line 11: | Line 11: | ||
;Volatile namespace : The notation of page contents is the same as Template namespace. Use {{{1}}}, {{{2}}} ... for parameters. | ;Volatile namespace : The notation of page contents is the same as Template namespace. Use {{{1}}}, {{{2}}} ... for parameters. | ||
+ | |||
+ | == Example == | ||
+ | 一つ目の引数に「first_arg」、二つ目の引数に「second_arg」と言う文字列を渡すVolatileの使い方です。 | ||
+ | |||
+ | * ソース | ||
+ | <nowiki>[[Volatile:Volatile?my_1=first_arg&my_2=second_arg|volatile test]]</nowiki> | ||
+ | |||
+ | * テンプレートソース | ||
+ | 一つ目の引数{{{1}}}、二つ目の引数{{{2}}} | ||
+ | |||
+ | * 実行例 | ||
+ | [[Volatile:Volatile?my_1=first_arg&my_2=second_arg|volatile test]] | ||
== Requirements == | == Requirements == |
Revision as of 08:44, 1 March 2011
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.12 |
MediaWiki | |
License | |
Hooks used | |
Token type | |
Contents |
Volatile is achieved by Volatile link and Volatile namespace. See also Persistency.
- Volatile link
- [[Volatile:name|params|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:Volatile?my_1=first_arg&my_2=second_arg|volatile test]]
- テンプレートソース
一つ目の引数{{{1}}}、二つ目の引数{{{2}}}
- 実行例
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の変数として解釈されてしまうバグを修正