Module:Test : Différence entre versions

De Wiki'speria
Aller à : navigation, rechercher
m (Test2)
m
 
(Une révision intermédiaire par le même utilisateur non affichée)
Ligne 1 : Ligne 1 :
 
local p = {}
 
local p = {}
  
function p.Esperia()
+
function p.alerte1(frame)
    return "Bonjour la team wiki"
+
     local poids = tonumber(frame.args[1])
end
+
     local reponse = "Votre poids est acceptable"
 
+
     if poids > 54 then
function p.Traduction(frame)
+
        reponse = "Attention, vous commencez à grossir"
     if frame.args[1] == "Lundi" then return "Monday" end
+
     end
    if frame.args[1] == "Mardi" then return "Tuesday" end
+
     return reponse
     if frame.args[1] == "Mercredi" then return "Wednesday" end
 
    if frame.args[1] == "Jeudi" then return "Thursday" end
 
     if frame.args[1] == "Vendredi" then return "Friday" end
 
    if frame.args[1] == "Samedi" then return "Saturday" end
 
     if frame.args[1] == "Dimanche" then return "Friday" end
 
end
 
 
 
function p.Naissance(frame)
 
     return "Nous avons la joie de vous annoncer la naissance de " .. frame.args[1] .. "."
 
 
end
 
end
  
 
return p
 
return p

Version actuelle datée du 6 août 2020 à 11:36

Ceci est un Module de Test ayant pour but la révision de l'Extension Scribunto par tous les utilisateurs. Référent Scribunto : Nonovian


local p = {}

function p.alerte1(frame)
    local poids = tonumber(frame.args[1])
    local reponse = "Votre poids est acceptable"
    if poids > 54 then
        reponse = "Attention, vous commencez à grossir"
    end
    return reponse
end

return p