Changes

Jump to navigation Jump to search

Module:Authority control

38 bytes added, 21:42, 1 September 2019
Properly handle "Category:Wikipedia articles with faulty ID identifiers" for special categories; allow |QID= everywhere except mainspace, per talk; only track ACs with 20+ IDs, per talk
end
function p.createRow( id, label, rawValue, link, withUid , specialCat )
if link then
if withUid then
end
local catName = 'Wikipedia articles with faulty '..(specialCat or id)..' identifiers'
return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[Category:'..catName..']]'..p.redCatLink(catName)..'\n'
end
--Use QID= parameter for testing/example purposes only
local itemId = nil
if testcases or talkspace namespace ~= 0 then
if parentArgs['QID'] then
itemId = 'Q'..mw.ustring.gsub(parentArgs['QID'], '^[Qq]', '')
local val = parentArgs[params[1]]
if val and val ~= '' then
table.insert( elements, p.createRow( params[1], params[2]..':', val, params[4]( val ), true , params.category ) )
rct = rct + 1
end
local Navbox = require('Module:Navbox')
local elementsCat = ''
if rct > 13 = 20 then
local catName = 'AC with '..rct..' elements'
elementsCat = '[[Category:'..catName..']]'..p.redCatLink(catName)
Anonymous user

Navigation menu