Modul:Uses TemplateStyles: Unterschied zwischen den Versionen
Modul:Uses TemplateStyles (Quelltext anzeigen)
Version vom 26. Februar 2019, 02:25 Uhr
, vor 6 JahrenNoprotcat parameter to suppress protection category
Keine Bearbeitungszusammenfassung |
(Noprotcat parameter to suppress protection category) |
||
| Zeile 82: | Zeile 82: | ||
end | end | ||
cats[#cats + 1] = category | cats[#cats + 1] = category | ||
if yeso(args.noprotcat) then | |||
return | |||
end | |||
local currentProt = titleObj.protectionLevels["edit"] and titleObj.protectionLevels["edit"][1] or nil | local currentProt = titleObj.protectionLevels["edit"] and titleObj.protectionLevels["edit"][1] or nil | ||
for i, ts in ipairs(tStyles) do | for i, ts in ipairs(tStyles) do | ||