ထႅမ်းပလဵတ်ႉ:MergedMap/sandbox
| ဢၼ်ၼႆႉ ပဵၼ် template sandbox page တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ:MergedMap (လွင်ႈပႅၵ်ႇပိူင်ႈ) ။ တူၺ်းပႃး ၼႃႈလိၵ်ႈၽႄ တွၼ်ႈတႃႇ test cases. |
| This template is rated as pre-alpha. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. Templates remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure. |
| This template uses Lua: |
This Template is designed to merge OpenStreetMap and Pushpin maps and satellite maps and others into one radio button. And its aim is to reduce infobox images, making it more readably and useful. It is aimed to provide the least arguments to it, so no need for providing mapframe-id and coordinates, therefore it works by providing only a mapQuery argument which is its first one.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]Firts argument of this template is "mapQuery" which should provide order of maps in the radio button, separated by '#'. For openstreetmap use "OSM", and for pushpin maps use the name of one of maps in Template:Location map/List. Other OSM maps can be added by OSM1 to OSM10 and a full mapframe should be provided for it. For satellite maps, use customMap1 to customMap10 and customMap1Caption1 to customMap1Caption10 for its caption. Other arguments include:
- mapframe-zoom for zoom of main OSM.
- mapframe-marker for marker of main OSM
- mapframe-shape for shape of main OSM
- mapframe-id for id of main OSM
- defaultMapFrame = yes/no for setting default showing of OSM
There is no need to provide coordinates and mapframe-id in main articles because they are fetched from Wikidata.
တူဝ်ယၢင်ႇ
[မႄးထတ်းငဝ်ႈငႃႇ]| ၼႃႈလိၵ်ႈဢၼ်ၼႆႉ မၼ်းပဵၼ် ဢွင်ႈတီႈၸၢမ်း ထႅမ်းပလဵၵ်ႉ sandbox ႁင်း ထႅမ်းပလဵတ်ႉ:MergedMap ၏ ၼၼ်ႉယဝ်ႉ။ တွၼ်ႈတႃႇႁၼ်လႆႈ သၢႆငၢႆလႃႈသုတ်း ႁင်း ပိူင်ယၢင်ႇမၼ်းၼႆ ။ တွၼ်ႈတႃႇ ၵူတ်ႇထတ်း ၽွၼ်းလႆႈ လွင်ႈၸႂ်ႉတိုဝ်း ထႅမ်းပလဵၵ်ႉၼႆႉ ၸၢင်ႈၸႂ်ႉလႆႈ Special:ExpandTemplates ယူႇ။ |
Infobox settlement
[မႄးထတ်းငဝ်ႈငႃႇ]Empty
[မႄးထတ်းငဝ်ႈငႃႇ]- BUG: Note the empty row
Done Default behavior is showing OSM, if you place it at article, then it will be shown
{{MergedMap}}
Case 1
[မႄးထတ်းငဝ်ႈငႃႇ]- BUG: Not turning on by default with presence of coords
Done
{{MergedMap}}
Case 2
[မႄးထတ်းငဝ်ႈငႃႇ]- BUG:
|mapframe-caption=aaaaaaa, which is set in the infobox, has disappeared
Done - BUG:
|mapframe-zoom=2, which is set in the infobox, is being ignored
Done
{{MergedMap}}
Case 3
[မႄးထတ်းငဝ်ႈငႃႇ]- BUG built-in
|mapframe-switcher=(which is in use: insource:/mapframe\-switcher/) breaks the switcher
Done
{{MergedMap}}