Module:YouTubeSubscribers/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Module:YouTubeSubscribers. It may contain usage information, categories and other content that is not part of the original module page. |
| Warning | This Lua module is used on many 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 uses the Wikidata properties:
Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value).
| File:Greek lc beta icon.svg | This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
This module fetches a YouTube channel's subscriber count from its Wikidata entity.
Usage
[edit source]{{#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 source]- -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 source]Category:Pages with YouTubeSubscribers module errors (0)