Help:Extension/HTMLForm

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Extension
 
{{Extension
 
|author=K, Suwa
 
|author=K, Suwa
|version=0.1
+
|version=0.2
|mediawiki=1.11 only
+
|mediawiki=1.11.1
 
}}
 
}}
  
Line 16: Line 16:
 
<table border="1" cellpadding="3" cellspacing="1">
 
<table border="1" cellpadding="3" cellspacing="1">
 
  <tr><td>version</td><td>source</td><td>md5</td></tr>
 
  <tr><td>version</td><td>source</td><td>md5</td></tr>
  <tr><td>0.1(September 29,2008)</td><td>{{#ifexistfile:/data/src/HTMLForm/HTMLForm.phps}}</td><td>e238b6af713d49bc023196be5053ccd7</td></tr>
+
  <tr><td>0.2(November 18,2008)</td><td>{{#ifexistfile:/data/src/HTMLForm/HTMLForm.phps}}</td><td>d74705c84362efe1ccfbebe3bec640b8</td></tr>
 
</table>
 
</table>
  
Line 33: Line 33:
 
# [[Help:Extensions#.7B.7B.23get:name.7D.7D|get]]
 
# [[Help:Extensions#.7B.7B.23get:name.7D.7D|get]]
 
# [[Help:Extensions#.7B.7B.23tag:str.7Carg.7Cbetween.7D.7D|tag]]
 
# [[Help:Extensions#.7B.7B.23tag:str.7Carg.7Cbetween.7D.7D|tag]]
 +
# encode
 +
# decode

Revision as of 10:49, 4 December 2008

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.2
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.2(November 18,2008)HTMLForm.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. tag
  3. encode
  4. decode
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox