Difference between revisions of "Template:Locationmarker"

From geofiction
Jump to navigation Jump to search
(Created page with "<includeonly>{{#titleparts:{{{1}}}|1|1}}| |_}} }}...{{#titleparts:{{{1}}}|2|2}} <div style=" position:absolute; float:left; left:{{#expr:-10-5+5}}px; top:{...")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#titleparts:{{{1}}}|1|1}}| |_}} }}...{{#titleparts:{{{1}}}|2|2}}
+
<includeonly>{{#if:{{Isnumber|{{#titleparts:{{{1}}}|1|1}}}}|
 
<div style="
 
<div style="
 
     position:absolute;
 
     position:absolute;
 
     float:left;
 
     float:left;
     left:{{#expr:-10-5+5}}px;
+
     left:{{#expr:{{Between|0|{{#titleparts:{{{1}}}|1|1}}|1}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}px;
     top:{{#expr:150-5+5}}px;
+
     top:{{#expr:{{Between|0|{{#titleparts:{{{1}}}|2|2}}|3}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}px;
">[[File:Red pog.png|10px|link=Main Page]]
+
">[[File:Red pog.png|{{{size|10}}}px|link={{{link|}}}]] {{#if:{{{text|}}}|{{#if:{{{link|}}}|[[{{{link|}}}|{{{text|}}}]]|{{{text|}}}}}}}
</div></includeonly><noinclude><!--
+
</div>
 +
}}<!--
 +
 
 +
 
 +
{{#expr:{{Between|0|{{#titleparts:{{{1}}}|1|1}}|1}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}
 +
{{#expr:{{Between|0|{{#titleparts:{{{1}}}|2|2}}|3}}*{{{width|300}}}-{{{size|10}}}/2+5 round 0}}
 +
{{Between|0|{{#expr:{{#titleparts:{{{1}}}|2|2}}*{{{width|300}}}-{{{size|10}}}/2+5}}|3}}
 +
{{Between|0|{{#expr:{{#titleparts:{{{1}}}|1|1}} round 0}}|1}}
 +
{{Between|0|{{#expr:{{#titleparts:{{{1}}}|2|2}} round 0}}|3}}
 +
{{#titleparts:{{{1}}}|1|1}}
 +
{{#titleparts:{{{1}}}|2|2}}
 +
{{Between|0|{{#expr:{{#titleparts:{{{1}}}|1|1}} round 0}}|1}}
 +
{{Between|0|{{#expr:{{#titleparts:{{{1}}}|2|2}} round 0}}|3}}
 +
 
 +
 
 +
--></includeonly><noinclude><!--
 
     ____                                              __          __  _             
 
     ____                                              __          __  _             
 
   / __ \ ____  _____ __  __ ____ ___  ___  ____  / /_ ____ _ / /_ (_)____  ____  
 
   / __ \ ____  _____ __  __ ____ ___  ___  ____  / /_ ____ _ / /_ (_)____  ____  
Line 17: Line 32:
  
 
==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|3/5}}}
 
  
 +
<pre>{{Locationmarker|0.0/1.1}}</pre>
 +
{{Locationmarker|0.0/1.1|link=Main Page|text=Text}}{{clear}}
  
  
  
 
[[Category:Subtemplates]]</noinclude>
 
[[Category:Subtemplates]]</noinclude>

Latest revision as of 22:45, 14 September 2022

Purpose

Examples

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