Template:Numbermap: Difference between revisions

From OpenGeofiction
(test: size and anchor position)
(Adding instructions)
 
Line 1: Line 1:
{| class="wikitable" width="100%"
<includeonly>{| class="wikitable" width="100%"
|+{{{caption}}}
|+{{{caption}}}
| width="60%" | {{#multimaps:
| width="60%" | {{#multimaps:
Line 44: Line 44:
{{#if:{{{name19|}}}|<br />[[File:Nim19.svg|link=]] &mdash; {{{name19}}}|}}
{{#if:{{{name19|}}}|<br />[[File:Nim19.svg|link=]] &mdash; {{{name19}}}|}}
|-
|-
|}
|}</includeonly><noinclude>
This template is designed as an easy enumerated multimap to highlight and pinpoint features of your territory. The syntax of this template is as follows:
<pre>
{{numbermap
|caption=
|lat=    (required)
|long=    (required)
|height=  (customizable size in pixels; default is 500 if left blank)
|z=      (map zoom level; required)
|min=    (minimum zoom level)
|max=    (maximum zoom level)
|loc1=    (first location, using latitude and longitude in this format with comma separation: 98.7654,-12.3456)
|name1=  (name of first location; can be used with {{node}}, {{way}}, and {{relation}} templates)
|loc2=    (second location, using latitude and longitude in this format with comma separation: 98.7654,-12.3456)
|name2=  (name of second location; can be used with {{node}}, {{way}}, and {{relation}} templates)
[...]
|loc19=
|name19=  (can presently support up to 19 locations on a single map)
}}
</pre>
 
==Example==
<pre>
{{numbermap
|caption=Oceanography of Mauretia's Western Coast
|lat=26.8
|long=43.3
|height=600
|z=7
|min=3
|max=13
|loc1=29.0812,43.9081
|name1=Asmina Estuary, Port of Salda
|loc2=28.8393,43.7723
|name2=Kabyei Sea
|loc3=28.5231,43.8649
|name3=Istannu Nehus
|loc4=28.4886,43.8422
|name4=Istannu Bokraye
|loc5=28.0655,43.5155
|name5=Abaya Aqila
|loc6=28.0306,43.4715
|name6=Abaya ad-Oburri
|loc7=27.9294,43.2851
|name7=Abaya Ziema
|loc8=27.7596,43.2981
|name8=Istannu Zette
|loc9=27.6693,43.3142
|name9=Anepta Estuary, Port of Iola
|loc10=27.3962,43.3605
|name10=Abaya Lari
|loc11=27.2557,43.3799
|name11=Abaya al-Tenya
|loc12=26.6647,43.4550
|name12=Sinu Barizadoro
|loc13=26.5002,43.3280
|name13=Sinu Unqata
|loc14=26.0367,43.1291
|name14=Sinu Siga, Mouth of Fluva Siga
|loc15=25.7087,43.1818
|name15=Gypsum Coast
|loc16=25.6249,43.2987
|name16=Petyu Estuary
|loc17=25.2948,43.4647
|name17=Surora Estuary
}}
</pre>
{{numbermap
|caption=Oceanography of Mauretia's Western Coast
|lat=26.8
|long=43.3
|height=600
|z=7
|min=3
|max=13
|loc1=29.0812,43.9081
|name1=Asmina Estuary, Port of Salda
|loc2=28.8393,43.7723
|name2=Kabyei Sea
|loc3=28.5231,43.8649
|name3=Istannu Nehus
|loc4=28.4886,43.8422
|name4=Istannu Bokraye
|loc5=28.0655,43.5155
|name5=Abaya Aqila
|loc6=28.0306,43.4715
|name6=Abaya ad-Oburri
|loc7=27.9294,43.2851
|name7=Abaya Ziema
|loc8=27.7596,43.2981
|name8=Istannu Zette
|loc9=27.6693,43.3142
|name9=Anepta Estuary, Port of Iola
|loc10=27.3962,43.3605
|name10=Abaya Lari
|loc11=27.2557,43.3799
|name11=Abaya al-Tenya
|loc12=26.6647,43.4550
|name12=Sinu Barizadoro
|loc13=26.5002,43.3280
|name13=Sinu Unqata
|loc14=26.0367,43.1291
|name14=Sinu Siga, Mouth of Fluva Siga
|loc15=25.7087,43.1818
|name15=Gypsum Coast
|loc16=25.6249,43.2987
|name16=Petyu Estuary
|loc17=25.2948,43.4647
|name17=Surora Estuary
}}
 
[[Category:Multimap templates]]

Latest revision as of 20:14, 16 November 2022

This template is designed as an easy enumerated multimap to highlight and pinpoint features of your territory. The syntax of this template is as follows:

{{numbermap
|caption=
|lat=     (required)
|long=    (required)
|height=  (customizable size in pixels; default is 500 if left blank)
|z=       (map zoom level; required)
|min=     (minimum zoom level)
|max=     (maximum zoom level)
|loc1=    (first location, using latitude and longitude in this format with comma separation: 98.7654,-12.3456)
|name1=   (name of first location; can be used with {{node}}, {{way}}, and {{relation}} templates)
|loc2=    (second location, using latitude and longitude in this format with comma separation: 98.7654,-12.3456)
|name2=   (name of second location; can be used with {{node}}, {{way}}, and {{relation}} templates)
[...]
|loc19=
|name19=  (can presently support up to 19 locations on a single map)
}}

Example

{{numbermap
|caption=Oceanography of Mauretia's Western Coast
|lat=26.8
|long=43.3
|height=600
|z=7
|min=3
|max=13
|loc1=29.0812,43.9081
|name1=Asmina Estuary, Port of Salda
|loc2=28.8393,43.7723
|name2=Kabyei Sea
|loc3=28.5231,43.8649
|name3=Istannu Nehus
|loc4=28.4886,43.8422
|name4=Istannu Bokraye
|loc5=28.0655,43.5155
|name5=Abaya Aqila
|loc6=28.0306,43.4715
|name6=Abaya ad-Oburri
|loc7=27.9294,43.2851
|name7=Abaya Ziema
|loc8=27.7596,43.2981
|name8=Istannu Zette
|loc9=27.6693,43.3142
|name9=Anepta Estuary, Port of Iola
|loc10=27.3962,43.3605
|name10=Abaya Lari
|loc11=27.2557,43.3799
|name11=Abaya al-Tenya
|loc12=26.6647,43.4550
|name12=Sinu Barizadoro
|loc13=26.5002,43.3280
|name13=Sinu Unqata
|loc14=26.0367,43.1291
|name14=Sinu Siga, Mouth of Fluva Siga
|loc15=25.7087,43.1818
|name15=Gypsum Coast
|loc16=25.6249,43.2987
|name16=Petyu Estuary
|loc17=25.2948,43.4647
|name17=Surora Estuary
}}
Oceanography of Mauretia's Western Coast

Loading map...

Map legend

Nim01.svg — Asmina Estuary, Port of Salda
Nim02.svg — Kabyei Sea
Nim03.svg — Istannu Nehus
Nim04.svg — Istannu Bokraye
Nim05.svg — Abaya Aqila
Nim06.svg — Abaya ad-Oburri
Nim07.svg — Abaya Ziema
Nim08.svg — Istannu Zette
Nim09.svg — Anepta Estuary, Port of Iola
Nim10.svg — Abaya Lari
Nim11.svg — Abaya al-Tenya
Nim12.svg — Sinu Barizadoro
Nim13.svg — Sinu Unqata
Nim14.svg — Sinu Siga, Mouth of Fluva Siga
Nim15.svg — Gypsum Coast
Nim16.svg — Petyu Estuary
Nim17.svg — Surora Estuary