Template:Page views double/doc

This template displays two page view graphs and is designed for articles with spiky page views; that is, articles that are mostly stable but may trend or go viral for short periods due to media attention or innate periodicity of the topic. The template reports daily page views in two stacked graphs (default: the last six months in log scale on the top, and the last 30 days in linear scale below), placing them in a suitable frame with individual headings. It is typically placed on an article's talk page below other talk page banners. Non-trending pages with stable viewership over time do not need to use this template; try the simpler Annual readership template instead.

Usage
Basic syntax:
 * – one six-month log-scale graph on top, one 30-day linear-scale under it
 * – change to one year on top, two months on bottom
 * – same as above, using positional params 1 and 2

Template syntax with optional parameters:

Optional parameters
Overall parameters:
 * expanded can be used to override the default auto-collapsing of the message box. To prevent the graph from being collapsed on page load, use true.
 * target (default:  ) can be used to simultaneously specify the page in the graph title (if title is not specified) and the page for which page traffic is displayed.
 * title (default: see notes) can be used to specify the page in the graph title.
 * width (default: 570) may be used to change the width in pixels of the image.
 * Note: Default of 570px is used to match standard Talk page boxed items; values outside the range of 400–980 may be problematic.
 * height (default: 200) may be used to change the height.

Top graph:
 * days1 (default: 182) can be used to change the number of pageview days depicted in the graph. Alias: 1.
 * color1 (default: #f30) can be used to change the graph color; accepted inputs include HTML color names (e.g., red, slategray, cornsilk) and hex codes (e.g., #0080ff, #fc0).
 * scale1 (default: log) can be used to change the scale of the y axis; accepted inputs: linear, log, pow, sqrt, quantile, quantize, and threshold.

Bottom graph:
 * days2 (default: 30) pageview days in bottom graph. Alias: 2.
 * color2 (default: #0c6) graph color for bottom graph.
 * scale2 (default: linear) can be used to change the scale of the y axis; accepted inputs: linear, log, pow, sqrt, quantile, quantize, and threshold.

Notes about the graph title
If neither title or target are specified, the graph title varies depending on the namespace of the page where this template is used.
 * Title if placed on an article talk page:
 * Daily of this article
 * Title if placed on a page in any other talk namespace (e.g., "User talk:", "Template talk:", "Wikipedia talk:", etc.):
 * Daily of   
 * Title if placed on any subject page (i.e., pages in namespaces like "User:", "Template:", "Wikipedia:", etc.):
 * Daily of this page

If title is not specified, but target is specified, the graph title is set as "Daily pageviews of target page", with the target page linked.
 * For example, inputting XYZ would set the graph title as:
 * Daily of XYZ

If title is specified, regardless of the specification of target, the graph title is set as "Daily pageviews of text", with the text unlinked.
 * For example, inputting XYZ would set the graph title as:
 * Daily of XYZ
 * For example, inputting XYZ would set the graph title as:
 * Daily of XYZ

Template parameters
{	"params": { "target": { "label": "Target", "description": "May be used to specify the page for which page traffic is displayed, and the title (if empty).", "type": "wiki-page-name", "default": "Name of the current article page", "example": "Main Page" },		"title": { "label": "Title", "description": "May be used to specify the page name in the graph title (for default, see doc)", "type": "string", "default": "(varies per namespace, if none specified; see doc)" },		"1": {			"type": "number", "default": "182", "label": "Number of days back", "description": "Number of days back to show in the top chart" },		"2": {			"type": "number", "default": "30", "label": "Number of days back to show in bottom chart", "description": "Number of days back to show in bottom chart" },		"color1": { "label": "Graph color for top chart", "default": "#f30", "example": "#f00", "type": "string", "description": "Shade with which to highlight the data in the top chart" },		"color2": { "label": "Graph color for bottom chart", "default": "#0c6", "example": "#f00", "type": "string", "description": "Shade with which to highlight the data in the bottomchart" },		"scale1": { "label": "Graph scale for top chart", "description": "Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold", "default": "log", "example": "linear", "type": "string" },		"scale2": { "label": "Graph scale for bottom chart", "description": "Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold", "default": "linear", "example": "log", "type": "string" },		"expanded": { "label": "Expanded", "description": "Set to true to override the default collapsed state", "type": "boolean", "default": "false" },		"width": { "label": "Width", "description": "Width for the chart in pixels, if different from the default.", "type": "number", "default": "470" },		"height": { "label": "Height", "description": "Height for the chart in pixels, if different from the default.", "type": "number", "default": "200" }	},	"format": "block", "description": "This template inserts two vertically stacked graphs of daily pageview statistics (Y axis) over the past N days (X axis) for a page." }

Redirects

 * Annual Readership double
 * Pageviews double