Module:Convert : Tameẓla gar ileqman

Contenu supprimé Contenu ajouté
Sami At Ferḥat (mmeslay | attekki)
Aucun résumé des modifications
Sami At Ferḥat (mmeslay | attekki)
Aucun résumé des modifications
 
Ajerriḍ 3 663:
end
 
local function main_convert(frame)
-- entry point from another module
local function _convert(frame, pframe)
-- Do convert, and if needed, do it again with higher default precision.
local parms = { frame = frame } -- will hold template arguments, after translation
set_config(frame.args)
local success, result = get_parms(parms, pframe and pframeframe:getParent().args or {})
if success then
if type(result) ~= 'table' then
Ligne 3 703 ⟶ 3 702 :
end
return success and result or message(parms, result)
end
 
-- entry point from template
local function main_convert(frame)
return _convert(frame, frame:getParent())
end
 
Ligne 3 792 ⟶ 3 786 :
end
 
return { convert = main_convert, _unit = _unit, _convert = _convert }