Template:Mapnode/doc

This template is used to add image and text overlays to world map pages. While this can be done easily with only HTML, this makes it easy to position and link certain elements of the node. It is used on the following pages:
 * Template:Poinode poe1
 * Template:Mapnode_poe2 -> Pillars of Eternity II: Deadfire interactive world map.
 * Template:Mapnode_poe1 -> Pillars of Eternity world map/dynamic.

It may be used on other pages, but ensure that the parent has the style.

Parameters
All required parameters are anonymous parameters. Do NOT use parameter names, e.g.


 * type (required)
 * Type of node:
 * - Used for text only. Text size is default, but can be specified with the labelsize parameter.
 * - Use custom icon image, specified in the last required parameter.


 * x (required)
 * Left margin size (in either pixels  or percentage  )
 * This is the distance from the left side. 0% is left, 100% is right, 0px is left
 * If unit is unspecified, defaults to percentage


 * y (required)
 * Top margin size (in either pixels  or percentage  ),
 * This is the distance from the top. 0% is top, 100% is bottom, 0px is top
 * If unit is unspecified, defaults to percentage


 * text (required)
 * The text to show. Typically the name of the page to link to, e.g..


 * Use  to label the link (e.g.  ).


 * If link is image or none (meaning don't link the text) and a link label is included, the text before and including the pipe character is removed.


 * This text does not wrap, use  or   to manually insert line breaks.


 * image (required, only if type is icon)
 * File name of custom image. Use iconsize to control the size of the image, or just append  to the name.

Optional parameters
All optional parameters are named.
 * align
 * If type is icon, defines which side of the image to place the text on. If type is label, defines which side of the origin point to place the text on. Valid options are,  ,  ,   (default for icon), and   (label only, default for label).


 * labelsize
 * Directly maps to the font-size property. Default is inherited - usually 14px (skin default).


 * iconsize
 * Set to use custom size for image. Default is the full size of the image.


 * link
 * Which parts of the node to link. Valid values are:,  ,  , and  . Defaults to.


 * scale
 * Scales the node using transform CSS. Can either be, which will try to keep the scale the same (perceived) size as the map is zoomed in and out, or a fixed decimal value - which is mapped directly to the scale.


 * style
 * Style to use for text span, e.g.
 * Note that this style is applied on top of the existing/default style for the span.


 * class
 * Sets the class attribute on the root div element.


 * class_img
 * Set the class attribute on a div surrounding the img element. This div will only be added if class_img is present.


 * class_span
 * Sets the class attribute on the span (text) element.


 * attr
 * Used to set any other attributes on the root div element. It is still restricted by the allowed subset of attributes on HTML elements in wikitext.




 * Does not do any encapsulating, the field is placed as-is within the div opening tag. This means:
 * may be used between the attribute name and value, as to avoid the parser from interpreting it as another parameter. This is only the case for more complex templates, otherwise a regular "=" can be used.
 * Double quotes must surround each value
 * Incorrect HTML may break the node, and or the map.


 * attr_img
 * Same as above, but for the div surrounding the img element.


 * attr_span
 * Same as above, but for the span text element.