Aller au contenu

« Module:Localisations » : différence entre les versions

m
aucun résumé des modifications
mAucun résumé des modifications
mAucun résumé des modifications
Ligne 549 : Ligne 549 :
function add_rate(rate, rate_precision, colspan, class, notes)
function add_rate(rate, rate_precision, colspan, class, notes)
local seen_games_here = nil
local seen_games_here = nil
local found_notes = false
rate = mw.ustring.gsub(rate, "-", "—")
rate = mw.ustring.gsub(rate, "-", "—")
Ligne 573 : Ligne 574 :
end
end
if notes and string.sub(notes, 1, 12) == "Exclusif à "
if notes and string.sub(notes, 1, 12) == "Exclusif à "
then local game = string.gsub(string.sub(notes, 13, 14), "É", "E")
then found_notes = true
local game = string.gsub(string.sub(notes, 13, 14), "É", "E")
table.insert(current_subarea_full_locations, frame:expandTemplate{title='Sup', args={game}})
table.insert(current_subarea_full_locations, frame:expandTemplate{title='Sup', args={game}})
if seen_games_here and seen_games_here ~= game then seen_games_here = "all" else seen_games_here = game end
if seen_games_here and seen_games_here ~= game then seen_games_here = "all" else seen_games_here = game end
Ligne 581 : Ligne 583 :
-- might want rework if there is a trio of games at some point
-- might want rework if there is a trio of games at some point
if rate[2] or rate[1] ~= "—"
if rate[2] or rate[1] ~= "—" or found_notes
then if seen_games_place and seen_games_place ~= seen_games_here
then if seen_games_place and seen_games_place ~= seen_games_here
then seen_games_place = "all"
then seen_games_place = "all"