ויקיבייס/התקנה

From mediawiki.org
This page is a translated version of the page Wikibase/Installation and the translation is 82% complete.
Outdated translations are marked like this.
מסמך זה מכסה את התקנת הרחבת ויקיבייס למדיה־ויקי. For manual installation instructions for Wikibase Suite, see Wikibase/Suite . For instructions installing Wikibase Suite under Docker, see Wikibase/Docker .

This page provides step-by-step instructions for installing a basic, minimal version of Wikibase. If you're interested in more advanced configurations, please refer to the advanced configuration guide. More detailed documentation bound to each version of the code can be found in the docs folder of the Wikibase source repository: see doc.wikimedia.org.

תנאי קדם

MediaWiki

Since Wikibase is an extension (actually two extensions) to MediaWiki, you'll first need to set up MediaWiki.

Warning Warning: ויקיבייס אינה שומרת על תאימות עם גרסאות ישנות של מדיה־ויקי! גרסאות עדכניות יותר של ויקיבייס כנראה שלאתעבודנה עם גרסאות ישנות יותר של מדיה־ויקי (ולהיפך). Use the most recent versions of MediaWiki and Wikibase (master branches), or download the Wikibase release that matches your version of MediaWiki.

Composer

The easiest way to install all dependencies for Wikibase is to use Composer. Install Composer using these instructions.

התקנה

התקנה בסיסית של ויקיבייס מורכבת מארבעה שלבים:

  1. הורדת ויקיבייס
  2. התקנת התלויות
  3. עריכת LocalSettings.php
  4. הרצת סקריפטים לתחזוקה

המדריך הבא ידריך אותך בביצוע הצעדים האלה.

לפני שמתחילים

Make sure you've set up MediaWiki and installed Composer.

Fresh MediaWiki

הורדת ויקיבייס

Determine which version of MediaWiki you have by navigating to wiki/Special:Version; use the Wikibase release corresponding to your MediaWiki version.

If you have the latest version of MediaWiki, download the latest version of Wikibase (or the version matching your MediaWiki installation) into the extensions folder of your MediaWiki installation.

התקנת התלויות

Thanks to the composer-merge-plugin, you can simply rename the composer.local.json-sample file in the root of your MediaWiki install directory to composer.local.json.

ואז, מתיקיית העל של התקנת המדיה־ויקי שלך להריץ את הפקודה:

rm composer.lock

לאחר מכן, בהנחה שה־composer זמין כקובץ בינרי:

composer install --no-dev

עריכת LocalSettings.php

For repositories whose version numbers are 1.36+

If you intend to run a wiki where Wikibase entries are edited, then you want a Wikibase repository and should include the following in your 'LocalSettings.php'.

wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" );
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";

For clients whose version numbers are 1.36+

If you intend to run a wiki which takes data from a different wiki instance where the entries are created, then you want a Wikibase client and should include the following in your 'LocalSettings.php'.

wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" );
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";

For repositories whose version numbers are 1.36 or lower

If you intend to run a wiki where Wikibase entries are edited, then you want a Wikibase repository and should include the following in your 'LocalSettings.php'.

$wgEnableWikibaseRepo = true;
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";

For clients whose version numbers are 1.36 or lower

If you intend to run a wiki which takes data from a different wiki instance where the entries are created, then you want a Wikibase client and should include the following in your 'LocalSettings.php'.

$wgEnableWikibaseClient = true;
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";

הרצת סקריפטים לתחזוקה

לבסוף, יש להריץ כמה סקריפטים לתחזוקה -- ביניהם סקריפט עדכון מסד הנתונים והסקריפטים שממלאים את טבלת האתרים ואת טבלת הבינוויקי.

MediaWiki version:
1.36
php maintenance/run.php ./maintenance/update.php
php maintenance/run.php ./extensions/Wikibase/lib/maintenance/populateSitesTable.php
php maintenance/run.php ./extensions/Wikibase/repo/maintenance/rebuildItemsPerSite.php
php maintenance/run.php ./maintenance/populateInterwiki.php
MediaWiki version:
1.35
php maintenance/update.php
php extensions/Wikibase/lib/maintenance/populateSitesTable.php
php extensions/Wikibase/repo/maintenance/rebuildItemsPerSite.php
php maintenance/populateInterwiki.php
כברירת מחדל, הרצת populateSitesTable.php ממלאת את טבלת האתרים ברשימת המיזמים של ויקימדיה. See Manual:Sites table#Managing the sites table for how to list non-WMF projects.
Running populateInterwiki.php will overwrite existing links in your interwiki table with Wikipedia values.

בדיקת תקינות ההתקנה שלך

  • Navigate to the Special:NewItem page in your MediaWiki and create your first Item. נא למלא תווית ותיאור וכינויים כרשות וללחוץ על יצירה. אמורה להתבצע הפניה לדף הפריט.
Special:NewItem דף מיוחד
הפריט הראשון שלך
  • כדאי לוודא שהקישור „הוספת קישורים” בסעיף languagelinks מופיע בסרגל הצד הראשי של הדף.
דף הפריט הראשון

הפניות

קובץ ההסברים של ויקיבייס