Help:Extension/HTMLForm

From Metabolomics.JP
Revision as of 16:17, 25 August 2010 by Editor (Talk | contribs)

Jump to: navigation, search
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
  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