Mobile Gateway/Mobile homepage formatting/zh

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

不久，所有维基媒体项目在移动设备上访问时默认都会显示移动版视图（不包括平板），请参阅建议时间表. 如果首页尚未格式化为移动视图，则用户看不到内容. 因此，在首页的桌面版中选择适合移动视图的内容非常重要.

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

第一步
首先，确定哪些内容适合移动首页.

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


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

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

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

您希望在移动版首页中显示的每个元素都必须加上 id="mf-..." 属性标识（其中“...”是唯一名，请使用人类可读的内容）. 您需要调用这些“mf 选择器”. 一种方法是把这些元素放在 div 标记中并在该标记中放入“mf 选择器”，类似这样：

请注意：字母 ABC 应替换为唯一的标题.

在 div 的开标签和闭标签之间应放什么呢？大多数时候应是页面元素的模板，例如“每日图片”. 该选择器的标签由您选择，不过应该是唯一且具有描述性的.

If the element to include is a wiki table, you may put the "mf selector" (id="mf-...") within the table's attributes spot. That works, too.

点击“”.

(Please note that there are older mobile selectors in the format "mp-ABC," which were adopted by a number of sites in the past. Those will continue to work, but for new formatting, the mf selectors are recommended.)

You are almost done.

Step 3
Now go to the mobile URL, which is typically languagecode.m.project.org. If your project doesn't have a mobile URL, please contact the mobile team at. You can reduce the width of your desktop browser to mimic a mobile screen. How does the page look?

If you want to make changes, go back to Step 2. Keep going from Step 2 to Step 3 until you are satisfied.

That's it!

An example
The homepages of each language version of Wikipedia and all of the other Wikimedia projects are diverse, so it is impossible to present an universal example. Nevertheless, to give some idea of how this might look on your site, here is the German version of Wikipedia: http://de.wikipedia.org/ If you click on the View source ("Quelltext anzeigen") tab next to "Lesen", you can see the wikitext and using your browser's Find feature, look for the string, "mf-".

In this case, the div tag for the mf selectors are part of larger page objects. Only someone familiar with that project's homepage formatting will understand this in detail.

Now go to: http://de.m.wikipedia.org/ The resulting mobile page will be visible. The sections of content corresponding to the mf selectors are rendered in the mobile view.

Bugs
bug — mobile version accessed with HTTPS using Wikipedia's SSL certificate instead of specific project domain certificate.