Help:Page forms: Difference between revisions

Jump to navigation Jump to search
no edit summary
(start to build from https://www.mediawiki.org/wiki/Extension:Page_Forms/Input_types)
 
No edit summary
Line 1: Line 1:
Page Forms (known before 2016 as Semantic Forms) is an extension to MediaWiki that allows users to add, edit and query data using forms
Page Forms is an extension to MediaWiki that allows users to add, edit and query data using forms
 
==The input types== <!--T:2-->
 


==The input types==
===text===
===text===


<!--T:3-->
The default input type; corresponds to the HTML "text" input.
The default input type; corresponds to the HTML "text" input.


 
''Special parameters:''
''<!--T:4--> Special parameters:''


{| class="wikitable
{| class="wikitable
| <code>size=<!--T:276--> ''size''</code>
| <code>size= ''size''</code>
| <!--T:5--> Specifies the width of the input, in characters.
| <!--T:5--> Specifies the width of the input, in characters.
|-
|-
| <code>maxlength=<!--T:277--> ''maximum length''</code>
| <code>maxlength= ''maximum length''</code>
| <!--T:6--> Specifies the maximum allowed length of the input.
| <!--T:6--> Specifies the maximum allowed length of the input.
|-
|-
| <code>placeholder=<!--T:278--> ''placeholder text''</code>
| <code>placeholder= ''placeholder text''</code>
| <!--T:7--> Specifies help text that is displayed in the input until the user clicks on it.
| <!--T:7--> Specifies help text that is displayed in the input until the user clicks on it.
|-
|-
| <code>autocapitalize=''<!--T:313--> value''</code>
| <code>autocapitalize='' value''</code>
| <!--T:336--> the <tvar name=1>[https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize autocapitalize]</tvar> parameter in the corresponding HTML tag to whatever value is set for this parameter; examples include <tvar name=2><code>on</code>, <code>off</code>, <code>sentences</code></tvar>, etc.
| <!--T:336--> the <tvar name=1>[https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize autocapitalize]</tvar> parameter in the corresponding HTML tag to whatever value is set for this parameter; examples include <tvar name=2><code>on</code>, <code>off</code>, <code>sentences</code></tvar>, etc.
|}
|}
Line 28: Line 24:
===textarea===
===textarea===


<!--T:8-->
Corresponds to the HTML {{tag|textarea|open}} tag.
Corresponds to the HTML <tvar name=1>{{tag|textarea|open}}</tvar> tag.




''<!--T:10--> Special parameters:''
''Special parameters:''


{| class="wikitable"
{| class="wikitable"

Navigation menu