Help:Extension/HookInsert
From Metabolomics.JP
(Difference between revisions)
Line 23: | Line 23: | ||
<table border="1" cellpadding="3" cellspacing="1"> | <table border="1" cellpadding="3" cellspacing="1"> | ||
<tr><td>version</td><td>source</td><td>md5</td><td>OperationCheck version</td></tr> | <tr><td>version</td><td>source</td><td>md5</td><td>OperationCheck version</td></tr> | ||
− | <tr><td>0.1(January 23,2009)</td><td>{{#ifexistfile:/data/src/HookInsert/HookInsert.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">00d3cc19b0bb0452d8bf09ddadb03a76</pre></td><td>1.11.1</td></tr> | + | <tr><td>0.1(January 23,2009)</td><td>{{#ifexistfile:/data/src/HookInsert/HookInsert.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">00d3cc19b0bb0452d8bf09ddadb03a76</pre></td><td>1.11.1, 1.16.2</td></tr> |
</table> | </table> | ||
Revision as of 17:02, 21 February 2011
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.1 |
MediaWiki | |
License | |
Hooks used | |
Token type | |
Contents |
HookInsertは入力者による、同じモノを指す場合でも文言が違う事を無くすため
文言を統一するためのextensionです。
文言をあらかじめ、Index名前空間のページ(リストページ)に作成しておき 表示するページでは、リストページ内の文言を選択・表示できるようにします。 リストページ内で、選択可能な項目は「#」か「*」で始まる行が一つの項目に対応します。
表示側のページでは一切wikiソースに手を加えることなく リストページ内の文言であれば、自由に表示項目を変更できるようになります。
Requirements
None
Download
version | source | md5 | OperationCheck version |
0.1(January 23,2009) | HookInsert.phps | 00d3cc19b0bb0452d8bf09ddadb03a76 | 1.11.1, 1.16.2 |
Installtion
- Download the source code and rename it to HookInsert.php.
- Place it in the extensions/ directory.
- Insert the follow lines to LocalSettings.php
require_once( "$IP/extensions/HookInsert.php" ); $wgExtraNamespaces = array( ... xxx => "Index", xxx+1 => "Index_Talk", ... );
Use 100 or larger numbers for xxx.