Plantilla:Graph:PageViews/ús

De Viccionari
Salta a la navegació Salta a la cerca
Aquesta és una subpàgina auxiliar per a Plantilla:Graph:PageViews
Vegeu aquesta pàgina pel codi de la plantilla

Té la informació d'ús, les categories, els enllaços interwiki i qualsevol altre contingut que no forma part essencial de la plantilla.

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 | Viccionari:Portada | ca.wiktionary.org }}
90 days for Main Page on Catalan Wiktionary
{{ Graph:PageViews | 180 | _ }}
Monthly visitors to the current wiki (last 6 months)
{{ Graph:PageViews | 180 | _ | all-projects | granularity = daily }}
Daily visitors to all worldwide wikis (last 6 months)
{{ Graph:PageViews | 30 | Viccionari:Portada | ca.wiktionary.org}}
30 days for Main Page on Catalan Wiktionary
{{ Graph:PageViews | 30 | Viccionari:Portada | ca.wiktionary.org | platform = desktop}}
30 days for Main Page on Catalan Wiktionary - desktop computer browsers
{{ Graph:PageViews | 30 | Viccionari:Portada | ca.wiktionary.org | platform = mobile-web}}
30 days for Main Page on Catalan Wiktionary - mobile browsers
{{ Graph:PageViews | 30 | Viccionari:Portada | ca.wiktionary.org | platform = mobile-app}}
30 days for Main Page on Catalan Wiktionary - mobile applications

Template may be used with different parameter order. For example, in English Wikipedia

  • {{Graph:PageViews|90|Main Page}}
  • {{Graph:PageViews|Main Page|90}}
  • {{Graph:PageViews|Main Page|en.wikipedia.org|90}}

will give the same output.

TemplateData[modifica]

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

Paràmetres de la plantilla

Aquesta plantilla prefereix el format dels paràmetres en diferents línies.

ParàmetreDescripcióTipusEstat
Number of days back1

Number of days back to show in the chart

Per defecte
30
Nombreopcional
Page Title2

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

Per defecte
Name of the current article page (even if on talk page)
Exemple
Main Page
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

Per defecte
Current wiki
Exemple
en.wikipedia.org
Cadenaopcional
Graph colorcolor

Shade with which to highlight the data in the chart

Per defecte
#00f
Exemple
#f00
Cadenaopcional
Graph scalescale

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

Per defecte
linear
Exemple
log
Cadenaopcional
Maximum Y value axismax

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

Per defecte
Automatically scaled to the data.
Exemple
10000
Nombreopcional
Widthwidth

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

Per defecte
400
Nombreopcional
Heightheight

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

Per defecte
200
Nombreopcional
Platformplatform

Computer platform could be one of these: all-access (all platforms together), desktop (regular browsers), mobile-web (mobile browsers), mobile-app (mobile wiki applications)

Per defecte
all-access
Cadenaopcional
Granularitygranularity

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

Per defecte
monthly
Cadenaopcional
Interpolateinterpolate

Type of line interpolation. See https://github.com/vega/vega/wiki/Marks#line

Per defecte
monotone
Exemple
linear, step-before, step-after, basis, basis-open, basis-closed, bundle, cardinal, cardinal-open, cardinal-closed, monotone
Cadenaopcional