Mobile Gateway/Mobile homepage formatting/ar

This page is a translated version of the page Mobile Gateway/Mobile homepage formatting and the translation is 26% complete.

Main pages of MediaWiki instances which go beyond traditional text (for example using two column layouts) usually require special treatment to display on mobile via Extension:TemplateStyles in responsive skins such as Skin:Timeless and Skin:Minerva .

إن لم يتم تنسيق الصفحة الرئيسية التابعة لمشروع ويكيميديا الخاص بك ليتم عرضها على أجهزة الجوال، وكنت مسؤولا عن ذلك المشروع، رجاءاَ أتّبع التعليمات المبينة أدناه.

Please note: In most cases, you must have administrator rights in order to edit the main page.

Hiding content on mobile

First, decide what content is suitable for the mobile homepage.

Evaluate the page elements in the desktop version (e.g. "Picture of the Day") by asking:

  • how popular are they?
  • are they updated regularly?
  • are they suitable for quick reading?
  • will they fit nicely in a mobile screen?

Once you decide which elements make sense, proceed to Step 2.

عليك أن تقوم بتسجيل الدّخول وأن تكون حاصلاََ على صلاحياّت مسؤول للقيام بما يلي. من سطح المكتب للصفحة الرئيسية، أنقر على "عدِّل" و ابحث عن العناصر التي تودّ في إضافتها في عرض الجوّال.

يجب أن تضيف تعليمات قصيرة في نص الويكي، لكلّ عنصر، والمسمّاة بـ "mf selector"، بين علامتي div، هكذا:

<div class="nomobile"> ... </div>

ماذا أضيف بين بداية ونهاية علامتي div؟ من المرجّح أن يكون نموذجاََ لعنصر الصّفحة، مثل "صورة اليوم".

Using responsive styles

Certain styles are not mobile friendly. For example any css rules which make use of fixed pixel size e.g. width, height, padding. If different style treatment is needed please use Extension:TemplateStyles or port these styles to MediaWiki:Common.css or MediaWiki:Mobile.css. TemplateStyles is recommended but 3rd parties may wish to use the MobileFrontend feature flag $wgMFSiteStylesRenderBlocking.

For common problems with table based layouts, you can use the styles in the Minerva compatiblity template.

Some tips on common problems are addressed at Making MediaWiki Mobile Friendly .

انقر على "حفظ الصفحة".

Make sure to test all your changes!