Mobile Gateway/Mobile homepage formatting/fi

Jos Wikimedia-projektisi etusivua (kotisivua) ei ole muotoiltu mobiililaitteilla katseltavaksi, ja olet kyseisen projektin hallinnoija, seuraa alla olevia ohjeita.

Pian kaikki Wikimedia-projektit näytetään oletuksena mobiilinäkymässä mobiililaitteilla (paitsi tableteilla), katso ehdotettua aikajanaa. Jos etusivua ei ole muotoiltu mobiilinäkymälle, mobiilikäyttäjät eivät näe lainkaan sisältöä. Siksi on tärkeää valita mobiilinäkymään sopiva sisältö etusivulta.

Huomaa: Tarvitset ylläpito-oikeudet kotisivun muokkaamiseen.

Vaihe 1
Aluksi, valitse mobiilietusivulle sopiva sisältö.

Arvioi sivun työpöytäversion elementtejä (esim. "Päivän kuva") kysymällä:


 * kuinka suosittuja ne ovat?
 * päivittyvätkö ne säännöllisesti?
 * sopivatko ne nopeasti luettavaksi?
 * sopivatko ne hyvin mobiililaitteen näytölle?

Kun olet päättänyt järkevät elementit, siirry vaiheeseen 2.

Vaihe 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 included in the mobile Main Page must be identified with an id="mf-..." attribute (where "..." is a unique name; use something human readable please). You may call these "mf selectors". One way to do this is to put a div tag around the element you want and put the "mf selector" within the div tag, like so:

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.

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.

Click "".

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

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