Jump to content

Wikipedia:Wikipedia Signpost/Templates/Pageview hack/doc

From Wikipedia, the free encyclopedia

This was forked from Template:Graph:PageViews on 00:47, 6 November 2022 (UTC); extremely detailed documentation is available there. This version modifies a couple things, to make it possible to get pageviews for intervals that aren't tied to the current date.

Note from 02:03, 29 June 2023 (UTC): This is not very useful anymore. See the WegweiserBot modules: pageview data is now stored in pages like Module:Signpost/index/2023. jp×g 02:03, 29 June 2023 (UTC)[reply]

Usage

[edit]
  • {{{1}}}: Number of days forward (default is 30).
  • {{{2}}}: Page title (required).
  • {{{start}}}: Start date, i.e. oldest date to get pageviews from.
  • {{{scale}}}: linear, log, pow, sqrt, quantile, quantize, or threshold.
  • {{{max}}}: Maximum Y value.
  • {{{width}}} and {{{height}}}: Should be obvious. Defaults are 800 and 200.
  • {{{color}}}: Graph color. Default is #00f.

{{Wikipedia:Wikipedia Signpost/Templates/Pageview hack|180|Dog|start=2017-01-01|scale=log|max=10000|height=480|width=640}} will look like this: