Mobile Gateway/Mobile homepage formatting/hu

If the main page (homepage) of your Wikimedia project has not been formatted to be viewed on mobile devices, and you are an administrator of that project, please follow the instructions below.

Kérjük, hogy vedd figyelembe: Legalább adminisztrátori szintű felhasználói jogokkal kell rendelkezned a kezdőlap szerkesztéséhez.

1. lépés
Először is, döntsd el, hogy melyik tartalom lenne megfelelő a mobilos kezdőlaphoz.

Értékeld a lap elemeit a számítógépes változatnál a lapon szereplő (pl. "A nap képe" sablonnál) a következő kérdések segítségével:


 * milyen népszerűek ezek?
 * rendszeresen frissítik ezeket?
 * megfelelőek ezek a gyors olvasáshoz?
 * jól fognak ezek kinézni a mobilok kijelzőin?

Ha végre sikerült eldönteni, hogy mely elemek a megfelelőek, akkor folytasd a második lépéssel.

2. lépés
Be kell jelentkezned és adminisztrátori jogokkal kell rendelkezned ahhoz, hogy a következőket megtehesd. A kezdőlap asztali nézetének oldalán kattints a "$szerkesztés" gombra és keresd meg azokat az elemeket, amiket szerepeltetni kívánsz a mobilos verzióban.

Minden olyan elemet, amelyet nem kívánsz megjeleníteni a mobilos változatban, azokat hozzá kell adnod a "nomobile" csoporthoz, vagy be kell vonnod egy már létező csoportba.

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.

Kattints a "$Mentés" gombra.

Már majdnem kész vagy.

3. lépés
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?

Ha változtatásokat szeretnél eszközölni, akkor lépj vissza a 2. lépéshez. Menj végig a 2. lépésen, majd tovább a 3. lépésre, amíg elégedett nem leszel a műveddel.

Ez minden!

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.

Most lépj a: 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.

Deprecation steps for wikis using MFSpecialCaseMainPage
MobileFrontend is in the process of deprecating the code relating to main page special casing. If you have a wiki using it you'll want to stop using it immediately. If you have any questions please don't hesitate to use the talk page!

Hogyan közölhetem, ha én már használom ezt?
If your main page contains " " or " " in the HTML markup, you are using it. You can check this by inspecting the HTML for your main page. If this is too technical, you can also check this by copying and pasting the wiki markup into your user namespace and visiting the page in mobile. If there is a visual difference between your main page and the page in your user namespace you are using main page special casing.

Például vesd össze az https://en.m.wikipedia.org/wiki/User:Jdlrobson/Main_page_formatting_test oldalt az oldallal, az angol wikipédia kezdőlapjával.

Mit tehetek azért, hogy kijavítsam?
Assuming you do not want to do a big redesign and just want to retain the existing main page design, you can follow this guide.

Copy the main page markup into a sandbox e.g. a sub page of the user namespace. Now switch to mobile mode. Note, the mobile site can be viewed in your desktop browser, so if you can you may want to consider using the wikitext editor of the mobile site.

You'll need the TemplateStyles extension deployed on your wiki. You can see if it's installed on your wiki by visiting Special:Version. If it's not for whatever reason please request it.

Az ismert problémák itt lent vannak összegezve:

1. Hagyd abba a táblázatok használatát

If your main page uses table's in any way, please remove them. There are many tutorials on the web for doing column layouts. Please put "responsive column layout" into your favorite search engine. If this is confusing, you'll probably want to seek help from a CSS expert!

2. Review any inline styles

Search for any instances of styles which make use of the css properties " ", " ", " " or " "

Például: Move these into a TemplateStyle. Use a class and move the css declaration to css. Example CSS: e.g. Example - note the pre tag is only included for example purposes - this should be put into a TemplateStyle.

3. Újraszabás mobilra

With the above steps applied your page should look no different on a desktop browser, but as you shrink the screen (horizontal width) to under 720px - the threshold you introduced in step 2 the styles should disappear. You'll want to add new styles (outside the media query you introduced in step 3). These styles will apply to mobile devices and will be overridden.

If there is any content in the page that you do not want to render in the mobile skin you should add the class "nomobile". e.g.

4. Alkalmazz új sablont

Copy and paste the sandbox page into your Main page. Refresh the browser and verify that it works as expected on both mobile and desktop.

5. Make a site request to turn off main page special casing

If your site is now no longer using the special page casing and your site appears in this config:

You'll want to let a Wikimedia site admin know that you are ready for main page special casing to be turned off. File a Phabricator ticket using this link that links to this web page and lists your wiki.

You'll be able to tell when this has been successful if you've been using the  prefixes as suddenly other content will display on your mobile site!

6. Remove any mobile specific ids.

i.e. any instance of the following: These are not necessary any more. Previously these would choose which content to show on mobile, but now you have a new mobile first responsive design and have disabled main they will be ignored.

e.g. This example