This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Pushpin: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
imported>Hardvice
(widen)
imported>Hardvice
(adjust font -- bad bottom overflow)
Line 1: Line 1:
<includeonly><div style="background-color: transparent; position: absolute; left: {{{left|0}}}px; top: {{{top|0}}}px;z-index: 3;"><div style="position: relative; height: 25px; width: 30px; overflow: hidden;">
<includeonly><div style="background-color: transparent; position: absolute; left: {{{left|0}}}px; top: {{{top|0}}}px;z-index: 3;"><div style="position: relative; height: 25px; width: 30px; overflow: hidden;">
<div align="center" style="position: absolute; top: 0px; left: -10px; font-size: 25pt; overflow: hidden; width: 30px; height: 25px; line-height: 25px; z-index: 3; link-hover: none">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}}&nbsp;]]|<span title="{{{link|Link}}}">&nbsp;</span>}}</div>
<div align="center" style="position: absolute; top: 0px; left: -10px; font-size: 25px; overflow: hidden; width: 30px; height: 25px; line-height: 25px; z-index: 3; link-hover: none">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}}&nbsp;]]|<span title="{{{link|Link}}}">&nbsp;</span>}}</div>
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><center><span style="font-size:43px; color:black; text-decoration;none;">&bull;</span></center></div><div style="position: absolute; top: 0px; left: 1px; z-index: 2"><center><span style="font-size:38px; color:{{{color|red}}}; text-decoration;none;">&bull;</span></center></div></div>{{#if:{{{label|}}}|<div style="position: absolute; top: {{{labeltop|-2}}}px; left: {{{labelleft|20}}}px; width: {{{labelwidth|auto}}}; z-index: 2; background-color: white;">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}}{{{override|{{{link}}}}}}]]|{{{override|{{{link}}}}}}}}</div>}}</div></includeonly><noinclude>
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><center><span style="font-size:43px; color:black; text-decoration;none;">&bull;</span></center></div><div style="position: absolute; top: 0px; left: 1px; z-index: 2"><center><span style="font-size:38px; color:{{{color|red}}}; text-decoration;none;">&bull;</span></center></div></div>{{#if:{{{label|}}}|<div style="position: absolute; top: {{{labeltop|-2}}}px; left: {{{labelleft|20}}}px; width: {{{labelwidth|auto}}}; z-index: 2; background-color: white;">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}}{{{override|{{{link}}}}}}]]|{{{override|{{{link}}}}}}}}</div>}}</div></includeonly><noinclude>
==Example==
==Example==

Revision as of 03:35, 17 November 2007

Example

 
This is a label
 

{{pushpin | color=red | link=This is a pushpin | left=40 | top=40 | label=y | override=This is a label | labelwidth=85px}}

{{pushpin | color=lime | link=Louisiana | left=120 | top=120 | label=y | override=This one links to Louisiana | labelleft=-60 | labelwidth=60px}}

{{pushpin | color=fuchsia | link=This one has no label and no link | left=180 | top=180}}

{{pushpin | color=cyan | link=Claire Bennet | left=180 | top=30}}

{{pushpin | color=yellow | link=Claire Bennet | left=10 | top=70 | label=y}}


Usage

Creates a colored dot which links to an article. For use on Template:Locationmap.

{{pushpin|color=|link=|left=|top=|label=|override=|labeltop=|labelleft=}}
Option Purpose Example
color= Pushpin color Green, #CCC, #CCCCCC
link= Article name of location New York, NY
left= Left coordinate 264
top= Top coordinate 210
label= OPTIONAL Labels the pushpin anything
override= OPTIONAL Text override for label NYC
labeltop= OPTIONAL Top coordinate for label relative to pin 10
labelleft= OPTIONAL Left coordinate for label relative to pin 10
labelwidth= OPTIONAL Force width of label 100px