"मोड्युल:Coordinates" के अवतरणसभमे अन्तर
Content deleted Content added
Biplab Anand (वार्ता | योगदान) अ Updating |
Biplab Anand (वार्ता | योगदान) अ Update per enwiki |
||
पङ्क्त्ति ७१४:
while count <= 9 do args[count] = (args[count] or ''); count = count+1 end
end
if isInTitle(Display) and not page_title.isTalkPage and page_title.subpageText ~= '
args.notes, args.format, args.display = nil
text = text .. coord_wrapper(args)
पङ्क्त्ति ७३१:
{{#invoke:Coordinates | coord2text | {{Coord}} | parameter }}
Valid values for the second parameter are
]]
function coordinates.coord2text(frame)
if
local result, negative = mw.text.split((mw.ustring.match(frame.args[1],'[%.%d]+°[NS] [%.%d]+°[EW]') or ''), ' ')
result, negative = result[1], 'S'
else
result, negative = result[2], 'W'
end
result = mw.text.split(result, '°')
return nil▼
if result[2] == negative then result[1] = '-'..result[1] end
else
return
end
end
|