Template:Marker: Difference between revisions

From The Fifth City Wiki
align text to the left, give more padding.
Use FL-style map markers, hopefully
Line 4: Line 4:
         left: {{{x}}}%;
         left: {{{x}}}%;
         top: {{{y}}}%;
         top: {{{y}}}%;
        transform: translate(calc(-{{{width}}}/2)px, calc(-{{{height}}}/2)px);
         width: fit-content;
         width: fit-content;
     "
     "
     class = "hastooltip"
     class = "hastooltip"
><!--
><!--
  --><div style = "{{#if:{{{colour|}}}|border: 2px solid {{{colour}}};|}}">[[File:{{{icon}}}|{{{width}}}x{{{height}}}px|link=]]</div><!--
  --><div style = "justify-content: center;"><!--
    -->[[File:Border-fanciness-top.png]]<!--
    --><div style = "
            background-color: rgb(111, 133, 134);
            border: 1px solid #fff;
            border-radius: 4px;
            box-shadow: 0px 0px 5px 0px rgb(111, 133, 134);
        ">{{{name|Unnamed Marker}}}</div><!--
    -->[[File:Border-fanciness-bottom.png]]<!--
--></div><!--
  --><div class = "tooltip" style = "width: 30vw; transform: translateX(-15vw); transform: translateX(calc({{{width}}}/2)px); text-align: left; padding: 10px;">
  --><div class = "tooltip" style = "width: 30vw; transform: translateX(-15vw); transform: translateX(calc({{{width}}}/2)px); text-align: left; padding: 10px;">

Revision as of 02:30, 23 June 2025

Unnamed Marker