Module:Authority control: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam
No edit summary
imported>Kanags
சிNo edit summary
 
வரிசை 1:
require('strict')
local p = {}
local configfile = 'Module:Authority control/config' ..-- (argdefault andconfiguation arg~='' and ('/' .. arg) or '')module
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)
end
local config
if mw.title.new(configfile).exists then
local config = mw.loadData(configfile)
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')
local success, exists = pcall(function() return mw.title.new(cat, 14).exists end)
if success and not exists then
redlinkcat = needsAttention('N')
end
end
if sortkey then
வரி 34 ⟶ 39:
 
local function getCatForId(id,faulty)
local cat = stringconfig.format(i18n.Articles_with .. ' '
if faulty then cat = cat .. config.i18n.cat,faulty .. ' ' end
cat = cat .. id .. ' ' .. config.i18n.identifiers
(faulty and config.i18n.faulty..' ' or '') .. id
)
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 .. '|' .. tooltipconfig.i18n.The .. ' ' .. conf[1] .. ' ' .. config.i18n.identifier .. ' ' .. val.id .. ' ' .. config.i18n.isnotvalid .. '.]]'
local tooltip = string.format(
config.i18n.idnotvalid,
conf[1],
val.id
)
link = link .. '[[File:' .. config.i18n.warningicon .. '|20px|frameless|link=' .. wdlink .. '|' .. tooltip .. '.]]'
if conf.errorcat then
link = link .. addCat(conf.errorcat)
வரி 432 ⟶ 431:
auxCats = auxCats .. needsAttention('S')
end
 
if testcases then
auxCats = mw.ustring.gsub(auxCats, '(%[%[)(' .. config.i18n.category .. ')', '%1:%2') --for easier checking
"https://tamilar.wiki/w/Module:Authority_control" இலிருந்து மீள்விக்கப்பட்டது