Help:Extension/Volatile

From Metabolomics.JP
Jump to: navigation, search
Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.12
MediaWiki
License
Hooks used
Token typeLink markup

Contents


Volatile is achieved by Volatile link and Volatile namespace. See also Persistency.

Volatile link 
[[Volatile:page?param1&param2&...&paramN|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 test

Requirements

Download

versionsourcemd5OperationCheck 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

  1. Download the source code and rename it to Volatile.php.
  2. Place it in the extensions/ directory.
  3. 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

  1. volatile

ChangeLog

0.12

  • Volatileの$を含む引数がphpの変数として解釈されてしまうバグを修正
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox