5,675
edits
mNo edit summary |
(customizable background color...) |
||
Line 1: | Line 1: | ||
<includeonly><div class="mapIcon" style="position: absolute; left: {{#expr:{{{2|0}}}-{{{4|32}}}/2}}px; top: {{#expr:{{{3|0}}}-{{{4|32}}}/2}}px;">{{#if:{{{custom|}}}|{{{1|}}}|{{icon|{{{1|}}}||{{{4|32}}}px}}}}</div></includeonly><noinclude> | <includeonly><div class="mapIcon" style="position: absolute; left: {{#expr:{{{2|0}}}-{{{4|32}}}/2}}px; top: {{#expr:{{{3|0}}}-{{{4|32}}}/2}}px; {{#if:{{{bg|}}}|border-radius: 50%; background-color: {{{bg}}};}}">{{#if:{{{custom|}}}|{{{1|}}}|{{icon|{{{1|}}}||{{{4|32}}}px}}}}</div></includeonly><noinclude> | ||
==Info== | ==Info== | ||
Line 19: | Line 19: | ||
! 4 | ! 4 | ||
| No || 32 || Width || Width of the icon. | | No || 32 || Width || Width of the icon. | ||
|- | |||
! bg | |||
| No || || Background color || Specify a CSS background color such as <code>rgba(128,255,128,0.5)</code> to apply a circular highlight behind the icon. | |||
|- | |- | ||
! custom | ! custom | ||
Line 25: | Line 28: | ||
==Skeleton== | ==Skeleton== | ||
<pre>{{map icon | <icon> | <x> | <y> | <size> | custom = <custom?>}}</pre> | <pre>{{map icon | <icon> | <x> | <y> | <size> | bg = <bg?> | custom = <custom?>}}</pre> | ||
==Examples== | ==Examples== |