Predloga:Graph:PageViews

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

Template parameters[uredi kodo]

To je TemplateData dokumentacija za predlogo, ki jo uporablja VisualEditor in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Graph:PageViews

This template inserts a graph of daily pageview statistics (Y axis) over the past N days (X axis) for a page.

Parametri predloge

Za to predlogo je priporočljiva postavitev parametrov v bloku.

ParameterOpisVrstaStanje
Number of days back1

Number of days back to show in the chart

Privzeto
30
Številkaizbirno
Page Title2

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

Privzeto
Name of the current article page (even if on talk page)
Zgled
Main Page
Ime straniizbirno
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

Privzeto
Current wiki
Zgled
en.wikipedia.org
Nizizbirno
Graph colorcolor

Shade with which to highlight the data in the chart

Privzeto
#00f
Zgled
#f00
Nizizbirno
Graph scalescale

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

Privzeto
linear
Zgled
log
Nizizbirno
Maximum Y value axismax

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

Privzeto
Automatically scaled to the data.
Zgled
10000
Številkaizbirno
Widthwidth

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

Privzeto
800
Številkaizbirno
Heightheight

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

Privzeto
200
Številkaizbirno
Granularitygranularity

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

Privzeto
monthly
Nizizbirno
platformplatform

brez opisa

Neznanoizbirno
interpolateinterpolate

brez opisa

Neznanoizbirno

Examples[uredi kodo]

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)
{{ Graph:PageViews | 180 | _ | all-projects | granularity = daily }}
Daily visitors to all worldwide wikis (last 6 months)

Usage tips[uredi kodo]

Width in Talk headers – When using Graph:PageViews in the header section of an article Talk page, use |width=565 in order to generate a graph element that matches other standard elements often found in talk page headers.

Captions – Some talk pages embed Graph:PageViews within {{Info}} to add a leading caption.

Vertical height – Save vertical space in a Talk page header, with the collapse templates {{cot}}/{{cob}}. Example: this talk page uses standard talk header width, adds a caption, and collapses the graphs.

See also[uredi kodo]