Mobile Gateway/Mobile homepage formatting/ja

もしあなたのウィキメディア・プロジェクトのメインページ（ホームページ）が携帯機器 (モバイル デバイス) で閲覧されるように整形されておらず、さらにあなたがそのプロジェクトの管理者ならば、以下の手順に従ってください.

注意してください：ホームページを編集するには管理者権限がなければなりません.

手順 1
最初に、モバイルホームページに適したコンテンツを決めてください.

以下を問うことにより、デスクトップ版のページ要素（例えば 「今日の一枚」）を評価してください：


 * どれだけ人気か.
 * 定期的に更新されているか.
 * 速読に適しているか.
 * モバイル画面によく合うか.

どの要素が合理的か決定したら、手順 2 に進んでください.

手順 2
以下を行うためには、ログインして管理権限を持たなければなりません. ホームページのデスクトップビューにおいて、 をクリックしてモバイルビューに含めたい要素を探します.

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

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

Updating 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 the Extension:TemplateStyles or port these styles to MediaWiki:Common.css or MediaWiki:Mobile.css.

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

Click "".

You are almost done.

手順 3
Now go to the mobile URL, which is typically languagecode.m.project.org. 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!

MFSpecialCaseMainPage
When MFSpecialCaseMainPage is enabled (which is disabled by default), it is possible to serve different content to mobile and desktop users. Use of this method is discouraged and deprecated as it only works on the `Main Page` and is a maintenance burden and should only be used as a stop-gap measure when transitioning your MediaWiki site to a mobile experience.

The homepages of each language version of Wikipedia and all of the other Wikimedia projects are diverse, so it is impossible to present a universal example. Nevertheless, to give some idea of how this might look on your site, here is the German version of Wikipedia: https://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: https://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.