Weekly site maintenance is scheduled Thursday 04:00–06:00 UTC.
Editing will not be possible during this time, and there may be other brief disruptions. (additional info)

Template:Numbermap: Difference between revisions

From OpenGeofiction
Jump to navigation Jump to search
m (Testing)
(Adding instructions)
 
(4 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 = 60% | height = {{{height|500}}}px | zoom = {{{z|5}}} | minzoom = {{{min|2}}} | maxzoom = {{{max|19}}}  
| {{#if:{{{loc1|}}}| marker = {{{loc1}}} ~{{{name1}}} ~ ~Nim01.svg:25,25:12,12 |}}
| {{#if:{{{loc2|}}}| marker = {{{loc2}}} ~{{{name2}}} ~ ~Nim02.svg:25,25:12,12 |}}
| {{#if:{{{loc3|}}}| marker = {{{loc3}}} ~{{{name3}}} ~ ~Nim03.svg:25,25:12,12 |}}
| {{#if:{{{loc4|}}}| marker = {{{loc4}}} ~{{{name4}}} ~ ~Nim04.svg:25,25:12,12 |}}
| {{#if:{{{loc5|}}}| marker = {{{loc5}}} ~{{{name5}}} ~ ~Nim05.svg:25,25:12,12 |}}
| {{#if:{{{loc6|}}}| marker = {{{loc6}}} ~{{{name6}}} ~ ~Nim06.svg:25,25:12,12 |}}
| {{#if:{{{loc7|}}}| marker = {{{loc7}}} ~{{{name7}}} ~ ~Nim07.svg:25,25:12,12 |}}
| {{#if:{{{loc8|}}}| marker = {{{loc8}}} ~{{{name8}}} ~ ~Nim08.svg:25,25:12,12 |}}
| {{#if:{{{loc9|}}}| marker = {{{loc9}}} ~{{{name9}}} ~ ~Nim09.svg:25,25:12,12 |}}
| {{#if:{{{loc10|}}}| marker = {{{loc10}}} ~{{{name10}}} ~ ~Nim10.svg:25,25:12,12 |}}
| {{#if:{{{loc11|}}}| marker = {{{loc11}}} ~{{{name11}}} ~ ~Nim11.svg:25,25:12,12 |}}
| {{#if:{{{loc12|}}}| marker = {{{loc12}}} ~{{{name12}}} ~ ~Nim12.svg:25,25:12,12 |}}
| {{#if:{{{loc13|}}}| marker = {{{loc13}}} ~{{{name13}}} ~ ~Nim13.svg:25,25:12,12 |}}
| {{#if:{{{loc14|}}}| marker = {{{loc14}}} ~{{{name14}}} ~ ~Nim14.svg:25,25:12,12 |}}
| {{#if:{{{loc15|}}}| marker = {{{loc15}}} ~{{{name15}}} ~ ~Nim15.svg:25,25:12,12 |}}
| {{#if:{{{loc16|}}}| marker = {{{loc16}}} ~{{{name16}}} ~ ~Nim16.svg:25,25:12,12 |}}
| {{#if:{{{loc17|}}}| marker = {{{loc17}}} ~{{{name17}}} ~ ~Nim17.svg:25,25:12,12 |}}
| {{#if:{{{loc18|}}}| marker = {{{loc18}}} ~{{{name18}}} ~ ~Nim18.svg:25,25:12,12 |}}
| {{#if:{{{loc19|}}}| marker = {{{loc19}}} ~{{{name19}}} ~ ~Nim19.svg:25,25:12,12 |}}
}}
}}
|'''Map legend'''
|'''Map legend'''
Line 26: 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