Modul:Uses TemplateStyles: Unterschied zwischen den Versionen

fix
(fix?)
(fix)
Zeile 83: Zeile 83:
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, ts in ipairs(tStyles) do
for i, ts in ipairs(tStyles) do
local tsProt = mw.title.new(ts).protectionLevels["edit"][1]
local tsTitleObj = mw.title.new(ts)
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 == nil then tsProt = 0 else tsProt = protLevels[tsProt] end
if tsProt < currentProt then
if tsProt < currentProt then
Anonymer Benutzer