Mobile Gateway/Mobile homepage formatting/zh

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 in responsive skins such as  and.

如果您的维基百科项目首页（主页）中尚未开启移动版视图，且您是该项目的管理员，请参照后面的说明开启.

请注意：您必须具有管理员权限才能编辑首页.

Hiding content on mobile
首先，确定哪些内容适合移动版首页.

评估桌面版的页面元素（如“每日图片”）并询问：


 * 它们受欢迎吗？
 * 它们正常更新吗？
 * 它们适合快速阅读吗？
 * 它们在移动屏幕上阅读舒适吗？

当您选择好了需要的元素，请继续第二步.

您必须具有管理权限且登录后才能进行以下操作. 在首页的桌面版视图中，点击 "" 并找到要在移动版中显示的元素.

所有您希望從頁面上排除的元素都需要給予「nomobile」類別或包在含有此類別的元素內.



在 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 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.

点击“”.

Make sure to test all your changes!