1136
правок
Изменения
м
local mcredirect = {ic2 = 1, IndustrialCraft_2 = 1, fl = 1, MineChem = 1} if mod == mcredirect[mw.ustring.lower(and mod)] then page ~= 'mc:' .. mod .. '/' elsethen
Тест
local page = ''
page = mod .. '/'
end
local vanilla = {v = 1, vanilla = 1, mc = 1, minecraft = 1, } local modredirect = {ic2 = 1, mch = 1, MineChem = 1}
if mod == '' or vanilla[mw.ustring.lower(mod)] then
return prefix .. name
elseif mod == 'ic2' or modredirect[mw.ustring.lower(mod)] then
return prefix .. '[[mc:' .. page .. name .. '|' .. name .. ']]'
else
return prefix .. '[[' .. page .. name .. '|' .. name .. ']]'