Difference between revisions of "Template:Locationmap"

From geofiction
Jump to navigation Jump to search
m
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
     position:relative;
 
     position:relative;
 
>[[File:{{{map}}}|{{{width|300}}}px|thumb|link=|{{{caption|}}}]]
 
>[[File:{{{map}}}|{{{width|300}}}px|thumb|link=|{{{caption|}}}]]
<!-- marker -->
+
<!-- marker with text -->
{{#if:{{{m1|}}}|{{Locationmarker|{{{m1}}}|{{{width|300}}}}}}}
+
{{#if:{{{m1|}}}|{{Locationmarker|{{{m1}}}|width={{{width|300}}}|text={{{t1|}}}|link={{{l1|}}}}}}}
{{#if:{{{m2|}}}|{{Locationmarker|{{{m2}}}|{{{width|300}}}}}}}
+
{{#if:{{{m2|}}}|{{Locationmarker|{{{m2}}}|width={{{width|300}}}|text={{{t2|}}}|link={{{l2|}}}}}}}
{{#if:{{{m3|}}}|{{Locationmarker|{{{m3}}}|{{{width|300}}}}}}}
+
{{#if:{{{m3|}}}|{{Locationmarker|{{{m3}}}|width={{{width|300}}}|text={{{t3|}}}|link={{{l3|}}}}}}}
{{#if:{{{m4|}}}|{{Locationmarker|{{{m4}}}|{{{width|300}}}}}}}
+
{{#if:{{{m4|}}}|{{Locationmarker|{{{m4}}}|width={{{width|300}}}|text={{{t4|}}}|link={{{l4|}}}}}}}
{{#if:{{{m5|}}}|{{Locationmarker|{{{m5}}}|{{{width|300}}}}}}}
+
{{#if:{{{m5|}}}|{{Locationmarker|{{{m5}}}|width={{{width|300}}}|text={{{t5|}}}|link={{{l5|}}}}}}}
{{#if:{{{m6|}}}|{{Locationmarker|{{{m6}}}|{{{width|300}}}}}}}
+
{{#if:{{{m6|}}}|{{Locationmarker|{{{m6}}}|width={{{width|300}}}|text={{{t6|}}}|link={{{l6|}}}}}}}
{{#if:{{{m7|}}}|{{Locationmarker|{{{m7}}}|{{{width|300}}}}}}}
+
{{#if:{{{m7|}}}|{{Locationmarker|{{{m7}}}|width={{{width|300}}}|text={{{t7|}}}|link={{{l7|}}}}}}}
{{#if:{{{m8|}}}|{{Locationmarker|{{{m8}}}|{{{width|300}}}}}}}
+
{{#if:{{{m8|}}}|{{Locationmarker|{{{m8}}}|width={{{width|300}}}|text={{{t8|}}}|link={{{l8|}}}}}}}
{{#if:{{{m9|}}}|{{Locationmarker|{{{m9}}}|{{{width|300}}}}}}}
+
{{#if:{{{m9|}}}|{{Locationmarker|{{{m9}}}|width={{{width|300}}}|text={{{t9|}}}|link={{{l9|}}}}}}}
{{#if:{{{m10|}}}|{{Locationmarker|{{{m10}}}|{{{width|300}}}}}}}
+
{{#if:{{{m10|}}}|{{Locationmarker|{{{m10}}}|width={{{width|300}}}|text={{{t10|}}}|link={{{l10|}}}}}}}
<!-- label -->
 
<!-- label -->
 
 
</div>}}</includeonly><noinclude><!--
 
</div>}}</includeonly><noinclude><!--
 
     ____                                              __          __  _             
 
     ____                                              __          __  _             
Line 38: Line 36:
 
|m3=0.3/0.1
 
|m3=0.3/0.1
 
|m4=0.3/0.15
 
|m4=0.3/0.15
 +
|t4=Town
 
|m5=0.7/0.7
 
|m5=0.7/0.7
 +
|l5=Darcodia
 
|m6=0.6/0.6
 
|m6=0.6/0.6
 
|m7=0.4/0.4
 
|m7=0.4/0.4
 
|m8=0.3/0.3
 
|m8=0.3/0.3
|m9=0.3/0.31
+
|m9=0.3/0.35
 +
|t9=City
 +
|l9=Mergania
 
|m10=0.2/0.2
 
|m10=0.2/0.2
 +
|t10=Text
 +
|l10=Main Page
 
}}</pre>
 
}}</pre>
 
{{Locationmap|map=Relief_Map_of_Germany.svg|caption=Some text here
 
{{Locationmap|map=Relief_Map_of_Germany.svg|caption=Some text here
Line 50: Line 54:
 
|m3=0.3/0.1
 
|m3=0.3/0.1
 
|m4=0.3/0.15
 
|m4=0.3/0.15
 +
|t4=Town
 
|m5=0.7/0.7
 
|m5=0.7/0.7
 +
|l5=Darcodia
 
|m6=0.6/0.6
 
|m6=0.6/0.6
 
|m7=0.4/0.4
 
|m7=0.4/0.4
 
|m8=0.3/0.3
 
|m8=0.3/0.3
|m9=0.3/0.31
+
|m9=0.3/0.35
 +
|t9=City
 +
|l9=Mergania
 
|m10=0.2/0.2
 
|m10=0.2/0.2
 +
|t10=Text
 +
|l10=Main Page
 
}}
 
}}
  
 
[[Category:Map templates]]</noinclude>
 
[[Category:Map templates]]</noinclude>

Latest revision as of 22:32, 14 September 2022

Purpose

The location map template generates a location map as a composite image, consisting of a map and one or several location marks. Optionally, labels and a caption can be added.

Examples

Some text in front of. {{Locationmap}} Some text behind.

Some text in front of. Some text behind.

Some text in front of. {{Locationmap|map=Relief_Map_of_Germany.svg|caption=Some text here}} Some text behind.

Some text in front of.

Some text behind.

{{Locationmap|map=Relief_Map_of_Germany.svg|caption=Some text here
|m1=0.1/1.1
|m2=0.5/0.5
|m3=0.3/0.1
|m4=0.3/0.15
|t4=Town
|m5=0.7/0.7
|l5=Darcodia
|m6=0.6/0.6
|m7=0.4/0.4
|m8=0.3/0.3
|m9=0.3/0.35
|t9=City
|l9=Mergania
|m10=0.2/0.2
|t10=Text
|l10=Main Page
}}