Template:Ytv-stats/doc

From Angelina Jordan Wiki
Revision as of 06:36, 1 January 2021 by Dcljr (talk | contribs) (+ explanation of Example; + Coverage)
This is a subpage documenting Template:Ytv-stats. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

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.

Usage

  • {{ytv-stats|ID}}
  • {{ytv-stats|ID|suffix}}

ID is the ID number for the YouTube video (see example below). Currently no value of suffix is supported and 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.)

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

As suggested by this rather awkward example, this template is not intended to be used directly in articles. Instead, a template that calls this one should be used (currently only {{ytv-stats-table-row}}, as previously mentioned).

Coverage

Currently, all the videos uploaded to Angelina Jordan CoverChannel have full statistics in the template. The videos for Angelina Jordan Official are listed in the template but (mostly) don't have statistics collected for them yet. Most of the videos on Angelina Jordan Fanclub Mosarz aren't even listed in the template at all. (There are so many of them!) And no videos are listed yet for the YouTube channels of TV 2, NRK, and so forth.

See also