Help:Extension/Secret

From Metabolomics.JP
Revision as of 15:42, 17 February 2011 by Editor (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki
License
Hooks used
Token type

Contents


ExMolFunctionsはMol名前空間にMOLデータを保存すると、自動的に組成式、精密質量、平均質量、SMILESデータを計算し、ページに追加書き込みします。Mol名前空間のページにはMOLファイルの中身をそのまま保存します。そのため、wikiソースはそのままMOLファイルと全く同じ中身になります。

また、MOLデータから自動的に画像も生成し、ページ表示時に画像を差し込みます。ページ内には画像情報は書き込まれません。 画像はID(ページ名).pngとID(ページ名)n.pngの二つが作成されますが、この二つの違いはn付き画像は、原子に番号が振ってあることです。

アップロードされたMOLファイルは、$egMolPathで指定されたディレクトリへID(ページ名)の頭4桁のディレクトリ内に保存されます。


Requirements

None

Download

versionsourcemd5OperationCheck version
0.1(December 9,2009)Secret.phps
c45d54c9ddff0a9f10964b4b3d1e6562
1.11.1, 1.16.2

Installtion

  1. Download the source code and rename it to Secret.php.
  2. Place it in the extensions/ directory.
  3. Insert the follow lines to LocalSettings.php
    require_once( "$IP/extensions/ExMolFunctions.php" );
    
  4. Secret.php内のisSecretPage関数に必要な処理を記述して下さい。
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox