Anonymous user
Module:Inventory slot: Difference between revisions
m
Temporary test function to reduce expensive parser function calls
imported>Ttv pedro270707 mNo edit summary |
imported>Ttv pedro270707 m (Temporary test function to reduce expensive parser function calls) |
||
Line 162: | Line 162: | ||
return slotContainer | return slotContainer | ||
end | |||
p.value = { | |||
["Steel Ingot"] = "Hello", | |||
["Steel Ingot5"] = "Hello", | |||
["Steel Ingot10"] = "Hello" | |||
} | |||
function p.test(value) | |||
if value == 1 then | |||
for i = 1, 1000 do | |||
if require("Module:Inventory slot/descriptions").descriptions["Steel Ingot"] then | |||
mw.log("Exists") | |||
else | |||
mw.log("Does not exist") | |||
end | |||
end | |||
else | |||
for i = 1, 101 do | |||
mw.log(mw.title.new("Steel Ingot" .. i).exists) | |||
end | |||
end | |||
end | end | ||