Mobile Projects/Mobile Gateway/Mobile homepage formatting/pl


Jeśli strona główna twojego projektu Wikimedia nie została odpowiednio sformatowana, by móc ją oglądać na urządzeniu mobilnym oraz jeśli jesteś administratorem tego projektu, prosimy zastosować się do podanych niżej instrukcji.

Już niedługo wszystkie projekty Wikimedia będą wyświetlane domyślnie w widoku mobilnym na urządzeniach przenośnych (wyłączając tablety), zobacz: wysuniętą wizję. Jeśli strona nie zostanie sformatowana do widoku mobilnego, użytkownicy urządzeń przenośnych nie będą mogli zobaczyć jej zawartości. Zatem ważne jest, by wybrać zawartość wersji desktopowej, odpowiadającej widokowi mobilnemu.

Należy pamiętać, że tylko konta z prawami administratorskimi umożliwiają edycję strony głównej.

Krok pierwszy edit

Po pierwsze zdecyduj, jaka treść jest odpowiednia dla mobilnej wersji strony głównej.

Oceń części składowe strony w wersji desktopowej (np. "Ilustracja na medal"), zadając sobie pytania:

  • jak dużą cieszą się popularnością?
  • czy są regularnie uaktualniane?
  • czy są odpowiednie do szybkiego czytania?
  • czy będą ładnie pasować do ekranu urządzenia mobilnego?

Kiedy rozważysz, które elementy strony wydają się stosowne, przejdź do Kroku drugiego.

Krok drugi edit

You must be logged in and have administrative rights to do the following. On the desktop view of the homepage, click Edit and find the elements you want to include in the mobile view.

For each element, you need to include a brief instruction in the wikitext, called a "mf selector", in between div tags, like so:

<div id="mf-ABC"> ... </div>

Please note: the letters ABC should be replaced with a title that is unique.

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". The id of the selector can be whatever you choose, but they should be unique and descriptive.

Click "Save page".

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

Krok trzeci edit

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 mobile-feedback-l lists wikimedia 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!

Przykład edit

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.

Please note edit

The English versions of projects other than Wikipedia currently show the Wikipedia logo instead of the project name. This is a known bug and will be fixed shortly. The language versions other than English should show the name of the project in the language of that project.

There is also a bug about the mobile version accessed with HTTPS using Wikipedia's SSL certificate instead of specific project domain certificate.