Jump to content

Module:YouTubeSubscribers/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add error tracking cat to doc
Line 11: Line 11:


<code><nowiki>{{</nowiki>#invoke:YouTubeSubscribers|''dateNice''<nowiki>|qid=</nowiki>''Wikidata entity ID'' (optional)<nowiki>}}</nowiki></code>
<code><nowiki>{{</nowiki>#invoke:YouTubeSubscribers|''dateNice''<nowiki>|qid=</nowiki>''Wikidata entity ID'' (optional)<nowiki>}}</nowiki></code>

== Data retrieval problem codes ==
* '''-404''' – 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
* '''-412''' – 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)
* '''-424''' – No qid found for page. Please make a Wikidata item for this article


==Error tracking category==
==Error tracking category==

Revision as of 17:38, 26 May 2023

This module fetches a YouTube channel's subscriber count from its Wikidata entity.

Usage

{{#invoke:YouTubeSubscribers|subCount|qid=Wikidata entity ID (optional)}}

{{#invoke:YouTubeSubscribers|subCountNice|qid=Wikidata entity ID (optional)}} – formats the subscriber count

{{#invoke:YouTubeSubscribers|date|qid=Wikidata entity ID (optional)}}

{{#invoke:YouTubeSubscribers|dateNice|qid=Wikidata entity ID (optional)}}

Data retrieval problem codes

  • -404 – 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
  • -412 – 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)
  • -424 – No qid found for page. Please make a Wikidata item for this article

Error tracking category

Category:Pages with YouTubeSubscribers module errors