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
Jump to navigation
Jump to search
Content deleted Content added
imported>Hardvice m = |
imported>Hardvice allow override |
||
| Line 1: | Line 1: | ||
<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: 25px; overflow: hidden;"> |
<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: 25px; overflow: hidden;"> |
||
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 35pt; overflow: hidden; width: 25px; height: 25px; line-height: 25px; z-index: 3; link-hover: none">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}} ]]|<span title="{{{link|Link}}}"> </span>}}</div> |
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 35pt; overflow: hidden; width: 25px; height: 25px; line-height: 25px; z-index: 3; link-hover: none">{{#ifexist:{{{link|}}}|[[{{{link}}}{{pipe}} ]]|<span title="{{{link|Link}}}"> </span>}}</div> |
||
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><center><span style="font-size:43px; color:black; text-decoration;none;">•</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;">•</span></center></div></div>{{#if:{{{label|}}}|<div style="position: absolute; top: {{{labeltop|-2}}}px; left: {{{labelleft|20}}}px; z-index: 2; background-color: white;">{{link|{{{link|}}}}}</div>}}</div><noinclude> |
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><center><span style="font-size:43px; color:black; text-decoration;none;">•</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;">•</span></center></div></div>{{#if:{{{label|}}}|<div style="position: absolute; top: {{{labeltop|-2}}}px; left: {{{labelleft|20}}}px; z-index: 2; background-color: white;">{{link|{{{link|}}}|text={{{override|}}}}}</div>}}</div><noinclude> |
||
==Usage== |
==Usage== |
||
Creates a colored dot which links to an article. For use on [[Template:Locationmap]]. |
Creates a colored dot which links to an article. For use on [[Template:Locationmap]]. |
||
| Line 12: | Line 12: | ||
| color= || Pushpin color || <code>Green</code>, <code>#CCC</code>, <code>#CCCCCC</code> |
| color= || Pushpin color || <code>Green</code>, <code>#CCC</code>, <code>#CCCCCC</code> |
||
|- |
|- |
||
| link= || Article name of location || <code>New York</code> |
| link= || Article name of location || <code>New York, NY</code> |
||
|- |
|- |
||
| left= || Left coordinate || <code>264</code> |
| left= || Left coordinate || <code>264</code> |
||
| Line 19: | Line 19: | ||
|- |
|- |
||
| label= || Labels the pushpin || anything |
| label= || Labels the pushpin || anything |
||
|- |
|||
| override= || Text override for label || <code>NYC</code> |
|||
|- |
|- |
||
| labeltop= || Top coordinate for label relative relative to pin (optional) || <code>10</code> |
| labeltop= || Top coordinate for label relative relative to pin (optional) || <code>10</code> |
||
Revision as of 06:09, 19 October 2007
Usage
Creates a colored dot which links to an article. For use on Template:Locationmap.
{{pushpin|color=|link=|left=|top=}}
| 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
|