Difference between revisions of "Template:Numbermap"

From OpenGeofiction
Jump to navigation Jump to search
(Testing)
 
(Adding instructions)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="wikitable"
+
<includeonly>{| class="wikitable" width="100%"
 
|+{{{caption}}}
 
|+{{{caption}}}
|
+
| width="60%" | {{#multimaps:
{{#multimaps:
+
| center = {{{lat}}},{{{long}}} | width = 100% | height = {{{height|500}}}px | zoom = {{{z|5}}} | minzoom = {{{min|2}}} | maxzoom = {{{max|19}}}  
| center = {{{lat}}},{{{long}}} | width = 50% | height = {{{height}}}px | zoom = {{{z}}} | minzoom = {{{min}}} | maxzoom = {{{max}}}
+
| {{#if:{{{loc1|}}}| marker = {{{loc1}}} ~{{{name1}}} ~ ~Nim01.svg:25,25:12,12 |}}
{{#if:{{{loc1|}}}| {{!}} marker = {{{loc1}}} ~{{{name1}}} ~ ~Nim01.svg |}}
+
| {{#if:{{{loc2|}}}| marker = {{{loc2}}} ~{{{name2}}} ~ ~Nim02.svg:25,25:12,12 |}}
{{#if:{{{loc2|}}}| {{!}} marker = {{{loc2}}} ~{{{name2}}} ~ ~Nim02.svg |}}
+
| {{#if:{{{loc3|}}}| marker = {{{loc3}}} ~{{{name3}}} ~ ~Nim03.svg:25,25:12,12 |}}
{{#if:{{{loc3|}}}| {{!}} marker = {{{loc3}}} ~{{{name3}}} ~ ~Nim03.svg |}}
+
| {{#if:{{{loc4|}}}| marker = {{{loc4}}} ~{{{name4}}} ~ ~Nim04.svg:25,25:12,12 |}}
{{#if:{{{loc4|}}}| {{!}} marker = {{{loc4}}} ~{{{name4}}} ~ ~Nim04.svg |}}
+
| {{#if:{{{loc5|}}}| marker = {{{loc5}}} ~{{{name5}}} ~ ~Nim05.svg:25,25:12,12 |}}
{{#if:{{{loc5|}}}| {{!}} marker = {{{loc5}}} ~{{{name5}}} ~ ~Nim05.svg |}}
+
| {{#if:{{{loc6|}}}| marker = {{{loc6}}} ~{{{name6}}} ~ ~Nim06.svg:25,25:12,12 |}}
{{#if:{{{loc6|}}}| {{!}} marker = {{{loc6}}} ~{{{name6}}} ~ ~Nim06.svg |}}
+
| {{#if:{{{loc7|}}}| marker = {{{loc7}}} ~{{{name7}}} ~ ~Nim07.svg:25,25:12,12 |}}
{{#if:{{{loc7|}}}| {{!}} marker = {{{loc7}}} ~{{{name7}}} ~ ~Nim07.svg |}}
+
| {{#if:{{{loc8|}}}| marker = {{{loc8}}} ~{{{name8}}} ~ ~Nim08.svg:25,25:12,12 |}}
{{#if:{{{loc8|}}}| {{!}} marker = {{{loc8}}} ~{{{name8}}} ~ ~Nim08.svg |}}
+
| {{#if:{{{loc9|}}}| marker = {{{loc9}}} ~{{{name9}}} ~ ~Nim09.svg:25,25:12,12 |}}
{{#if:{{{loc9|}}}| {{!}} marker = {{{loc9}}} ~{{{name9}}} ~ ~Nim09.svg |}}
+
| {{#if:{{{loc10|}}}| marker = {{{loc10}}} ~{{{name10}}} ~ ~Nim10.svg:25,25:12,12 |}}
{{#if:{{{loc10|}}}| {{!}} marker = {{{loc10}}} ~{{{name10}}} ~ ~Nim10.svg |}}
+
| {{#if:{{{loc11|}}}| marker = {{{loc11}}} ~{{{name11}}} ~ ~Nim11.svg:25,25:12,12 |}}
{{#if:{{{loc11|}}}| {{!}} marker = {{{loc11}}} ~{{{name11}}} ~ ~Nim11.svg |}}
+
| {{#if:{{{loc12|}}}| marker = {{{loc12}}} ~{{{name12}}} ~ ~Nim12.svg:25,25:12,12 |}}
{{#if:{{{loc12|}}}| {{!}} marker = {{{loc12}}} ~{{{name12}}} ~ ~Nim12.svg |}}
+
| {{#if:{{{loc13|}}}| marker = {{{loc13}}} ~{{{name13}}} ~ ~Nim13.svg:25,25:12,12 |}}
{{#if:{{{loc13|}}}| {{!}} marker = {{{loc13}}} ~{{{name13}}} ~ ~Nim13.svg |}}
+
| {{#if:{{{loc14|}}}| marker = {{{loc14}}} ~{{{name14}}} ~ ~Nim14.svg:25,25:12,12 |}}
{{#if:{{{loc14|}}}| {{!}} marker = {{{loc14}}} ~{{{name14}}} ~ ~Nim14.svg |}}
+
| {{#if:{{{loc15|}}}| marker = {{{loc15}}} ~{{{name15}}} ~ ~Nim15.svg:25,25:12,12 |}}
{{#if:{{{loc15|}}}| {{!}} marker = {{{loc15}}} ~{{{name15}}} ~ ~Nim15.svg |}}
+
| {{#if:{{{loc16|}}}| marker = {{{loc16}}} ~{{{name16}}} ~ ~Nim16.svg:25,25:12,12 |}}
{{#if:{{{loc16|}}}| {{!}} marker = {{{loc16}}} ~{{{name16}}} ~ ~Nim16.svg |}}
+
| {{#if:{{{loc17|}}}| marker = {{{loc17}}} ~{{{name17}}} ~ ~Nim17.svg:25,25:12,12 |}}
{{#if:{{{loc17|}}}| {{!}} marker = {{{loc17}}} ~{{{name17}}} ~ ~Nim17.svg |}}
+
| {{#if:{{{loc18|}}}| marker = {{{loc18}}} ~{{{name18}}} ~ ~Nim18.svg:25,25:12,12 |}}
{{#if:{{{loc18|}}}| {{!}} marker = {{{loc18}}} ~{{{name18}}} ~ ~Nim18.svg |}}
+
| {{#if:{{{loc19|}}}| marker = {{{loc19}}} ~{{{name19}}} ~ ~Nim19.svg:25,25:12,12 |}}
{{#if:{{{loc19|}}}| {{!}} marker = {{{loc19}}} ~{{{name19}}} ~ ~Nim19.svg |}}
 
 
}}
 
}}
 
|'''Map legend'''
 
|'''Map legend'''
{{#if:{{{name1|}}}|[[File:Nim01.svg]] &mdash; {{{name1}}}|}}
+
{{#if:{{{name1|}}}|[[File:Nim01.svg|link=]] &mdash; {{{name1}}}|}}
{{#if:{{{name2|}}}|[[File:Nim02.svg]] &mdash; {{{name2}}}|}}
+
{{#if:{{{name2|}}}|<br />[[File:Nim02.svg|link=]] &mdash; {{{name2}}}|}}
{{#if:{{{name3|}}}|[[File:Nim03.svg]] &mdash; {{{name3}}}|}}
+
{{#if:{{{name3|}}}|<br />[[File:Nim03.svg|link=]] &mdash; {{{name3}}}|}}
{{#if:{{{name4|}}}|[[File:Nim04.svg]] &mdash; {{{name4}}}|}}
+
{{#if:{{{name4|}}}|<br />[[File:Nim04.svg|link=]] &mdash; {{{name4}}}|}}
{{#if:{{{name5|}}}|[[File:Nim05.svg]] &mdash; {{{name5}}}|}}
+
{{#if:{{{name5|}}}|<br />[[File:Nim05.svg|link=]] &mdash; {{{name5}}}|}}
{{#if:{{{name6|}}}|[[File:Nim06.svg]] &mdash; {{{name6}}}|}}
+
{{#if:{{{name6|}}}|<br />[[File:Nim06.svg|link=]] &mdash; {{{name6}}}|}}
{{#if:{{{name7|}}}|[[File:Nim07.svg]] &mdash; {{{name7}}}|}}
+
{{#if:{{{name7|}}}|<br />[[File:Nim07.svg|link=]] &mdash; {{{name7}}}|}}
{{#if:{{{name8|}}}|[[File:Nim08.svg]] &mdash; {{{name8}}}|}}
+
{{#if:{{{name8|}}}|<br />[[File:Nim08.svg|link=]] &mdash; {{{name8}}}|}}
{{#if:{{{name9|}}}|[[File:Nim09.svg]] &mdash; {{{name9}}}|}}
+
{{#if:{{{name9|}}}|<br />[[File:Nim09.svg|link=]] &mdash; {{{name9}}}|}}
{{#if:{{{name10|}}}|[[File:Nim10.svg]] &mdash; {{{name10}}}|}}
+
{{#if:{{{name10|}}}|<br />[[File:Nim10.svg|link=]] &mdash; {{{name10}}}|}}
{{#if:{{{name11|}}}|[[File:Nim11.svg]] &mdash; {{{name11}}}|}}
+
{{#if:{{{name11|}}}|<br />[[File:Nim11.svg|link=]] &mdash; {{{name11}}}|}}
{{#if:{{{name12|}}}|[[File:Nim12.svg]] &mdash; {{{name12}}}|}}
+
{{#if:{{{name12|}}}|<br />[[File:Nim12.svg|link=]] &mdash; {{{name12}}}|}}
{{#if:{{{name13|}}}|[[File:Nim13.svg]] &mdash; {{{name13}}}|}}
+
{{#if:{{{name13|}}}|<br />[[File:Nim13.svg|link=]] &mdash; {{{name13}}}|}}
{{#if:{{{name14|}}}|[[File:Nim14.svg]] &mdash; {{{name14}}}|}}
+
{{#if:{{{name14|}}}|<br />[[File:Nim14.svg|link=]] &mdash; {{{name14}}}|}}
{{#if:{{{name15|}}}|[[File:Nim15.svg]] &mdash; {{{name15}}}|}}
+
{{#if:{{{name15|}}}|<br />[[File:Nim15.svg|link=]] &mdash; {{{name15}}}|}}
{{#if:{{{name16|}}}|[[File:Nim16.svg]] &mdash; {{{name16}}}|}}
+
{{#if:{{{name16|}}}|<br />[[File:Nim16.svg|link=]] &mdash; {{{name16}}}|}}
{{#if:{{{name17|}}}|[[File:Nim17.svg]] &mdash; {{{name17}}}|}}
+
{{#if:{{{name17|}}}|<br />[[File:Nim17.svg|link=]] &mdash; {{{name17}}}|}}
{{#if:{{{name18|}}}|[[File:Nim18.svg]] &mdash; {{{name18}}}|}}
+
{{#if:{{{name18|}}}|<br />[[File:Nim18.svg|link=]] &mdash; {{{name18}}}|}}
{{#if:{{{name19|}}}|[[File:Nim19.svg]] &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