Module:Authority control: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam "require('strict') local p = {} local arg = mw.getCurrentFrame().args.config local configfile = 'Module:Authority control/config' .. (arg and arg~='' and ('/' .. arg) or '') local config = mw.loadData(configfile) local title = mw.title.getCurrentTitle() local namespace = title.namespace local testcases = title.subpageText == config.i18n.testcases local function ne..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது |
imported>Lingam No edit summary |
||
வரிசை 1:
require('strict')
local p = {}
local configfile = 'Module:Authority control/config'
local arg = mw.getCurrentFrame().args.config
if arg and arg~='' then
▲local configfile = 'Module:Authority control/config' .. (arg and arg~='' and ('/' .. arg) or '')
configfile = 'Module:Authority control/config/' .. arg
local config = mw.loadData(configfile)▼
local config
if mw.title.new(configfile).exists then
else
return error('Invalid configuration file',0)
end
local title = mw.title.getCurrentTitle()
local namespace = title.namespace
வரி 15 ⟶ 23:
if cat and cat ~= '' and (namespace == 0 or namespace == 14 or testcases) then
local redlinkcat = ''
if testcases == false and mw.title.new(cat, 14).exists == false then
▲ redlinkcat = needsAttention('N')
▲ end
end
if sortkey then
வரி 34 ⟶ 39:
local function getCatForId(id,faulty)
local cat =
cat = cat .. id .. ' ' .. config.i18n.identifiers
return addCat(cat)
end
வரி 123 ⟶ 127:
--local preview = require("Module:If preview")
local wdlink = qid and '[[:wikidata:' .. qid .. '#P' .. conf.property .. ']]' or ''
link = link .. '[[File:' .. config.i18n.warningicon .. '|20px|frameless|link=' .. wdlink .. '|' ..
▲ link = link .. '[[File:' .. config.i18n.warningicon .. '|20px|frameless|link=' .. wdlink .. '|' .. tooltip .. '.]]'
if conf.errorcat then
link = link .. addCat(conf.errorcat)
வரி 425 ⟶ 424:
end
if parentArgs.state then
if (parentArgs.state ~= config.i18n.collapsed) and (parentArgs.state ~= config.i18n.expanded) and (parentArgs.state ~= config.i18n.autocollapse) then --invalid state parameter▼
auxCats = auxCats .. needsAttention('S')▼
end
▲ and parentArgs.state~=config.i18n.autocollapse then --invalid state parameter
▲ auxCats = auxCats .. needsAttention('S')
end
if testcases then
| |||