תוסף:ShortUrl

From mediawiki.org
This page is a translated version of the page Extension:ShortUrl and the translation is 77% complete.
Not to be confused with Extension:UrlShortener or Manual:Short URL.
MediaWiki extensions manual
ShortUrl
Release status: stable
Implementation 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
Quarterly downloads 32 (Ranked 131st)
Translate the ShortUrl extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

ShortURL הוא תוסף למדי ויקי שעוזר לייצר קישורים מקוצרים לדפי ויקי, בשימוש של בסיס 36 (הערך באנגלית). הוא מוסיף, בנוסף, הוא מוסיף את אפשרות קיצור קישור לדף לתיבת הכלים בעורך מדיה ויקי. התוסף פותח בעיקר לערכים הכתובית בהינדו (הודו), אך ניתן להשתמש בתוסף למטרות שונות.

Installation

  • Download and place the file(s) in a directory called ShortUrl in your extensions/ folder.
  • 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 Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'ShortUrl' );, you need to use:

require_once "$IP/extensions/ShortUrl/ShortUrl.php";

אופן השימוש

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

הגדרות

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

ר' גם