Help:Extension/HTMLForm

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 33: Line 33:
 
== Function ==
 
== Function ==
 
# [[Help:Extensions#.7B.7B.23get:name.7D.7D|get]]
 
# [[Help:Extensions#.7B.7B.23get:name.7D.7D|get]]
# [[Help:Extensions#.7B.7B.23formtag:str.7Carg.7Cbetween.7D.7D|tag]] (obsolute #tag)
+
# [[Help:Extensions#.7B.7B.23formtag:str.7Carg.7Cbetween.7D.7D|formtag]] (obsolute #tag)
 
# [[Help:Extensions#.7B.7B.23encode:str.7D.7D|encode]]
 
# [[Help:Extensions#.7B.7B.23encode:str.7D.7D|encode]]
 
# [[Help:Extensions#.7B.7B.23decode:str.7D.7D|decode]]
 
# [[Help:Extensions#.7B.7B.23decode:str.7D.7D|decode]]

Revision as of 16:16, 25 August 2010

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.3
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

versionsourcemd5
0.3(October 8,2009)HTMLForm.phps1fc23f68fed045993e10233280a36122
0.2(November 18,2008)HTMLForm-0.2.phpsd74705c84362efe1ccfbebe3bec640b8

Installtion

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

Function

  1. get
  2. formtag (obsolute #tag)
  3. encode
  4. decode

ChangeLog

0.3

  • encodeが変換先の文字コードを受け取れるよう変更しました。ただし現在サポートしているのはEUC-JPのみです。

0.2

  • {{#tag:}}エクステンションを{{#formtag:}}という表記に変えました。(mediawiki 1.12から{{#tag:}}が実装されたため)
  • {{#encode:}}, {{#decode:}}を追加
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox