• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Site plan

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
CautionInternet Explorer is extremely sensitive to small changes to the source code. Please test any changes in IE.

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.

Use

Coordinates can contain a decimal point, e.g. "50.5".

{{Site plan
| marker =      <!-- Symbol for the marking, if possible SVG, eg file:reddot.svg -->
| markersize =  <!-- Size of the marker symbol -->
| markertext =  <!-- Description [placed beside marker?] -->
| pos_x =       <!-- Relative x-position (0-100) -->
| pos_y =       <!-- Relative y-position (0-100) -->
| map =         <!-- Map name -->
| mapsize_x =   <!-- Map's width -->
| mapsize_y =   <!-- Map's height --> 
| maptext =     <!-- Tooltip text -->
| warning =     <!-- Out-of-range message's text -->
}}

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:Site plan]] parameter out of range
}}

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.

See also

  • {{Annotated image}}, which allows cropping and text notes to overlap image.
  • {{Superimpose}}, which places one image over another.
  • {{Superimpose2}}, which places up to 50 image layers over one another.
  • {{Location map}}, which places a single image over another at a map coordinate location.
  • {{Overlay}}, which places up to 30 marker images of various configurable kinds over a base image with optional grid and legend.
The above documentation is transcluded from Template:Site plan/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Site_plan&oldid=31063"
Category:
  • Graphics formatting and function templates
Last edited on 15 November 2010, at 23:37

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 15 November 2010, at 23:37.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop