Module:Infobox mapframe/doc

Usage
Module that automatically makes a mapframe suitable for an infobox automatically, with minimal user input.

Generic usage
Just use the template Infobox mapframe, following the documentation there. This module may also be imported to another Lua module.

Automatic maps in infoboxes

 * Example edits: Template:Infobox prison, Template:Infobox prison/doc

Edit the infobox template (or its sandbox). Add lines like the following examples to the infobox. Replace numbers (4, or 97 to 99), with the appropriate number based on how many other image or data parameters are already present. If the template has a, add the following parameters: Once this is done, the above parameters will be available to users of the template.
 * mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher
 * Defaults values for these parameters can also be specified in the #invoke calls above, e.g.  means that the library marker will be used, unless a different value is passed in to the template.
 * The maps are off by default, which means maps will not be displayed unless yes is present in the template call. To turn maps on by default, in the #invoke calls above add yes – which means maps will be displayed unless no is present in the template call. onByDefault can also be set to a conditional, such as if another parameters is present, e.g. onByDefault
 * Add the new parameters to the document. You can use . Specify default values (if any are used in the #invoke calls) using by adding parameters in the form parameter-namevalue. The default output is shown here collapsed:


 * Parameters can also be added to the TemplateData can also be added by copy-pasting from