Manual:Footer/ar

إضافة وصلات إلى التذييل

إصدار ميدياويكي:
1.35

يمكنك القيام بذلك في LocalSettings.php. راجع الأمثلة التالية:

وصلات داخلية
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
    if ( $key === 'places' ) {
        $footerlinks['test'] = Html::rawElement( 'a', [
			'href' => Title::newFromText(
				$skin->msg( 'test-page' )->inContentLanguage()->text()
			)->getFullURL()
		], $skin->msg( 'test-desc' )->escaped() );
    };
};
وصلات خارجية
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
    if ( $key === 'places' ) {
        $footerlinks['test'] = Html::rawElement( 'a',
            [
                'href' => 'https://www.example.org/wiki/Project:Imprint',
                'rel' => 'noreferrer noopener' // not required, but recommended for security reasons
            ],
        $skin->msg( 'test-desc' )->escaped() // test-desc is an i18n message of the text
        );
    };
};

في الأمثلة السابقة، "test-page" و"test-desc" هما المفتاحان لـ رسائل النظام المضافة عبر الكود. لا تنس إضافة النص المطلوب إلى الصفحتين "$3" و"$4"، على التوالي، بعد إضافة الكود الخاص بوصلات التذييل الإضافية إلى ملف "LocalSettings.php". Do not forget to add the desired text to the pages MediaWiki:Test-page and MediaWiki:Test-desc, respectively, after you added the code for the extra footer links to the LocalSettings.php file.

In JavaScript

Menus can be extended using

mw.util.addPortletLink('footer-links', 'link', 'link' )

Note for MediaWiki versions before 1.44.0

Prior to the 1.44.0 release, the mobile site by default hides any additional links via CSS. You can workaround this by adding the following rule to MediaWiki:Minerva.css.

ul.footer-places li {
  display:inline !important;
}

إضافة نص إلى التذييل

إصدار ميدياويكي:
1.35

يمكنك أيضًا إضافة نص مخصص عبر LocalSettings.php. فيما يلي مثال لإضافة نص ويكي إلى التذييل:

$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
    if ( $key === 'info' ) {
        $footerlinks['tagline'] = $skin->msg( 'footer-tagline' )->parse();
    }
};

يضيف هذا footer-tagline كمفتاح لرسالة النظام ليجري عرضها في التذييل. بعد إضافة الكود إلى MediaWiki:Footer-tagline، يرجى تعديل الصفحة MediaWiki:Footer-tagline لتحرير نص التذييل المضاف حديثًا.

تخصيص العناصر المضمنة

يمكنك أيضًا تخصيص العناصر المضمنة الفردية عن طريق تعديل صفحات أو معلمات معينة:

lastmod
تحرير MediaWiki:Lastmodifiedat. إذا جرى تمكين $wgMaxCredits قم بتحرير MediaWiki:Lastmodifiedatby. وقد ترغب أيضًا في تعديل MediaWiki:othercontribs لإظهار المساهمين الآخرين. (6518)
credits
  • إذا لم يكن $wgMaxCredits فارغا، فسيعرض محرري الصفحة
  • أي، وضع $wgMaxCredits = 10; أو أي رقم آخ
copyright
edit MediaWiki:Copyright-footer (in older MediaWiki versions, MediaWiki:Copyright). The parameter $1 on that page is replaced with a link to the details of copyright for your wiki. In LocalSettings.php $wgRightsText for the link text and set either $wgRightsPage or $wgRightsUrl with the location of a wiki page or external URL.
privacy
this is a link only. Edit MediaWiki:Privacy for the link text and MediaWiki:Privacypage for the wiki page to which to link.
about
this is a link only. Edit MediaWiki:Aboutsite for the link text and MediaWiki:Aboutpage for the wiki page to which to link.
disclaimer
this is a link only. Edit MediaWiki:Disclaimers for the link text and MediaWiki:Disclaimerpage for the wiki page to which to link.
tagline
لا يُستخدم حاليًا في التذييل. If you would like to add text to the footer, see #Add text to the footer.

To remove the privacy, about and/or disclaimer links entirely, replace the link text with a single dash ("-").

الصور

انظر $wgFooterIcons.

انظر أيضًا

Category:MediaWiki configuration/ar#Footer/ar Category:Skinning/ar#Footer/ar
Category:MediaWiki configuration/ar Category:Skinning/ar