Help:Extension/Secret
From Metabolomics.JP
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.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
version | source | md5 | OperationCheck version |
0.1(December 9,2009) | Secret.phps | c45d54c9ddff0a9f10964b4b3d1e6562 | 1.11.1, 1.16.2 |
Installtion
- Download the source code and rename it to Secret.php.
- Place it in the extensions/ directory.
- Insert the follow lines to LocalSettings.php
require_once( "$IP/extensions/ExMolFunctions.php" );
- Secret.php内のisSecretPage関数に必要な処理を記述して下さい。