Jump to content

Template:Pageviews/doc

From Appropedia

Use this template to create line charts of the pageviews of specific pages or categories. If the page name is omitted, the current page is used. If the given page is a category, the combined pageviews of all pages in the category will be shown.

Use several calls to this template to keep track and compare different pages and create project dashboards.

Examples

[edit source]

Simple

[edit source]
{{Pageviews|Solar cooker}}
{{Pageviews
| page = Category:SELF
| days = 180
| frequency = daily
| height = 500
}}

See also

[edit source]

Template data

[edit source]

Use this template to create line charts of the pageviews of specific pages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Pagepage 1

Title of the page for which to display the pageviews

Default
The current page
Example
Solar cooker
Page namesuggested
Daysdays

How many days of data to show

Suggested values
30 90 365
Default
All available data
Example
180
Numberoptional
Frequencyfrequency

How to group data

Suggested values
daily monthly
Default
monthly
Example
daily
Stringoptional
Heightheight

Height of the chart, in pixels

Default
200
Example
500
Numberoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.