« Module:Abréviation » : différence entre les versions

Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 81 : Ligne 81 :
local abbs = args[1] or ''
local abbs = args[1] or ''
local subject = args[2]
local subject = args[2]
local sortkey = args[3]
if #abbs > 0 then
if #abbs > 0 then
Ligne 90 : Ligne 91 :
if subject then
if subject then
prefix = subject .. ' de '
prefix = subject .. ' de '
end
if sortkey then
sortkey = '|' .. sortkey
else
sortkey = ''
end
end
Ligne 96 : Ligne 103 :
if gameName then
if gameName then
categories = categories .. '[[Catégorie:' .. prefix .. gameName .. ']]'
categories = categories .. '[[Catégorie:' .. prefix .. gameName .. sortkey .. ']]'
end
end
end
end