Template:Marker: Difference between revisions

From The Fifth City Wiki
create map marker start template
resize tooltip, make image have border if needed
Line 4: Line 4:
         left: {{{x}}}%;
         left: {{{x}}}%;
         top: {{{y}}}%;
         top: {{{y}}}%;
         transform: translate(calc(-{{{width}}}px/2), calc(-{{{height}}}px/2));
         transform: translate(calc(-{{{width}}}/2)px, calc(-{{{height}}}/2)px);
         width: fit-content;
         width: fit-content;
     "
     "
     class = "hastooltip"
     class = "hastooltip"
><!--
><!--
  -->[[File:{{{icon}}}|{{{width}}}x{{{height}}}px|link=]]<!--
  --><div style = "{{#if:{{{colour|}}}|border: 2px solid {{{colour}}};|}}">[[File:{{{icon}}}|{{{width}}}x{{{height}}}px|link=]]</div><!--
  --><div class = "tooltip">
  --><div class = "tooltip" style = "width: 30vw; transform: translateX(-15vw); transform: translateX(calc({{{width}}}/2)px)">

Revision as of 19:49, 22 June 2025

[[File:{{{icon}}}|{{{width}}}x{{{height}}}px|link=]]