Module:Skills: Difference between revisions

Amend incomplete category & indentation
(Fixed indenting)
(Amend incomplete category & indentation)
Line 155: Line 155:
end
end
if patches == nil then
if patches == nil then
return "ERROR: Invalid area name.[[Category:Pages with script errors"
return "ERROR: Invalid area name.[[Category:Pages with script errors]]"
end
end


Line 211: Line 211:


table.sort(smithList, function(a, b)
table.sort(smithList, function(a, b)
if a.smithingLevel ~= b.smithingLevel then
if a.smithingLevel ~= b.smithingLevel then
return a.smithingLevel < b.smithingLevel
return a.smithingLevel < b.smithingLevel
else
else
return a.name < b.name
return a.name < b.name
end end)
end end)
for i, item in Shared.skpairs(smithList) do
for i, item in Shared.skpairs(smithList) do
result = result..'\r\n|-'
result = result..'\r\n|-'