Difference between revisions of "Template:MapArea/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Created page with "{{Doc/start}} This template partially replicates the function of the imagemap plugin, but only uses mediawiki templates instead of html image tag. This template is used togeth...")
 
old>Realpsojed
(modified description)
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
This template partially replicates the function of the imagemap plugin, but only uses mediawiki templates instead of html image tag. This template is used together with [[Template:ImageMap]] and creates the individual areas of the image to produce clickable links that also display tooltips on hover (unlike the plugin where this doesn't work). This template is also used by the [[Template:Skill_list]] to create a row of Enemy NPC skills.
This template partially replicates the function of the imagemap plugin. It uses div links with absolute position over the images instead of the html image tag. This template is used together with [[Template:ImageMap]] and creates the individual areas of the image to produce clickable links.
These were created to display link tooltips on hover (those don't work with html image tags). This template is also used by the [[Template:Skill_list]] to create a row of Enemy NPC skills.


  <nowiki>
  <nowiki>

Revision as of 12:45, 8 October 2020

Template-info.png Documentation

This template partially replicates the function of the imagemap plugin. It uses div links with absolute position over the images instead of the html image tag. This template is used together with Template:ImageMap and creates the individual areas of the image to produce clickable links. These were created to display link tooltips on hover (those don't work with html image tags). This template is also used by the Template:Skill_list to create a row of Enemy NPC skills.

{{MapArea|skill_name|left|top|width|height(=width if not specified)|border(not required)}}

Example usage from Swords (skill tree)

{{MapArea|Blade Maintenance|39|63|62}}
{{MapArea|Honed Edge|39|162|62}}
{{MapArea|Fencer's Stance|39|392|62}}
{{MapArea|Cleaving Strike|138|63|62}}
{{MapArea|Onrush|138|253|62}}
{{MapArea|Endurance Training|138|392|62}}
{{MapArea|Keeping Distance|237|136|62}}
{{MapArea|Gloat|237|324|62}}

In both cases, an encasing div is provided by the senior template. Using this template without an encasing div would break the flow of the page.