Editing Template:Marker
From The Fifth City Wiki
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
/* Move marker on map */ | /* Move marker on map */ | ||
position: absolute; | position: absolute; | ||
transform: translate | transform: translate({{{x|0}}}%, {{{y|0}}}%); | ||
/* Transformation percentages take into account | /* Transformation percentages take into account | ||
Line 13: | Line 13: | ||
a percentage of the parent element's size, | a percentage of the parent element's size, | ||
this element must have the same size. */ | this element must have the same size. */ | ||
width: | width: 100%; | ||
height: | height: 100%; | ||
" | " | ||
class = "frontOnChildHover" | class = "frontOnChildHover" | ||
Line 31: | Line 31: | ||
Marker top flair | Marker top flair | ||
-->{{#switch:{{{flair|fallenlondon}}} | -->{{#switch:{{{flair|fallenlondon}}} | ||
|fallenlondon = <div style = " | |||
image-rendering: pixelated; | |||
/* Move flair down a tad */ | |||
position: relative; | |||
top: 3px; | |||
/* Center it */ | |||
width: fit-content; | |||
margin-left: auto; | |||
margin-right: auto; | |||
">[[File:Border-fanciness-top.png|link=]]</div> | |||
| }}<!-- | | }}<!-- | ||
Line 64: | Line 63: | ||
Marker bottom flair | Marker bottom flair | ||
-->{{#switch:{{{flair|fallenlondon}}} | -->{{#switch:{{{flair|fallenlondon}}} | ||
|fallenlondon = <div style = " | |||
image-rendering: pixelated; | |||
/* Move flair up a tad */ | |||
position: relative; | |||
bottom: 7px; | |||
/* Center it */ | |||
width: fit-content; | |||
margin-left: auto; | |||
margin-right: auto; | |||
">[[File:Border-fanciness-bottom.png|link=]]</div> | |||
| }}<!-- | | }}<!-- | ||
Tooltip | Tooltip | ||
--><div class = "tooltip" style = " | --><div class = "tooltip" style = " | ||
{{#if:{{{1| | {{#if:{{{1|}}}||display: none;}} <!-- Hide tooltip if it has no contents --> | ||
width: 25cqw; | |||
transform: | transform: | ||
translate(calc(-16.66cqw * {{{scale|0.75}}}), calc(-200% * (0.85 - {{{scale|0.75}}}))) | translate(calc(-16.66cqw * {{{scale|0.75}}}), calc(-200% * (0.85 - {{{scale|0.75}}}))) | ||
Line 98: | Line 90: | ||
"><!-- | "><!-- | ||
-->{{#if:{{{header|}}}|[[File:{{{header|}}}]]}}<!-- | -->{{#if:{{{header|}}}|[[File:{{{header|}}}]]}}<!-- | ||
-->{{#if:{{{image|}}}| | -->{{#if:{{{image|}}}|[[File:{{{image|}}}|right]]}}<!-- | ||
-->{{{1 | -->{{{1}}}<!-- | ||
--></div><!-- | --></div><!-- | ||
--></div> | --></div> |