Module:Uses TemplateStyles: Difference between revisions

Content deleted Content added
fix?
fix
Line 83:
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, ts in ipairs(tStyles) do
local tsProttsTitleObj = mw.title.new(ts).protectionLevels["edit"][1]
local tsProt = tsTitleObj.protectionLevels["edit"] and tsTitleObj.protectionLevels["edit"][1] or nil
if tsProt == nil then tsProt = 0 else tsProt = protLevels[tsProt] end
if tsProt < currentProt then