Help:Extension/HTMLForm

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
__TOC__
 
__TOC__
  
form関連のHTMLタグを使えるようにするextensionです。
+
Extension to use form-related HTML tags (input, textarea, select, option, optgroup, fieldset, legend, label, form).<br>
 
+
The action URL in the form must be the wiki root directory (e.g. action="/wiki/...").
使えるタグは「input」「textarea」「select」「option」「optgroup」「fieldset」「legend」「label」「form」です。<br>
+
formのactionに指定するURLは自サイトwikiのルートが指定されないと、この関数は失敗します(つまり外部サイトへ飛ばすことは出来ません)。
+
 
+
例えば、当サイトでは「action="/wiki/"」となります。
+
  
 
== Requirements ==
 
== Requirements ==
Line 31: Line 27:
 
  <li>Optionally, Insert follow line to LocalSettings.php
 
  <li>Optionally, Insert follow line to LocalSettings.php
 
  <pre>$egParamPrefix = "any string"; (default: "my_")</pre></li>
 
  <pre>$egParamPrefix = "any string"; (default: "my_")</pre></li>
$egParamPrefixは、ブラウザから送信される情報が、mediawikiが使用するパラメータ名と競合しないようにするための接頭辞です。
+
$egParamPrefix is used to distinguish parameters from original MediaWiki parameters.
 
</ol>
 
</ol>
  

Revision as of 16:59, 20 September 2008

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki1.11.1
License
Hooks used
Token type

Contents


Extension to use form-related HTML tags (input, textarea, select, option, optgroup, fieldset, legend, label, form).
The action URL in the form must be the wiki root directory (e.g. action="/wiki/...").

Requirements

None

Download

versionsourcesize
0.1(September 11,2008)HTMLForm.phps

Installtion

  1. Download source and rename to HTMLForm.php.
  2. Put in extensions/ directory.
  3. Insert follow line to LocalSettings.php
    require_once( "$IP/extensions/HTMLForm.php" );
  4. Optionally, Insert follow line to LocalSettings.php
    $egParamPrefix = "any string"; (default: "my_")
  5. $egParamPrefix is used to distinguish parameters from original MediaWiki parameters.

Function

  1. get
  2. tag
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox