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
Content deleted Content added
imported>Hardvice
+example
imported>Hardvice
adjust example
Line 3: Line 3:
<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; 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; z-index: 2; background-color: white;">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}}{{{override|{{{link}}}}}}]]|{{{override|{{{link}}}}}}}}</div>}}</div></includeonly><noinclude>
==Example==
==Example==
<div style="border: thin black solid; height:200px; width:200px;">
<div style="border: thin black solid; height:200px; width:200px; position: relative;">
{{pushpin|color=red|link=This is a pushpin|left=80|top=80|label=y|override=This is a label|labeltop=|labelleft=}}
{{pushpin|color=red|link=This is a pushpin|left=80|top=80|label=y|override=This is a label|labeltop=|labelleft=}}
</div>
</div>

Revision as of 06:39, 19 October 2007

Example

 
This is a label

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= Labels the pushpin anything
override= Text override for label NYC
labeltop= Top coordinate for label relative relative to pin (optional) 10
labelleft= Left coordinate for label relative relative to pin (optional) 10