Module:Cartouche route
Apparence
La documentation de ce module est générée par le modèle {{Documentation module}}.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
local p = {}
--local master = mw.loadData("Module:Cartouche route/Data")
function p.build(frame)
local reponse = ""
reponse = frame:getArgument(1)
if reponse == nil then
return "Il y a un problème, la fonction a retourné : nil"
else
return "La fonction a retourné : "..reponse:expand().." et son type est : "..type(reponse)
end
if not(frame.args[1] == nil) and not(frame.args[1] == "") and not(frame.args[2] == nil) and not(frame.args[2] == "") then
--return ""
local strCombine = "<font color='green'>OK!</font>"
strCombine = strCombine .. "<br />Pays: " .. frame.args[1]
strCombine = strCombine .. "<br />Type: " .. frame.args[2]
if not(frame.args[3] == nil) and not(frame.args[3] == "") then
strCombine = strCombine .. "<br />Numéro:" .. frame.args[3]
end
if not(frame.args[4] == nil) and not(frame.args[4] == "") then
strCombine = strCombine .. "<br />Dédoublement:" .. frame.args[4]
end
if not(frame.args['taille'] == nil) and not(frame.args['taille'] == "") then
strCombine = strCombine .. "<br />Taille: " .. frame.args['taille']
end
if not(frame.args['lien'] == nil) or not(frame.args['lien'] == "") then
strCombine = strCombine .. "Lien à déterminer (à construire)"
else
strCombine = strCombine .. frame.args['lien']
end
return strCombine
else
return "<font color='red'>Veuillez entrer au moins un pays et un type de route!</font>"
end
end
return p