မေႃႇၵျူး:Location map/info
Appearance
မေႃႇၵျူး:Location map displays values stored in location map data modules such as Module:Location map/data/Belgium. These modules are used by Module:Location map to obtain values such as the file name and the border coordinates of each location map.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]This module is automatically used as documentation for map data modules and should not normally be called manually.
The name
parameter
[မႄးထတ်းငဝ်ႈငႃႇ]The {{Location map}} family of templates uses the value assigned to name
to generate alt text. It is used to construct the sentence "label
is located in name
". Assign a value to <name>
that fits in the sentence. For example:
- Chicago is located in the United States. So
|name=the United States
. - Santo Domingo is located in the Dominican Republic. So
|name=the Dominican Republic
.
တူၺ်းပႃး
[မႄးထတ်းငဝ်ႈငႃႇ]- Template:Location map/Info, used for location map data templates such as "Template:Location map Belgium"
- {{Location map}} and Module:Location map
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ မေႃႇၵျူး:Location map/info/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း မေႃႇၵျူးဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း မေႃႇၵျူး ဢၼ်ၼႆႉ။. |
local p = {}
function p.main(frame)
local map = mw.loadData(string.gsub(mw.title.getCurrentTitle().prefixedText,'/doc$',''))
local retval =
[=[{| class="wikitable" style="text-align:center; margin-top:0;"
|+ႁၢင်ႈၽႅၼ်ႇတီႈ ဢွင်ႈတီႈ ]=] .. map.name .. '\n' .. [=[
|-
! ၸိုဝ်ႈ
|colspan="3"| ]=] .. map.name .. [=[
|-
]=]
if map.top then
retval = retval ..
[=[!rowspan="4"|ၵူဝ်ႇဢေႃးတိၼဵတ်ႉ<br/>ၸွမ်းၶွပ်ႇ
|-
|colspan="3"| ]=] .. map.top .. '\n' .. [=[
|-
|style="width:7em;"| ]=] .. map.left .. '\n' .. [=[
| ←↕→
|style="width:7em;"| ]=] .. map.right
if map.right > 180 then
retval = retval .. ' (' .. map.right - 360 .. ')'
end
retval = retval .. '\n' .. [=[
|-
|colspan="3"| ]=] .. map.bottom .. '\n' .. [=[
|-
! ၵၢင်ၵႅၼ်ႁၢင်ႈၽႅၼ်ႇတီႈ
|colspan="4"| ]=]
local width = (map.right - map.left) % 360
if width == 0 then
width = 360
end
local center = (map.left + width/2) % 360
if center >= 180 then
center = center - 360
end
retval = retval .. frame:expandTemplate{title = 'coord', args = { (map.top + map.bottom)/2, center }}
retval = retval .. '\n' .. [=[
|-]=]
end
if map.x then
retval = retval .. '\n' .. [=[
! x
|colspan="3" style="overflow: auto; white-space: auto; width: 350px"| ]=] .. map.x .. '\n' .. [=[
|-
! y
|colspan="3" style="overflow: auto; white-space: auto; width: 350px"| ]=] .. map.y .. '\n' .. [=[
|-]=]
end
retval = retval .. '\n' .. [=[
! ႁၢင်ႈ
|colspan="3"| <code>[[:File:]=] .. map.image .. '|' .. map.image .. [=[]]</code>
|-
|colspan="4"|[[File:]=] .. map.image .. [=[|400x400px]]
|-]=]
if map.image1 then
retval = retval .. '\n' .. [=[
! ႁၢင်ႈ1
|colspan="3"| <code>[[:File:]=] .. map.image1 .. '|' .. map.image1 .. [=[]]</code>
|-
|colspan="4"|[[File:]=] .. map.image1 .. [=[|400x400px]]
|-]=]
end
if map.image2 then
retval = retval .. '\n' .. [=[
! ႁၢင်ႈ2
|colspan="3"| <code>[[:File:]=] .. map.image2 .. '|' .. map.image2 .. [=[]]</code>
|-
|colspan="4"|[[File:]=] .. map.image2 .. [=[|400x400px]]
|-]=]
end
if map.skew then
retval = retval .. '\n' .. [=[
! skew
|colspan="3"| ]=] .. map.skew .. '\n' .. [=[
|-]=]
end
if map.lat_skew then
retval = retval .. '\n' .. [=[
! lat_skew
|colspan="3"| ]=] .. map.lat_skew .. '\n' .. [=[
|-]=]
end
if map.mark then
retval = retval .. '\n' .. [=[
! mark
|colspan="3"| <code>[[:File:]=] .. map.mark .. '|' .. map.mark .. [=[]]</code>
|-]=]
end
if map.marksize then
retval = retval .. '\n' .. [=[
! marksize
|colspan="3"| ]=] .. map.marksize .. '\n' .. [=[
|-]=]
end
retval = retval .. '\n|}'
return retval
end
return p