Модуль:Coordinates2: відмінності між версіями

[перевірена версія][перевірена версія]
Вилучено вміст Додано вміст
Shmurak (обговорення | внесок)
мНемає опису редагування
Servansky (обговорення | внесок)
додав globe_list
 
Рядок 19:
coordinates = {};
 
local globe_list = '||earth|mercury|venus|moon|mars|phobos|deimos|ganymede|callisto|io|europa|mimas|enceladus|tethys|dione|rhea|titan|hyperion|iapetus|phoebe|miranda|ariel|umbriel|titania|oberon|triton|pluto|ceres|vesta|'
name_table = {N = " пн. ш.", S = " пд. ш.", W = " зх. д.", E = " сх. д."}
 
Рядок 754 ⟶ 755:
 
Usage:
{{ Invoke:Coordinates | coord }}
{{ Invoke:Coordinates | coord | lat | long }}
{{ Invoke:Coordinates | coord | lat | lat_flag | long | long_flag }}
...
Refer to {{coord}} documentation page for many additional parameters and
configuration options.
Note: This function provides the visual display elements of {{coord}}. In
order to load coordinates into the database, the {{#coordinates:}} parser
Рядок 768 ⟶ 769:
]]
function coordinates.coord(frame)
globalFrame = frame
local args = frame.args
if args[1] == nil then
local pFrame = frame:getParent();
args = pFrame.args;
for k,v in pairs( frame.args ) do
args[k] = v;
end
end
for i=1,10 do