Predefinição:Gráfico de visualizações/doc

Origem: Wikipédia, a enciclopédia livre.

Descrição[editar código-fonte]

Gera um gráfico de visualizações da página

Uso[editar código-fonte]

Usar em páginas de discussão

Cabeçalho de TemplateData

As informações a seguir (editar) são definidas com TemplateData. Isso possibilita o seu uso pelo Editor Visual e por outras ferramentas. Predefinição:Gráfico de visualizações/dados

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)

{{ Gráfico de visualizações }}
30 days for the current page (if there is data)
{{ Gráfico de visualizações | 90 | Main Page | en.wikipedia.org }}
90 days for Main Page on English Wikipedia
{{ Gráfico de visualizações | 180 | _ }}
Monthly visitors to the current wiki (last 6 months)
{{ Gráfico de visualizações | 180 | _ | all-projects | granularity = daily }}
Daily visitors to all worldwide wikis (last 6 months)

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

Parâmetros da predefinição

Esta predefinição prefere a formatação em bloco dos parâmetros.

ParâmetroDescriçãoTipoEstado
Number of days back1

Number of days back to show in the chart

Padrão
30
Númeroopcional
Page Title2

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

Padrão
Name of the current article page (even if on talk page)
Exemplo
Main Page
Nome da páginaopcional
Domain3

Domain from which to find page views for the given title, if not this wiki. If '_' is given as parameter 2, 'all-projects' can be used here for all wiki sites summary data

Padrão
Current wiki
Exemplo
en.wikipedia.org
Stringopcional
Graph colorcolor

Shade with which to highlight the data in the chart

Padrão
#00f
Exemplo
#f00
Stringopcional
Graph scalescale

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

Padrão
linear
Exemplo
log
Stringopcional
Maximum Y value axismax

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

Padrão
Automatically scaled to the data.
Exemplo
10000
Númeroopcional
Widthwidth

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

Padrão
400
Númeroopcional
Heightheight

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

Padrão
200
Númeroopcional
Granularitygranularity

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

Padrão
monthly
Stringopcional

Ver também[editar código-fonte]