Template:Site plan

From Wikipedia, the free encyclopedia
  (Redirected from Template:Lageplan)
Jump to: navigation, search
[edit] [history] [purge] Documentation icon Template documentation

Display an image such as a site plan or map with another image superimposed on it. The position of the superimposed image is relative so that changing the size of the underlying image does not invalidate the position of the second image.

[edit] Use

Coordinates can contain a decimal park. e.g. 50.5

{{Site plan
|marker      = Symbol for the marking, if possible SVG, eg file:reddot.svg
|markersize  = Size of the marker
|markertext  = Description
|pos_x       = Relative x-position (0-100)
|pos_y       = Relative y-position (0-100)
|map         = Map name
|mapsize_x   = The size of the map in x direction (width)
|mapsize_y   = The size of map in y-direction (height)
|maptext     = Tooltip text
|warning     = Out of range message
}}

[edit] Examples

To display a semi-transparent red circle with mouseover tooltip in an image (move mouse over the circle):

{{Site plan
|marker      = Red circle 50%.svg
|markersize  = 22
|markertext  = ram air turbine - click outside this circle to expand the image
|pos_x       = 63
|pos_y       = 55
|map         = ZeppelinLZ127b.jpg
|mapsize_x   = 180
|mapsize_y   = 114
|maptext     = D-LZ127 - click here to expand this image
|warning     = Warning: template [[:Template:Site plan|Template:Site plan]] had a problem with its parameters 
}}

produces:

ram air turbine - click outside this circle to expand the image
D-LZ127 - click here to expand this image


Demonstration of the out of range warning:

{{Site plan
|marker      = Cercle rouge 50%.svg
|markersize  = 22
|markertext  = ram air turbine - click outside this circle to expand the image
|pos_x       = 163 <!-- deliberately out of range 0 to 100 to trigger the warning -->
|pos_y       = 55
|map         = ZeppelinLZ127b.jpg
|mapsize_x   = 180
|mapsize_y   = 114
|maptext     = D-LZ127 - click here to expand this image
|warning     = Error: {{tl|Site plan}} detected that a parameter value (pos_x or pos_y) is out of range.
}}

produces:

Error: {{Site plan}} detected that a parameter value (pos_x or pos_y) is out of range.

[edit] See also

  • {{Annotated image}}, allows text notes to overlap image, allows cropping
  • {{Superimpose}} - places one image over another
  • {{Superimpose2}} - places up to 50 image layers over one another
  • {{Location map}} - places a single image over another at a map coordinate location
  • {{Overlay}} - places up to 30 marker images of various chooseable kinds over a base image with optional grid and legend
Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox