תוסף: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 26 (Ranked 124th)
Translate the ShortUrl extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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

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 Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

אופן השימוש

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

הגדרות

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

ר' גם