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