Difference between revisions of "Template:Locationmarker"

From geofiction
Jump to navigation Jump to search
m
m
Line 5: Line 5:
 
     left:{{#expr:{{Between|0|{{#titleparts:{{{1}}}|1|1}}|1}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}px;
 
     left:{{#expr:{{Between|0|{{#titleparts:{{{1}}}|1|1}}|1}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}px;
 
     top:{{#expr:{{Between|0|{{#titleparts:{{{1}}}|2|2}}|3}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}px;
 
     top:{{#expr:{{Between|0|{{#titleparts:{{{1}}}|2|2}}|3}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}px;
">[[File:Red pog.png|{{{size|10}}}px|link={{{link|}}}]]
+
">[[File:Red pog.png|{{{size|10}}}px|link={{{link|}}}]] {{#if:{{{link|}}}|[[{{{link|}}}|{{{text|}}}]]|{{{text|}}}}}
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 37: Line 37:
  
 
==Examples==
 
==Examples==
<pre>Some text in front of. {{Locationmap}} Some text behind.</pre>
+
<pre>{{Locationmarker|0.0/1.0}}</pre>
 
+
{{Locationmarker|0.0/1.0}}{{clear}}
 
 
{{Locationmarker|0.46/0.345}}
 
  
 +
<pre>{{Locationmarker|0.0/1.1}}</pre>
 +
{{Locationmarker|0.0/1.1|link=Main Page|text=Text}}{{clear}}
  
  
  
 
[[Category:Subtemplates]]</noinclude>
 
[[Category:Subtemplates]]</noinclude>

Revision as of 22:19, 14 September 2022

Purpose

Examples

{{Locationmarker|0.0/1.0}}
Red pog.png
{{Locationmarker|0.0/1.1}}
Red pog.png Text