Jump to content

תוסף:ShortUrl

From mediawiki.org
This page is a translated version of the page Extension:ShortUrl and the translation is 41% complete.
Outdated translations are marked like this.
Not to be confused with: Extension:UrlShortener, Manual:Short URL.
מדריך להרחבות מדיה-ויקי
ShortUrl
סטטוס שחרור: גרסה יציבה
יישום Special page
Description תוסף זה מוסיף דף מיוחד שמעביר את המשתמש למאמר המבוסס על בסיס 36 מקודד.
Author(s) Yuvi Panda
Latest version 1.2.0 (2015-01-29)
MediaWiki 1.25+
Database changes Yes
Tables shorturls
License BSD 3-clause "Modified" License
Download
  • $wgShortUrlTemplate
  • $wgShortUrlReadOnly
Translate the ShortUrl extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

ShortURL הוא תוסף למדי ויקי שעוזר לייצר קישורים מקוצרים לדפי ויקי, בשימוש של בסיס 36 (הערך באנגלית). הוא מוסיף, בנוסף, הוא מוסיף את אפשרות קיצור קישור לדף לתיבת הכלים בעורך מדיה ויקי. התוסף פותח בעיקר לערכים הכתובית בהינדו (הודו), אך ניתן להשתמש בתוסף למטרות שונות. Adds a "Short URL" link to the Toolbox. Primarily developed for use in the Indic Language Wikipedias.

Installation

  • Download and move the extracted ShortUrl folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ShortUrl
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ShortUrl' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes בוצע – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

אופן השימוש

  1. כאשר מותקן, אפשרות ההפניה זמינה דרך הדף Special:ShortUrl/<base36> .
  2. קישורים להפניות יכולים להימצא בתיבת הכלים, תחת החלק העליון. (שפת JavaScript בלבד)

הגדרות

  1. (אופציונלי) הרץ: populateShortUrlTable.php הסקריפט לתיקון ושיפור. מחליף את קיצור הקישור עם ההתאמות בכל המאמרים.

Fills the shorturls database table with entries for all namespace/title parts of all currently existing articles.

  1. שנה את המשתנה $wgShortUrlTemplate לתבנית הקובץ על מנת לייצר קישור מקוצר. $1 מוחלף עם הקישור המקוצר עצמו.

$1 is replaced with the actual short URL ID.

ר' גם