Widget:HtmlImageMap: Difference between revisions

From sandbox
Jump to navigation Jump to search
Gfc (talk | contribs)
No edit summary
Gfc (talk | contribs)
No edit summary
Line 11: Line 11:
<includeonly>
<includeonly>
<!-- Dynamically grab your wiki image file path -->
<!-- Dynamically grab your wiki image file path -->
<img src="{{canonicalurl:Special:FilePath/<!--{$image}-->}}" width="<!--{$width|default:960}-->" usemap="#<!--{$mapname|default:floorplan}-->" alt="Makerspace Map">
<img src="https://sandbox.umd.edu/wiki/images/thumb/f/f9/SandboxFloorPlan-Studios.jpg/800px-SandboxFloorPlan-Studios.jpg" width="800" usemap="SandboxFloorplanMap" alt="Makerspace Map">


<map name="<!--{$mapname|default:floorplan}-->">
<map name="SandboxFloorplanMap">
<!--{$areas}-->
<area shape="rect" coords="300,90,460,260" href="https://sandbox.umd.edu" title="Electronics">
</map>
<area shape="rect" coords="465,115,595,280" href="https://sandbox.umd.edu" title="Crafting">
<area shape="rect" coords="570,135,705,305" href="https://sandbox.umd.edu" title="Sewing">
<area shape="rect" coords="335,335,465,480" href="https://sandbox.umd.edu" title="Office">
<area shape="rect" coords="325,495,455,640" href="https://sandbox.umd.edu" title="Prototyping Laser Cutting">
<area shape="rect" coords="455,475,560,630" href="https://sandbox.umd.edu" title="Prototyping 3D Printing">
<area shape="rect" coords="405,705,535,855" href="https://sandbox.umd.edu" title="CNC"></map>
</includeonly>
</includeonly>

Revision as of 23:12, 13 October 2026

This widget maps coordinates cleanly without breaking standard wiki variables. Usage: Makerspace Map