Extension:AddPersonalUrls

This page is a translated version of the page Extension:AddPersonalUrls and the translation is 100% complete.
MediaWiki manüel uzantıları
AddPersonalUrls
Sürüm durumu: kararlı
Uygulama Vikim , Görünüm
Açıklama Kişisel URL'lere bazı öğeler ekleyin.
Yazar(lar) RV1971 (RV1971mesaj)
En son sürüm 1.2.1 (2018-12-19)
Uyumluluk politikası MediaWiki ile birlikte anlık görüntüler yayımlanır. Master geriye dönük olarak uyumlu değil.
MediaWiki 1.30+
PHP 5.4
Lisans GNU Genel Kamu Lisansı 3.0 veya üstü
İndir

  • $wgAddPersonalUrlsTable
Quarterly downloads 15 (Ranked 125th)
Translatewiki.net adresinde mevcutsa, AddPersonalUrls uzantısını çevirin
Sorunlar Açık görevler · Hata bildir

AddPersonalUrls uzantısı, kişisel URL'lere bazı öğeler ekler (Vector görünümünde ekranın üst kısmına yakın bir yerde bulunan bağlantılar). Tamamen yapılandırılabilir olsa da, aşağıdakileri ekleyen varsayılan bir yapılandırma ile birlikte gelir:

  • Kullanıcının ana sayfasının tüm alt sayfalarının listesinin bağlantısı.
  • Kullanıcının ana sayfasının Ana Sayfa, Sık Kullanılanlar, Deneme Tahtası ve Notlar alt sayfalarına bağlantılar.

Başlangıçta, yeni alt sayfalar, amaçlarını açıklayan yapılandırılabilir bir varsayılan metinle doldurulur. Her kullanıcı bunları kişisel ihtiyaçlarına göre düzenleyebilir.

Kurulum

  • Dosyaları indirin ve extensions/ klasörünüzdeki AddPersonalUrls adlı dizine yerleştirin.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AddPersonalUrls
  • LocalSettings.php dosyanızın altına aşağıdaki kodu ekleyin:
    wfLoadExtension( 'AddPersonalUrls' );
    
  •   Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için vikinizde Special:Version seçeneğine gidin.

Yapılandırma

URL tablosu

The additional URLs are defined in extension.json, and you may customize them by overriding or adding items in $wgAddPersonalUrlsTable in your LocalSettings.php. The table is an array where each entry assigns an ID to a (partial) URL as follows:

  • URLs are inserted after the link to the user's home page, in the order in which they appear in the array.
  • Items where the URL is set to NULL are ignored. This allows to deactivate in LocalSettings.php items defined in extension.json.
  • The ID is the name of a system message used to display the link. AddPersonalUrls is shipped with default messages (in the languages de, en, fr and it) for the links in the default $wgAddPersonalUrlsTable.
  • The URL is either a page name (without brackets), optionally followed by a '?' and a query string, or an external link. A URL is recognized an external link if it contains the string '://'. I'm sure you'll find a better way, so please let me know your ideas.
  • The string $username will be replaced with the current username. Note that in LocalSettings.php, you need to write the URL within single quotes to avoid that PHP already interprets $username while processing LocalSettings.php, in which case it would evaluate to an empty string.

The default content of $wgAddPersonalUrlsTable is currently as follows:

$wgAddPersonalUrlsTable = array(
	'addpersonalurls-userpages'
	=> 'Special:PrefixIndex?prefix=$username&namespace=2',
	'addpersonalurls-home' => 'Special:Mypage/Home',
	'addpersonalurls-favorites' => 'Special:Mypage/Favorites',
	'addpersonalurls-sandbox' => 'Special:Mypage/Sandbox',
	'addpersonalurls-notes' => 'Special:Mypage/Notes'
);

Mesajlar

Since the extension defines a lot of messages which are constantly evolving with further development, they are not documented here. Please refer to i18n/qqq.json.

When a personal page does not exist, the URL opens the page for editing, and the content of the system messages ID-preload and addpersonalurls-preload is preloaded. This will also work for any URLs you add, provided that ID is equal to addpersonalurls-subpage_title_in_lowercase.

CSS

In the resulting HTML code, each link is wrapped into an <li> element having an id attribute with value pt-ID. This is a feature provided by MediaWiki and allows to format personal URLs individually via CSS.

The AddPersonalUrls extension uses this feature to add icons, taken from the Wikicommons Nuvola icons, to the new links as well as to the existing ones provided by MediaWiki. You can override this with your own CSS.

Sürüm notları

These are the release notes for version 1.2.1. See Extension:AddPersonalUrls/History for older releases.

Yapılandırma değişiklikleri

Allow to deactivate in $wgAddPersonalUrlsTable items predefined in extension.json.