Help:Extension/Volatile

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
__TOC__
 
__TOC__
  
Volatile機能は、VolatileリンクとVolatile名前空間の二つで構成されます。
+
Volatile is achieved by Volatile link and Volatile namespace.  See also [[Help:Extension/Persistency|Persistency]].
  
 +
;Volatile link : <nowiki>[[Volatile:name|params|name]]</nowiki> specifies a page in Volatile namespace and its parameters.  In the specified page, the contents are expanded with the parameters (without cash). 
  
Volatileリンクは<nowiki>[[Volatile:~]]</nowiki>で作ることができ、飛ばすVolatile名前空間のページと引数を指定します。
+
;Volatile namespace : The notation of page contents is the same as Template namespace.  Use {{{1}}}, {{{2}}} ... for parameters.
 
+
Volatile名前空間のページには、Template名前空間と同じような{{{1}}}{{{ID}}}を記述します。
+
 
+
Volatileリンクより飛ばされたVolatile名前空間のページでは、引数が{{{~}}}に割り当てられ表示されます。
+
 
+
 
+
Template機能と似ていますが、Template機能はTemplateを別のページから呼び出すのに対し、Volatile機能は引数を持ってTemplateに飛び込むイメージです。
+
 
+
また、Volatileリンクによりアクセスされたページはキャッシュされることなく、Volatileリンクの引数を変える(もしくは、別のVolatileリンクを用意する)ことで、一つのページだけで動的に情報を変えることができます。
+
  
 
== Requirements ==
 
== Requirements ==
Line 32: Line 24:
 
== Installtion ==
 
== Installtion ==
 
<ol>
 
<ol>
  <li>Download source and rename to Volatile.php.</li>
+
  <li>Download the source code and rename it to Volatile.php.</li>
  <li>Put in extensions/ directory.</li>
+
  <li>Place it in the extensions/ directory.</li>
  <li>Insert follow line to LocalSettings.php
+
  <li>Insert the follow lines to LocalSettings.php
 
   <pre>require_once( "$IP/extensions/Volatile.php" );
 
   <pre>require_once( "$IP/extensions/Volatile.php" );
 
$wgExtraNamespaces = array( ...
 
$wgExtraNamespaces = array( ...
Line 40: Line 32:
 
   ...
 
   ...
 
);
 
);
</pre>xxxは既に存在する名前空間番号と競合しない100番以降の番号を指定して下さい。</li>
+
</pre>
 +
Use 100 or larger numbers for xxx. </li>
 
</ol>
 
</ol>
  
 
== Function ==
 
== Function ==
# [[Doc:Extensions#Volatile_page_.5B.5BVolatile:pagename.7Carg1.7Carg2.7C....7Clinkname.5D.5D|volatile]]
+
# [[Help:Extensions#Volatile_page_.5B.5BVolatile:pagename.7Carg1.7Carg2.7C....7Clinkname.5D.5D|volatile]]

Revision as of 17:42, 20 September 2008

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki1.11.1
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.

Requirements

HTMLForm

Download

versionsourcesize
0.1(September 11,2008)Volatile.phps

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
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox