Content deleted Content added
Line 171:
qid = mw.wikibase.getEntityIdForCurrentPage()
end
if not qid then
assert(qid, "No qid found for page. Please make a Wikidata item for this article")▼
local e = nil
return e
end
local e = mw.wikibase.getEntity(qid)
assert(e, "No such item found: " .. qid)
Line 196 ⟶ 199:
function p.date( frame )
local e = getEntity(frame)
local chanId = getBestYtChanId(e)
assert(chanId, "Could not find a single best YouTube channel ID for this item. Add a YouTube channel ID or set the rank of one channel ID to be preferred")
Line 229 ⟶ 233:
-- the most up to date number of subscribers
function p.subCount( frame )
local e = getEntity(frame)▼
local subCount = nil
▲ local e = getEntity(frame)
if not e then
subCount = -424
return tonumber(subCount)
end
local chanId = getBestYtChanId(e)
if chanId then
|