Bienvenue sur le wiki de Nuit debout, nous sommes le 2989 mars.




Modification de Module:Langue

Aller à : navigation, rechercher

Attention : Vous n’êtes pas connecté. Votre adresse IP sera visible de tout le monde si vous faites des modifications. Si vous vous connectez ou créez un compte, vos modifications seront attribuées à votre nom d’utilisateur, entre autres avantages.

Cette modification va être défaite. Veuillez vérifier les modifications ci-dessous, puis publier si c’est bien ce que vous voulez faire.
Version actuelle Votre texte
Ligne 126 : Ligne 126 :
 
tabLangue = dataLangue[ mw.ustring.match( arg, '^(%a-)%-' ) ]
 
tabLangue = dataLangue[ mw.ustring.match( arg, '^(%a-)%-' ) ]
 
end
 
end
if not tabLangue then
+
if tabLangue then
 +
local nom
 +
if type( tabLangue.page ) == 'string' then
 +
nom = tabLangue.page .. '|' .. tabLangue.nom
 +
else
 +
nom = tabLangue.nom
 +
end
 +
return '[[' .. nom .. ']]'
 +
else
 
if success then
 
if success then
 
return string.format( langErrorMess, arg )
 
return string.format( langErrorMess, arg )
Ligne 132 : Ligne 140 :
 
return '<span title="erreur dans ' .. moduleData .. '">' .. arg .. '</span>'
 
return '<span title="erreur dans ' .. moduleData .. '">' .. arg .. '</span>'
 
end
 
end
end
 
if type( tabLangue.page ) == 'string' then
 
if tabLangue.page ~= '' then
 
return '[[' .. tabLangue.page .. '|' .. tabLangue.nom .. ']]'
 
else
 
return tabLangue.nom
 
end
 
else
 
return '[[' .. tabLangue.nom .. ']]'
 
 
end
 
end
 
end
 
end

Avertissement : Toutes les contributions au wiki NuitDebout sont considérées comme publiées sous les termes de la licence Creative Commons attribution partage à l'identique 3.0.

Annuler | Aide (ouvre une nouvelle fenêtre)

Modèle utilisé par cette page :