Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
4,571
edits
Line 337: | Line 337: | ||
{| class="wikitable" | {| class="wikitable" | ||
| <code>height=</code> | | <code>height=</code> | ||
| | | sets the height, in pixels, of the map. | ||
|- | |- | ||
| <code>width=</code> | | <code>width=</code> | ||
| | | sets the width, in pixels, of the map. | ||
{{Note|1=<!--T:323--> Both height</> and width</> are needed together to set the dimension.}} | {{Note|1=<!--T:323--> Both height</> and width</> are needed together to set the dimension.}} | ||
|- | |- | ||
| <code>starting bounds=</code> | | <code>starting bounds=</code> | ||
| | | takes in a pair of coordinates to set the bounds of the map displayed; this parameter only applies if the input does not have a value. (Example value for this parameter: "-20,-15;50,55".) | ||
|} | |} | ||
The "leaflet" input type also allows one additional parameter: | The "leaflet" input type also allows one additional parameter: | ||
Line 356: | Line 354: | ||
|} | |} | ||
All of the map inputs lets you enter an address to locate the coordinates more easily. | |||
But if the form already contains one or more fields to enter the address, then the user may have to enter it twice - once to actually store the data, and the second to locate the coordinates. | |||
To avoid users having to do this double work, you can have the address field(s) feed their values directly to the map when locating the point. | |||
You can do that using the "feeds to map=" parameter - look for "feeds to map" [[Extension:Page_Forms/Defining_forms#.27field.27_tag</>|here]]. | |||
All of these formats, by default, rely on external JavaScript code. | |||
However, you can have the "openlayers" format use local JavaScript code instead, by just installing the [[Special:MyLanguage/Extension:OpenLayers</>|OpenLayers]] extension. | |||
====Disabling==== <!--T:147--> | ====Disabling==== <!--T:147--> | ||
Line 383: | Line 378: | ||
<!--T:112--> | <!--T:112--> | ||
This will disallow the use of any outside services by Page Forms - which at the moment means disabling these three input types. | This will disallow the use of any outside services by Page Forms - which at the moment means disabling these three input types. | ||
===regexp=== | ===regexp=== | ||
<!--T:113--> The "regexp</>" input type is not a true input type, but rather the ability to display another input (most often "text") with additional, regular-expression-based validation. | <!--T:113--> The "regexp</>" input type is not a true input type, but rather the ability to display another input (most often "text") with additional, regular-expression-based validation. | ||
<!--T:114--> See [[Special:MyLanguage/Extension:Page Forms/Input types/Regexp</>|here]] for a more detailed explanation of this input type and its parameters. | <!--T:114--> See [[Special:MyLanguage/Extension:Page Forms/Input types/Regexp</>|here]] for a more detailed explanation of this input type and its parameters. |