Modul:Uses TemplateStyles: Unterschied zwischen den Versionen
StadtbahnBI>Tacsipacsi i18n from Data:I18n/Uses TemplateStyles.tab |
Tt (Diskussion | Beiträge) K 1 Version importiert |
||
| (2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 5: | Zeile 5: | ||
local mMessageBox = require('Module:Message box') | local mMessageBox = require('Module:Message box') | ||
local TNT = require('Module:TNT') | local TNT = require('Module:TNT') | ||
local p = {} | local p = {} | ||
local function format(msg, ...) | local function format(msg, ...) | ||
return TNT. | return TNT.format('I18n/Uses TemplateStyles', msg, ...) | ||
end | end | ||
| Zeile 29: | Zeile 28: | ||
end | end | ||
function p._main(args) | function p._main(args, cfg) | ||
local tStyles = mTableTools.compressSparseArray(args) | local tStyles = mTableTools.compressSparseArray(args) | ||
local box = p.renderBox(tStyles) | local box = p.renderBox(tStyles) | ||
| Zeile 98: | Zeile 97: | ||
local tsProt = tsTitleObj.protectionLevels["edit"] and tsTitleObj.protectionLevels["edit"][1] or nil | local tsProt = tsTitleObj.protectionLevels["edit"] and tsTitleObj.protectionLevels["edit"][1] or nil | ||
if cfg['protection_conflict_category'] and tsProt ~= currentProt and not addedLevelCat then | if cfg['protection_conflict_category'] and tsProt ~= currentProt and not addedLevelCat then | ||
addedLevelCat = true | |||
cats[#cats + 1] = cfg['protection_conflict_category'] | cats[#cats + 1] = cfg['protection_conflict_category'] | ||
end | end | ||