« Module:Référence » : différence entre les versions

3 octets ajoutés ,  5 juillet 2021
m
aucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 5 : Ligne 5 :
--------------------------------------
--------------------------------------


function buildSentence(sentence, lang)
function formatSentence(sentence, lang)
if lang ~= 'fr' then
if lang ~= 'fr' then
return "''" .. sentence .. "''"
return "''" .. sentence .. "''"
Ligne 68 : Ligne 68 :
local sentence = args['phrase' .. i]
local sentence = args['phrase' .. i]
if sentence then
if sentence then
ref = ref .. '— ' .. buildSentence(sentence, lang) .. '<br/>'
ref = ref .. '— ' .. formatSentence(sentence, lang) .. '<br/>'
else
else
break
break
Ligne 78 : Ligne 78 :
local quotation = args['citation']
local quotation = args['citation']
if quotation then
if quotation then
ref = ref .. '«&nbsp;' .. buildSentence(quotation, lang) .. '&nbsp;»<br/>'
ref = ref .. '«&nbsp;' .. formatSentence(quotation, lang) .. '&nbsp;»<br/>'
end
end


Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 734

modifications