Module:Test : Différence entre versions
(Test) |
(Fonction trad (exemple)) |
||
Ligne 2 : | Ligne 2 : | ||
function p.Esperia() | function p.Esperia() | ||
return "Bonjour la team wiki" | return "Bonjour la team wiki" | ||
+ | end | ||
+ | |||
+ | function p.Traduction(frame) | ||
+ | if frame.args[1] == "Lundi" then return "Monday" end | ||
+ | if frame.args[1] == "Mardi" then return "Tuesday" end | ||
+ | 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 | end | ||
return p | return p |
Version du 4 août 2020 à 08:17
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.Esperia() return "Bonjour la team wiki" end function p.Traduction(frame) if frame.args[1] == "Lundi" then return "Monday" end if frame.args[1] == "Mardi" then return "Tuesday" end 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 return p