User:MusikBot/NPPChart

From Wikipedia, the free encyclopedia

Populates historical data of New Pages Patrol backlog size for use in on-wiki charts. All data is pulled in from the s53463__actrial_p.npp_queue_size database on Toolforge, courtesy of Nettrom. This data is updated thrice daily, and the bot imports this data to the wiki just as frequently.

checkY Enabled

NPPChart

To disable, set /Run to anything other than true (link)

Errors are logged at /Error log

Configuration

Functionality can be tweaked at /config. Configuration data is in the form of JSON.

IMPORTANT:

  • Do not modify the config files unless you have a basic understanding of JSON
  • Read the documentation first.
  • Do not change the key values.
  • Keys should always be strings, e.g. use "option": true instead of option: true.
  • Strings should be wrapped in double-quotes, e.g. "option" instead of 'option'.
  • Boolean values must be either true or false with no quotations around it.
  • Numerical values must be integers with no quotations around it.
  • The last key/value pair within a hash or the value value in an array must not have a comma at the end of it
  • Essentially if the JSON editor interface says there are any syntax errors or warnings, you have done something wrong
More information Available parameters, Parameter ...
Available parameters
ParameterDescription
hourly_offsetHow many hours back to populate data for. For instance, 168 indicates a weeks' worth of data should be stored. The data is written to Wikipedia:New pages patrol/Backlog chart/hourly.
daily_offsetHow many days back to populate data for. For instance, 180 indicates a months' worth of data should be stored. The data is written to Wikipedia:New pages patrol/Backlog chart/daily.
weekly_offsetHow many weeks back to populate data for. Use "*" to store data for all weeks since August 29, 2017 (the first date data is available). The data is written to Wikipedia:New pages patrol/Backlog chart/weekly.
monthly_offsetHow many months back to populate data for. Use "*" to store data for all months since August 29, 2017 (the first date data is available). The data is written to Wikipedia:New pages patrol/Backlog chart/monthly.
Close

Chart template

This chart is automatically updated by MusikBot, going off a database on Toolforge provided by Nettrom. The data should match the Page Curation backlog exactly, excluding redirects.

All versions of this graph are displayed at Wikipedia:New pages patrol/Graphs.

To use, add {{Wikipedia:New pages patrol/Backlog chart}} to the page where you want to display the chart.

Usage

The first unnamed parameter specifies the granularity of the chart. By default, this the daily chart, showing daily data over the past N days (as configured at User:MusikBot/NPPChart/config). Other options include hourly (past week, as of time of writing), weekly (all-time data, as of time of writing) and monthly (all-time, as of time of writing).

For instance to show all-time data with a monthly granularity, use {{Wikipedia:New pages patrol/Backlog chart|monthly}}.

More information Parameter, Explanation ...
Parameter Explanation
$1 Granularity. One of hourly, daily (default), weekly or monthly.
width Width of the chart in pixels.
height Height of the chart in pixels.
Close

Related Articles

Wikiwand AI