Help:Extension/RowJSPage

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
  
 
googleapiの利用、及びMediaWiki名前空間内のJavaScriptコードの取り込みを可能にするextensionです。
 
googleapiの利用、及びMediaWiki名前空間内のJavaScriptコードの取り込みを可能にするextensionです。
 +
 +
== Example ==
 +
ここでは、googleAPIを利用して、metabolomicsという検索語の結果をひょうじします。
 +
[[MediaWiki:GoogleAPI.js]]ページをコピーして下さい。
 +
GoogleAPI.jsの中でscIというIDに対して、検索結果をセットしています。
 +
 +
* ソース
 +
<nowiki>{{#googleapi:}}</nowiki>
 +
<nowiki>{{#includejs:GoogleAPI.js|metabolomics}}</nowiki>
 +
 +
<nowiki>{|</nowiki>
 +
<nowiki>|id="scI"|</nowiki>
 +
<nowiki>|}</nowiki>
 +
 +
* 実行例
 +
{{#googleapi:}}
 +
{{#includejs:GoogleAPI.js|metabolomics}}
 +
 +
{|
 +
|id="scI"|
 +
|}
  
 
== Requirements ==
 
== Requirements ==

Revision as of 09:37, 1 March 2011

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.11
MediaWiki
License
Hooks used
Token type

Contents


googleapiの利用、及びMediaWiki名前空間内のJavaScriptコードの取り込みを可能にするextensionです。

Example

ここでは、googleAPIを利用して、metabolomicsという検索語の結果をひょうじします。 MediaWiki:GoogleAPI.jsページをコピーして下さい。 GoogleAPI.jsの中でscIというIDに対して、検索結果をセットしています。

  • ソース
{{#googleapi:}}
{{#includejs:GoogleAPI.js|metabolomics}}

{|
|id="scI"| 
|}
  • 実行例


Requirements

None

Download

versionsourcemd5OperationCheck version
0.11(February 27,2011)RowJSPage.tgz
2578055dd671a28e51e7c304549c2bfd
1.16.2
0.1(September 7,2009)RowJSPage-0.1.tgz
8d93f6a637b81c0201b29e2517730da5
1.11.1, 1.16.2

Installtion

  1. Download the tgz file and decompress it.
  2. Place it in the extensions/ directory.
  3. Insert the follow lines to LocalSettings.php
require_once( "$IP/extensions/RowJSPage/RowJSPage.setup.php" );

Function

  1. googleapi
  2. includejs

Changes

0.1

  • {{#includejs:}}内でmetabolomics.jp/のURLを指していた部分を修正しました。
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox