Шаблон:График просмотра страниц/Документация: различия между версиями

Материал из Викиучебника — открытых книг для открытого мира
Содержимое удалено Содержимое добавлено
м уточнение
обновление templatedata c Template:Graph:PageViews/doc
 
Строка 30: Строка 30:
|}
|}


== TemplateData ==

<templatedata>
<templatedata>
{
{
Строка 39: Строка 39:
"label": {
"label": {
"en": "Number of days back",
"en": "Number of days back",
"fr": "Nombre de jours",
"hu": "Napok száma",
"he": "מספר ימים אחורה"
},
},
"description": {
"description": {
"en": "Number of days back to show in the chart",
"en": "Number of days back to show in the chart",
"fr": "Nombre de jour à montrer sur le graphique",
"hu": "A grafikonon megjelenítendő legutóbbi napok száma",
"he": "מספר ימים אחורה להצגת המידע"
}
}
},
},
Строка 47: Строка 53:
"label": {
"label": {
"en": "Page Title",
"en": "Page Title",
"fr": "Titre de la page",
"hu": "Lapcím",
"he": "דף"
},
},
"description": {
"description": {
"en": "Title of the page, with namespace, including needed spaces. If '_' is given, shows the total for the whole site",
"en": "Title of the page, with namespace, including needed spaces. If '_' is given, shows the total for the whole site",
"fr": "Titre de la page, avec l'espace de nom, incluant d'éventuels des espaces si nécessaire. Si '_' est passé, montre le total pour l'ensemble du site",
"hu": "A lap címe névtérrel és megfelelő szóközökkel. Ha az értéke „_”, akkor az egész wikire vonatkozóan jeleníti meg a statisztikát.",
"he": "שם הדף. הצבת '_' נותנת מידע על כל הדפים בוויקיפדיה יחד"
},
},
"type": "wiki-page-name",
"type": "wiki-page-name",
"default": {
"default": {
"en": "Name of the current article page (even if on talk page)",
"en": "Name of the current article page (even if on talk page)",
"fr": "Nom de l'article courent (même si posé sur une page de discussion)",
"hu": "Az aktuális laphoz tartozó tartalmi lap címe (szócikk címe a vitalapján is)",
"he": "הדף הנוכחי (בדף השיחה מוצג מידע על דף התוכן התואם)"
},
},
"example": {
"example": {
"en": "Main Page",
"en": "Main Page",
"fr": "Main Page",
"hu": "Kezdőlap",
"he": "ויקיפדיה:מזנון"
}
}
},
},
Строка 62: Строка 80:
"label": {
"label": {
"en": "Domain",
"en": "Domain",
"fr": "Domaine",
"hu": "wiki",
"he": "אתר"
},
},
"default": {
"default": {
"en": "Current wiki",
"en": "Current wiki",
"fr": "Wiki actuel",
"hu": "aktuális wiki",
"he": "ויקיפדיה העברית"
},
},
"example": "en.wikipedia.org",
"example": "en.wikipedia.org",
Строка 70: Строка 94:
"description": {
"description": {
"en": "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",
"en": "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",
"fr": "Domaine à partir duquel trouver les statistiques de visualisation de pages pour le titre donné, si ce n'est pas sur le wiki courant. Si '_' est passé en second paramètre, 'all-projects' peut être utilisé pour obtenir les données de tous les wikis.",
"hu": "A lekérdezendő wiki domainneve (ha nem az aktuális). Ha a második paraméter „_”, akkor lehet „all-projects” az összes wiki összefoglaló adatainak megjelenítéséhez",
"he": "אתר ויקי בו נמצא הדף, אם לא בוויקיעברית. במידה והפרמטר השני הוא '_', ניתן להשתמש בפרמטר הזה בערך 'all-projects' כדי לראות סיכום של כל אתרי ויקי בעולם"
}
}
},
},
Строка 75: Строка 102:
"label": {
"label": {
"en": "Graph color",
"en": "Graph color",
"fr": "Couleur du graph",
"hu": "Grafikon színe",
"he": "צבע הגרף"
},
},
"default": "#00f",
"default": "#00f",
Строка 81: Строка 111:
"description": {
"description": {
"en": "Shade with which to highlight the data in the chart",
"en": "Shade with which to highlight the data in the chart",
"fr": "Couleur avec laquelle mettre en avant les données dans le graph",
"hu": "A grafikon vonalának a színe",
"he": "צבע המידע בגרף"
}
}
},
},
Строка 86: Строка 119:
"label": {
"label": {
"en": "Graph scale",
"en": "Graph scale",
"fr": "Échelle du graph",
"hu": "Grafikon skálázása",
"he": "סולם מדידה"
},
},
"description": {
"description": {
"en": "Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold",
"en": "Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold",
"fr": "L'échelle peut être l'une de celles-ci : linear, log, pow, sqrt, quantile, quantize et threshold",
"hu": "A skálázás a következők egyike lehet: linear, log, pow, sqrt, quantile, quantize és threshold",
"he": "אחד מאלו: linear, log, pow, sqrt, quantile, quantize, threshold"
},
},
"default": "linear",
"default": "linear",
Строка 97: Строка 136:
"label": {
"label": {
"en": "Maximum Y value axis",
"en": "Maximum Y value axis",
"fr": "Valeur maximum de l'axe Y",
"hu": "Y tengely maximuma",
"he": "ערך Y מקסימלי"
},
},
"description": {
"description": {
"en": "This optional value might be useful to align multiple graphs side-by-side",
"en": "This optional value might be useful to align multiple graphs side-by-side",
"fr": "Cette valeur optionnelle peut être utile pour aligner plusieurs graphs côte-à-côte",
"hu": "Az y tengely méretének korlátozása, több grafikon összehasonlításakor lehet praktikus",
"he": "הערך המקסימלי של ציר Y, כדי לשים כמה גרפים אחד ליד השני להשוואה באותו גובה"
},
},
"default": {
"default": {
"en": "Automatically scaled to the data.",
"en": "Automatically scaled to the data.",
"fr": "Mise à l'échelle automatique des données",
"hu": "Az adatoktól függő",
"he": "לפי המידע בגרף"
},
},
"example": "10000",
"example": "10000",
Строка 110: Строка 158:
"label": {
"label": {
"en": "Width",
"en": "Width",
"fr": "Largeur",
"hu": "Szélesség",
"he": "רוחב"
},
},
"description": {
"description": {
"en": "Width for the chart in pixels, if different from the default.",
"en": "Width for the chart in pixels, if different from the default.",
"fr": "Largeur du graph en pixels, si différent de la valeur par défaut",
"hu": "A diagram szélessége képpontban",
"he": "רוחב הגרף בפיקסלים, אם שונה מברירת מחדל"
},
},
"type": "number",
"type": "number",
Строка 120: Строка 174:
"label": {
"label": {
"en": "Height",
"en": "Height",
"fr": "Hauteur",
"hu": "Magasság",
"he": "גובה"
},
},
"description": {
"description": {
"en": "Height for the chart in pixels, if different from the default.",
"en": "Height for the chart in pixels, if different from the default.",
"fr": "Hauteur du graph en pixels, si différent de la valeur par défaut",
"hu": "A grafikon magassága képpontban",
"he": "גובה הגרף בפיקסלים, אם שונה מברירת מחדל"
},
},
"type": "number",
"type": "number",
Строка 130: Строка 190:
"label": {
"label": {
"en": "Platform",
"en": "Platform",
"fr": "Plateforme",
"hu": "Platform",
"he": "פלטפורמה"
},
},
"description": {
"description": {
"en": "Computer platform could be one of these: all-access (all platforms together), desktop (regular browsers), mobile-web (mobile browsers), mobile-app (mobile wiki applications)",
"en": "Computer platform could be one of these: all-access (all platforms together), desktop (regular browsers), mobile-web (mobile browsers), mobile-app (mobile wiki applications)",
"fr": "Type de la plateforme utilisée pour accéder au wiki : all-access (toutes les plateformes réunis), desktop (navigateur web standard), mobile-web (navigateur web sur mobile), mobile-app (application mobile)",
"hu": "Platform, az alábbiak egyike: „all-access” (minden platform), „desktop” (asztali számítógépek böngészői), „mobile-web” (mobil eszközök böngészői) és „mobile-app” (mobil eszközökön futó Wikipédia-alkalmazások)",
"he": "פלטפורמת מחשב, אחת מאלו: all-access (כולן ביחד), desktop (דפדפנים רגילים), mobile-web (דפדפנים בניידים), mobile-app (אפליקציות ויקי בניידים)"
},
},
"type": "string",
"type": "string",
Строка 140: Строка 206:
"label": {
"label": {
"en": "Granularity",
"en": "Granularity",
"fr": "Granularité",
"hu": "Részletesség",
"he": "יחידות"
},
},
"description": {
"description": {
"en": "If the 2nd parameter is '_' (shows site stats), set data granularity monthly, daily, or hourly",
"en": "If the 2nd parameter is '_' (shows site stats), set data granularity monthly, daily, or hourly",
"fr": "Si le second paramètre est '_' (montrant les statistiques globales du wiki), définit la granularité des données : monthly (mensuel), daily (journalier), hourly (horaire)",
"hu": "Ha a második paraméter „_” (teljes wiki statisztikái), az adatok pontossága: „monthly” (havi), „daily” (napi) vagy „hourly” (óránkénti)",
"he": "אם הפרמטר השני הוא '_', ניתן לבחור בין daily ,monthly, או hourly"
},
},
"type": "string",
"type": "string",
"default": "monthly"
"default": "monthly"
},
"interpolate": {
"description": "Type of line interpolation. See https://github.com/vega/vega/wiki/Marks#line",
"example": "linear, step-before, step-after, basis, basis-open, basis-closed, bundle, cardinal, cardinal-open, cardinal-closed, monotone",
"type": "string",
"default": "monotone"
}
}
},
},
Строка 158: Строка 236:
"height",
"height",
"platform",
"platform",
"granularity"
"granularity",
"interpolate"
],
],
"format": "block",
"format": "block",
"description": {
"description": {
"en": "Inserts a graph with the page views statistics for the past N days of a page.",
"en": "Inserts a graph with the page views statistics for the past N days of a page.",
"fr": "Insère un graph représentant les statistiques de consultation d'une page pour les N derniers jours.",
"hu": "Beilleszt egy grafikont egy lap utóbbi N napra vonatkozó nézettségi statisztikájával.",
"he": "מציגה גרף צפיות לדף מסוים או לכל הדפים"
}
}
}
}

Текущая версия от 16:59, 6 августа 2020


Основная версия графика находится на странице Template:Graph:PageViews на MediaWiki. Пожалуйста, вносите все правки там и копируйте их всюду (пока копирование не автоматизируют)

{{ График просмотра страниц }}
30 дней текущей страницы (если существуют данные)
{{ График просмотра страниц | 90 | Заглавная страница | ru.wikibooks.org }}
90 дней Заглавной страницы в Русском Викиучебнике
{{ График просмотра страниц | 180 | _ }}
Ежемесячные посещения текущей вики (последние 6 месяцев)
{{ График просмотра страниц | 180 | _ | all-projects | granularity = daily }}
Ежемесячные посещения всех вики во всем мире (последние 6 месяцев)
{{ График просмотра страниц | | Заглавная страница | ru.wikibooks.org }}
30 дней Заглавной страницы в Русском Викиучебнике
{{ График просмотра страниц | | Заглавная страница | ru.wikibooks.org | platform = desktop}}
30 дней Заглавной страницы в Русском Викиучебнике - браузеры ПК
{{ График просмотра страниц | | Заглавная страница | ru.wikibooks.org | platform = mobile-web}}
30 дней Заглавной страницы в Русском Викиучебнике - мобильные браузеры
{{ График просмотра страниц | | Заглавная страница | ru.wikibooks.org | platform = mobile-app}}
30 дней Заглавной страницы в Русском Викиучебнике - мобильные приложения

TemplateData[править]

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. If '_' is given as parameter 2, 'all-projects' can be used here for all wiki sites summary data

По умолчанию
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
Числонеобязательный
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)

По умолчанию
all-access
Строковый (без форматирования)необязательный
Granularitygranularity

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

По умолчанию
monthly
Строковый (без форматирования)необязательный
interpolateinterpolate

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

По умолчанию
monotone
Пример
linear, step-before, step-after, basis, basis-open, basis-closed, bundle, cardinal, cardinal-open, cardinal-closed, monotone
Строковый (без форматирования)необязательный