Mobile Gateway/Mobile homepage formatting

From mediawiki.org
This page is a translated version of the page Mobile Gateway/Mobile homepage formatting and the translation is 32% complete.

Main pages of MediaWiki instances which go beyond traditional text (for example using two column layouts) usually require special treatment to display on mobile via Extension:TemplateStyles in responsive skins such as Skin:Timeless (Senza tempo) and Skin:Minerva .

Se la pagina principale (home page) del progetto Wikimedia non è stata formattata per la visualizzazione su dispositivi mobili, e si è un amministratore di tale progetto, si prega di seguire le istruzioni riportate di seguito.

Please note: In most cases, you must have administrator rights in order to edit the main page.

Hiding content on mobile

First, decide what content is suitable for the mobile homepage.

Evaluate the page elements in the desktop version (e.g. "Picture of the Day") by asking:

  • how popular are they?
  • are they updated regularly?
  • are they suitable for quick reading?
  • will they fit nicely in a mobile screen?

Once you decide which elements make sense, proceed to Step 2.

Devi aver effettuato il login e disporre di diritti amministrativi per eseguire le seguenti operazioni. Nella visualizzazione desktop della home page, fare clic su "Modifica" e cercare gli elementi che si desidera includere nella visualizzazione mobile.

Per ogni elemento, è necessario includere una breve istruzione in wikitext, chiamato "mf selettore", tra i tag div, in questo modo:

<div class="nomobile"> ... </div>

Ciò che va tra il tag di apertura e di chiusura div? Sarà molto probabilmente un modello per l'elemento di pagina, ad esempio "Foto del giorno".

Using responsive 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 Extension:TemplateStyles or port these styles to MediaWiki:Common.css or MediaWiki:Mobile.css. TemplateStyles is recommended but 3rd parties may wish to use the MobileFrontend feature flag $wgMFSiteStylesRenderBlocking.

For common problems with table based layouts, you can use the styles in the Minerva compatiblity template.

Some tips on common problems are addressed at Rendere MediaWiki Mobile Friendly .

Fare clic su "Salva la pagina".

Make sure to test all your changes!