Template:Ytv-stats/doc

From Angelina Jordan Wiki
Revision as of 03:19, 1 January 2021 by Dcljr (talk | contribs) (Emphasize "this")
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

See also