Module:YouTubeSubscribers/doc: Difference between revisions
Appearance
Content deleted Content added
→Data retrieval problem codes: new section |
Tom.Reding (talk | contribs) m →top: {{High-use}} |
||
Line 1: | Line 1: | ||
{{High-use}} |
|||
{{Module rating|beta}} |
{{Module rating|beta}} |
||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
Latest revision as of 14:57, 28 December 2023
![]() | This Lua module is used on approximately 3,400 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module fetches a YouTube channel's subscriber count from its Wikidata entity.
Usage
[edit]{{#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
[edit]- -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
[edit]Category:Pages with YouTubeSubscribers module errors