Modul:Authority control/bakpasir: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Hidayatsrf (bicara | kontrib) ←Membuat halaman berisi 'require('Module:No globals') local p = {} local title = mw.title.getCurrentTitle() local namespace = title.namespace local testcases = (string.sub(title.subpageText,1...' |
Hidayatsrf (bicara | kontrib) Tidak ada ringkasan suntingan |
||
Baris 13:
local catName = ''
if namespace == 0 then
catName = 'Artikel Wikipedia
elseif namespace == 2 and not title.isSubpage then
catName = '
else
catName = '
end
return '[[
end
Baris 27:
mw.title.new(catName, 14).exists == false
then
return '[[
end
return ''
Baris 33:
function p.createRow( id, label, rawValues, link, links, withUid, specialCat )
local catName = 'Artikel Wikipedia
if links then -- all links[] use withUid = false; no check needed
local row = '*<span class="nowrap">'..label
Baris 869:
'! rowspan=2 | Parameter\n'..
'! rowspan=2 | Label\n'..
'! rowspan=2; data-sort-type=number |
'! colspan=4 |
'|-\n'..
'! [[:
'! [[:
'! [[:
'! [[:
'|-\n'
Baris 885:
local wpl = frame:expandTemplate{ title = 'Wikidata property link', args = args }
--cats
local articleCat = 'Artikel Wikipedia
local userCat = '
local miscCat = '
local faultyCat = 'Artikel Wikipedia
--counts
local articleCount = lang:formatNum( mw.site.stats.pagesInCategory(articleCat, 'pages') )
Baris 900:
'||'..link..
'||data-sort-value='..pid..'|'..wpl..
'||style="text-align: right;"|[[:
'||style="text-align: right;"|[[:
'||style="text-align: right;"|[[:
'||style="text-align: right;"|[[:
end
Baris 916:
'||'..w..
'||data-sort-value='..w..'|'..'—'..
'||style="text-align: right;"|[[:
'||style="text-align: right;"|—'..
'||style="text-align: right;"|—'..
Baris 1.080:
parentArgs[param] = parentArgs[dep]
if namespace == 0 then
deprecatedIdCat = '[[
end
end
Baris 1.116:
if wikidataIds[1] then
if val == '' and (namespace == 0 or testcases) then
suppressedIdCat = '[[
else
parentArgs[params[1]] = wikidataIds[1] --add ID from WD
Baris 1.134:
end
if bMatch == false then
differentOnWDCat = '[[
end end end end end
if iMatches > 0 and iMatches == iParentArgs then
sameOnWDCat = '[[
end
end
Baris 1.185:
table.insert( elements, p.createRow( 'VIAF', '', viafId, '[[WorldCat Identities (identifier)|WorldCat Identities]] (via VIAF): [https://www.worldcat.org/identities/containsVIAFID/'..viafId..' '..viafId..']', nil, false ) )
if namespace == 0 then
worldcatCat = '[[
end
elseif lccnId and lccnId ~= '' and p.lccnLink( lccnId ) then --LCCN must be present, unsuppressed, & validated
Baris 1.193:
table.insert( elements, p.createRow( 'LCCN', '', lccnId, '[[WorldCat Identities (identifier)|WorldCat Identities]] (via LCCN): [https://www.worldcat.org/identities/lccn-'..lccnIdFmtd..' '..lccnIdFmtd..']', nil, false ) )
if namespace == 0 then
worldcatCat = '[[
end
end
end
elseif worldcatId == '' then --if WORLDCATID suppressed
suppressedIdCat = '[[
end
Baris 1.204:
local elementsCat = ''
if rct == 0 or rct >= 25 then
local eCat = 'AC
elementsCat = '[[
end
Baris 1.214:
local pencil = frame:expandTemplate{ title = 'EditAtWikidata', args = args}
outString = Navbox._navbox( {
name = '
navboxclass = 'authority-control',
bodyclass = 'hlist',
group1 = '[[
list1 = table.concat( elements )
} )
Baris 1.229:
outString = outString .. auxCats
if namespace ~= 0 then
outString = mw.ustring.gsub(outString, '(%[%[)(Category:
end
|