Bienvenue sur le wiki de Nuit debout, nous sommes le 2989 mars.
Modification de Module:Langue
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 | + | 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 | end | ||
end | end |