43 006
modifications
m (bugfix) |
(La mention du jeu exclusif peut maintenant être cachée dans les notes) |
||
Ligne 547 : | Ligne 547 : | ||
function add_rate(rate, rate_precision, colspan, class) | function add_rate(rate, rate_precision, colspan, class, notes) | ||
local seen_games_here = nil | local seen_games_here = nil | ||
Ligne 571 : | Ligne 571 : | ||
end | end | ||
k = k + 1 | k = k + 1 | ||
end | |||
if notes and string.sub(notes, 1, 12) == "Exclusif à " | |||
then local game = string.gsub(string.sub(notes, 13, 15), "É", "E") | |||
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 | |||
end | end | ||
if rate_precision then table.insert(current_subarea_full_locations, '<br><small><i>' .. rate_precision .. '</i></small>') end | if rate_precision then table.insert(current_subarea_full_locations, '<br><small><i>' .. rate_precision .. '</i></small>') end | ||
Ligne 658 : | Ligne 663 : | ||
if rate | if rate | ||
then local rate_precision = place_info[j]["précision-taux"] | then local rate_precision = place_info[j]["précision-taux"] | ||
add_rate(rate, rate_precision, reduced_colspan_rates[current_game], nil) | local notes = place_info[j]["notes"] | ||
add_rate(rate, rate_precision, reduced_colspan_rates[current_game], nil, notes) | |||
else local subarea_info = subarea_subrates_list[current_game][subarea_text] | else local subarea_info = subarea_subrates_list[current_game][subarea_text] | ||
local notes = place_info[j]["notes"] | |||
if subarea_info.subrates | if subarea_info.subrates | ||
then local colspan_local = math.floor(reduced_colspan_rates[current_game] / subarea_info.number) | then local colspan_local = math.floor(reduced_colspan_rates[current_game] / subarea_info.number) | ||
Ligne 667 : | Ligne 674 : | ||
if not subrate_s then subrate_s = "—" end | if not subrate_s then subrate_s = "—" end | ||
local subrate_s_precision = place_info[j]["précision-" .. subarea_info.subrates[2][s]] | local subrate_s_precision = place_info[j]["précision-" .. subarea_info.subrates[2][s]] | ||
add_rate(subrate_s, subrate_s_precision, colspan_local, subarea_info.subrates[3][s]) | add_rate(subrate_s, subrate_s_precision, colspan_local, subarea_info.subrates[3][s], notes) | ||
end | end | ||
else add_rate("—", nil, reduced_colspan_rates[current_game], nil) | else add_rate("—", nil, reduced_colspan_rates[current_game], nil, notes) | ||
end | end | ||