মোবাইল গেটওয়ে/মোবাইল প্রধান পাতা বিন্যাসন

From mediawiki.org
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 .

If the main page (homepage) of your Wikimedia project has not been formatted to be viewed on mobile devices, and you are an administrator of that project, please follow the instructions below.

দয়া করে মনে রাখবেন: হোমপেজটি সম্পাদনা করার জন্য আপনার অবশ্যই প্রশাসকের অধিকার থাকা উচিত।

Hiding content on mobile

প্রথমে, মোবাইল হোমপৃষ্ঠার জন্য কোন বিষয়বস্তু উপযুক্ত তা নির্ধারণ করুন।

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

  • তারা কেমন জনপ্রিয়?
  • তাদের কী নিয়মিত আপডেট করা হয়?
  • তারা কী দ্রুত পড়া জন্য উপযুক্ত?
  • তারা কী একটি মোবাইল পর্দায় সুন্দরভাবে মাপসই হবে?

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

You must be logged in and have administrative rights to do the following. On the desktop view of the homepage, click "সম্পাদনা" and find the elements you want to include in the mobile view.

Each element you want excluded from the page should be given a class "nomobile" or wrapped in an element with this class present.

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

What goes in between the opening and closing div tags? It will most likely be a template for the page element, such as "Picture of the Day".

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!