Module:Authority control: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam No edit summary |
imported>Kanags சி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)
வரி 432 ⟶ 431:
auxCats = auxCats .. needsAttention('S')
end
if testcases then
auxCats = mw.ustring.gsub(auxCats, '(%[%[)(' .. config.i18n.category .. ')', '%1:%2') --for easier checking
| |||