UESPWiki:Extension UespMap

A UESPWiki – Sua fonte de The Elder Scrolls desde 1995
(Redirecionado de UESPWiki:Extension UESPMap)

The UespMap extension permits use the UESP game maps (e.g. srmap.uesp.net) within the wiki using the <uespmap> tag.

Parameters

The following are all supported parameters for the uespmap tag. No parameters are required.

  • game -- (default 'sr') -- Specifies the game map to display. One of: sr, ob, mw, si, or db.
  • border -- (default 'none') -- The CSS border style to use for the map (e.g. 1 px solid black).
  • width -- (default '100%') -- The width of the map in CSS format.
  • height -- (default '600px') -- The height of the map in CSS format.
  • locx / locy -- (default ' ') -- The center of the map in game coordinates.
  • zoom -- (default ' ') -- The zoom level to display the map with.
  • centeron -- (default ' ') -- Attempts to center the zoomed in map on the given location.
  • searchtext -- (default ' ') -- Performs an initial search for the given text in the map.
  • The following parameters are boolean and accept values of 'true' or 'false'.
  • search -- (default 'true') -- Show or hide the search input box.
  • results -- (default 'true') -- Sets the initial state of the search results panel (the user can still manually show/hide the results).
  • control -- (default 'true') -- If false the map controls are disabled and the user cannot zoom in/out or pan the map.
  • showinfo -- (default 'true') -- When set to false the popup info windows from the map labels are disabled.
  • cells -- (default 'false') -- Show or hide the cell grid on the map.
  • showdisabled -- (default 'false') -- If set to true then disabled locations will show up on the map (displayed as a red map label).
  • edit -- (default 'false') -- If set to true then then map locations can be edited and added if the wiki user has the cartographer permission.
  • dev -- (default 'false') -- Only useful for developing. When set to true the backend HTML file XXmapwiki_dev.html is loaded for the map.

Usage Notes

  • Having more than one map per page may be possible but has not been tested and is not recommended.
  • Some parameters may conflict with each other (ex: locx/locy and centeron).
  • Source code is available on request although the extension is specifically coded to work with the custom UESP game maps and will require modification to work with another wiki or Google map.
  • If more details on the extension are desired you may Contact the Author.
  • Editable versions of all maps are available on the following pages for users with the cartographer permission (map is read-only for other users):

Example

  • Minimum usage (uses default values for all parameters):

<uespmap></uespmap>

  • Small map with minimal interface and control disabled:

<uespmap game="mw" width="250px" height="250px" border="1px solid black" search="false" control="false" showinfo="false"></uespmap>


  • All parameters:

<uespmap game="sr" dev="false" width="100%" height="600px" searchtext="camp" border="1px solid gray" locx="33511" locy="28146" zoom="13" search="false" cells="true" results="false" edit="true" control="true" showdisabled="true"></uespmap>