Шаблон:Graph:PageViews/документація

Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігації Перейти до пошуку

This graph's main version resides at mediawiki Template:Graph:PageViews. Please make all the changes there and copy it everywhere else (until the copying is automated)

{{ Graph:PageViews }}
30 days for the current page (if there is data)
{{ Graph:PageViews | 90 | Main Page | en.wikipedia.org }}
90 days for Main Page on English Wikipedia
{{ Graph:PageViews | 180 | _ }}
Monthly visitors to the current wiki (last 6 months)

Inserts a graph with the page views statistics for the past N days of a page.

Параметри шаблону

Для цього шаблону краще блокове форматування параметрів.

ПараметрОписТипСтатус
Number of days back1

Number of days back to show in the chart

За замовчуванням
30
Числонеобов'язковий
Page Title2

Title of the page, with namespace, including needed spaces. If '_' is given, shows the total for the whole site

За замовчуванням
Name of the current article page (even if on talk page)
Приклад
Main Page
Назва сторінкинеобов'язковий
Domain3

Domain from which to find page views for the given title, if not this wiki.

За замовчуванням
Current wiki
Приклад
en.wikipedia.org
Рядокнеобов'язковий
Graph colorcolor

Shade with which to highlight the data in the chart

За замовчуванням
#00f
Приклад
#f00
Рядокнеобов'язковий
Graph scalescale

Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold

За замовчуванням
linear
Приклад
log
Рядокнеобов'язковий
Maximum Y value axismax

This optional value might be useful to align multiple graphs side-by-side

За замовчуванням
Automatically scaled to the data.
Приклад
10000
Числонеобов'язковий
Widthwidth

Width for the chart in pixels, if different from the default.

За замовчуванням
400
Числонеобов'язковий
Heightheight

Height for the chart in pixels, if different from the default.

За замовчуванням
200
Числонеобов'язковий
Granularitygranularity

If the 2nd parameter is '_' (shows site stats), set data granularity monthly, daily, or hourly

За замовчуванням
monthly
Рядокнеобов'язковий