Jump to content

User:Mathglot/sandbox/Templates/xvmain/doc

From Wikipedia, the free encyclopedia

Xviews main loop to generate a bar chart showing page views from a pageviews file.

Usage

[edit]

{{xviews|pageviews file}}

Parameters

[edit]

There is one required parameter, and two optional parameters:

  • |1= – the pageviews file (required; must have the format of a page views csv file downloaded from the pageviews tool.)
  • |ct= – the count of data items to display; a value of 120 will show the last 120 days of page view items from the file. (optional; default: 92; max: 150).

Additional parameters, not yet implemented:

  • |log= – use logarithmic data points; ideal for spiky or highly variable page view data
  • |mode= – flips the chart from horizontal to vertical

Examples

[edit]
Example 1. page views for House of the Dragon

{{User:Mathglot/sandbox/Templates/xvmain|Talk:House of the Dragon/pageviews}}The pageviews file Talk:House of the Dragon/pageviews is more than 30 days old; please see § Update instructions.

See also

[edit]