Template:Map icon: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
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; border-radius: 50%; {{#if:{{{bg|}}}|background: {{{bg}}};}}"><div>{{#if:{{{custom|}}}|{{{1|}}}|{{icon|{{{1|}}}|3={{{4|32}}}px|v={{{v|}}}|l={{{l|{{{1|}}}}}}}}}}</div></div></includeonly><noinclude>
<includeonly><templatestyles src="Map icon/styles.css"/><div class="mapIcon" style="position: absolute; left: {{#expr:{{{2|0}}}-{{{4|32}}}/2}}px; top: {{#expr:{{{3|0}}}-{{{4|32}}}/2}}px; border-radius: 50%; {{#if:{{{bg|}}}|background: {{{bg}}};}}"><div>{{#if:{{{custom|}}}|{{{1|}}}|{{icon|{{{1|}}}|3={{{4|32}}}px|v={{{v|}}}|l={{{l|{{{1|}}}}}}}}}}</div></div></includeonly><noinclude>


==Info==
==Info==

Latest revision as of 16:24, September 30, 2021


Info

Places an icon on top of a map, for use with {{map}}.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Icon The name of the icon's subject. This will place the name in the {{icon}} template.
2 Yes 0 X X coordinate of the center of the icon.
3 Yes 0 Y Y coordinate of the center of the icon.
4 No 32 Width Width of the icon.
v No Version If there is more than one version of the subject, use this parameter to specify it. This is valid for icon filenames that follow the following pattern: "<subject> <version> icon.png".
l No Link If the link to the article is different from the icon's name, specify it here.
bg No Background A CSS background property to apply a circular highlight behind the icon.
custom No Custom icon If you don't want the icon on the first parameter to use {{icon}}, then use the first parameter to specify your custom icon (or text, or whatever you want), and give this parameter a value, like "y".

Skeleton

{{map icon | <icon> | <x> | <y> | <size> | bg = <background?> | custom = <custom?>}}

Examples

See: Template:Map#Examples