Module:YouTubeSubscribers: Difference between revisions

Content deleted Content added
better errors
No edit summary
Line 113:
if #pointsInTime ~= 1 then
-- be conservative in what we accept
error("Encountered a statement with zero or multiple point in time qualifiers. Please add or remove point in time information.")
return nil
end
Line 226 ⟶ 227:
return "{{Format date|" ..dateString .. "}}"
end
 
error("Could not find a date for YouTube subscriber information.")
end
Line 246:
return tonumber(subCount)
else
error("Found an associated YouTube channel ID but could not find a most recent value for social media followers (i.e. P8687 qualified with P585 and P2397).")
end
end