Template:Ytv-stats/doc
Documentation
This template contains statistics on YouTube videos (views, likes, etc.) that can be used in various ways by other templates. By default, the template outputs table cells for use in {{ytv-stats-table-row}}. But other kinds of output are possible if new templates are created, as explained below.
This template is not intended to be used in articles. Instead, a more "high-level" template like {{ytv-stats-table-row}} would be used.
Usage
{{ytv-stats|ID}}{{ytv-stats|ID|suffix}}
ID is the ID number for the YouTube video (see example below). Currently no specific suffixes are supported, so this template calls {{ytv-s}} internally to produce its output. However, if a template called {{ytv-sXYZ}} were created (for example), then this template could be called as {{ytv-stats|ID|XYZ}} in order to generate the output specified in the newly created template. (The creation of the new template is the only change required. This template does not have to be changed to support the new template; it only needs to be called in the right way.)
If this seems confusing, think of it this way: {{ytv-stats}} serves as both a "database" of information (the actual template page itself) and a way of "querying" that database for the information held within (using calls of the form shown above). Templates like {{ytv-s}} specify the "format" in which the information is displayed. Finally, templates like {{ytv-stats-table-row}} provide a very "high-level" way of requesting the information (i.e., "give me information about this, and spare me the details of how you're doing it"). As an editor, if you want to correct existing information or add missing information, you should edit Template:Ytv-stats. If you want to make minor changes to how the information is presented, you should edit Template:Ytv-s (or maybe Template:Ytv-stats-table-row). But if you want to make major changes to how the information is presented, you should create totally new templates, as previously mentioned.
Note that the same situation exists for {{ytv-data}} & {{ytv-d}} (which contain and process information about upload dates, titles, and lengths of the videos), and {{ytv-info}} & {{ytv-i}} (for when and where the videos were recorded, how old Angelina was at the time, and several other things) — although these other templates are more "under development" than actually "in service". (But {{ytv-data}} is actually currently used in {{ytv-stats-table-row}}.)
Examples
<table class="wikitable"><tr>{{ytv-stats|eTcvvO6B3Io}}</tr></table>
⇓
| 9,468,588 | 170,873 | 5,212 | 10,948 | 97 | 3 | 1.8 | 0.1 | 32.8 | 0.1 | 2020-12-31 |
The awkwardness of this example suggests why this template is not intended to be used directly in articles, and why a template that calls this one should be used instead.
Coverage
Currently, the template contains statistics for all the videos uploaded to the Angelina Jordan CoverChannel and Angelina Jordan Official through 2021-01. Most of the videos on Angelina Jordan Fanclub Mosarz aren't even listed in the template at all, and those that are haven't had their statistics collected yet. (There are so many of them!) No videos from other YouTube channels, like those of TV 2, NRK, etc., are in the template yet.