Extension:MobileFrontend/pl

Rozszerzenie MobileFrontend:

Special:History, Special:Contributions, Special:Watchlist, Special:Preferences, Special:MobileDiff
 * Tworzy oddzielną stronę, która obsługuje mobilny ruch na twojej wiki.
 * administratorzy systemu mogą udostępnić do tego celu oddzielną skórkę, np. Minervę.
 * Zapewnia różnorakie przetwarzanie treści, aby uczynić ją bardziej przyjazną.
 * W szczególności zwijanie sekcji i reorganizacja oraz usuwanie danej treści.
 * Upraszcza mobilną stopkę oraz dodaje link do strony standardowej/mobilnej.
 * Dodaje zastępcze strony specjalne, dla stron MediaWiki które domyślnie nie są przyjazne urządzeniom mobilnym – Special:History, Special:Contributions, Special:MobileCite, Special:Watchlist, Special:Preferences, Special:MobileDiff.
 * Dodaje własne strony specjalne – Special:Nearby, Special:MobileOptions (preferencje skórki mobilnej), Special:MobileLanguages (wybór wersji językowej artykułu), Special:MobileMenu (menu w skórce mobilnej bez obsługi JavaScriptu) oraz Special:Uploads (przyjazny dla urządzeń mobilnych widok przesłanych plików).
 * System administrators are able to provide a different skin, e.g. Skin:Minerva Neue.
 * provides various content transformations to make your content more friendly,
 * Notably section collapsing and content re-arrangement and removal.
 * simplifies mobile footer and adds a desktop/mobile site link,
 * provides replacements for special pages that are not mobile friendly:
 * provides the special pages Special:Nearby, Special:MobileOptions (for mobile skin preferences), Special:MobileLanguages (for language selection),
 * provides a beta mode with a feature management system for adding experimental features for anonymous users.

Ta strona została zaprojektowana z myślą o końcowych użytkownikach chcących zainstalować to rozszerzenie na swoich platformach. Jeżeli chcesz pomóc nam rozwijać lub ulepszać to rozszerzenie, zachęcamy do zaangażowania się.

Wstępna instalacja

 * Pomimo że MediaWiki tego nie wymaga, twoja instalacja PHP musi obsługiwać mbstring, aby to rozszerzenie mogło działać.

Before installing MobileFrontend, if you make heavy use of templates and/or inline styles (the style attribute) you should review your content to see whether it is mobile friendly. The extension can be used to style content so that it renders nicely on mobile and desktop. MobileFrontend will not magically fix this for you!

In particular, you may want to review your landing page (main page). See Mobile homepage formatting.

Uruchamianie „W pobliżu”
Rozszerzenie MobileFrontend dodaje stronę Specjalna:W pobliżu po drobnej konfiguracji. Aby uruchomić tę funkcję trzeba przejść przez kilka opcjonalnych kroków:


 * 1) Ze względów bezpieczeństwa będziesz potrzebować szyfrowanego połączenia SSL ze swoją stroną — żądanie lokalizacji użytkownika przy użyciu protokołu HTTP nie jest możliwe.
 * 1) Zainstaluj rozszerzenie GeoData.
 * 2) Uruchom skrypt.
 * 3) Dodaj   w swoim pliku LocalSettings.php.
 * 4) Zdefiniuj współrzędne artykułu:
 * 5) Dodaj dane do artykułów przy użyciu składni jak  . Sprawdź dokumentację rozszerzenia GeoData, aby uzyskać więcej szczegółów dotyczących składni.
 * 6) Opcjonalnie możesz użyć oddzielnej instalacji MediaWikido uruchomienia „W pobliżu” poprzez dodanie w pliku LocalSettings.php zmiennej  . Na przykład   będzie używać współrzędnych artykułów angielskiej Wikipedii. Podany endpoint będzie wykorzystywany do odnalezienia treści powiązanych z daną lokalizacją.
 * 1) Run
 * 2) In LocalSettings.php add
 * 3) Determine article coordinates:
 * 4) Add location data to your articles by using the   parser function, for example  . For syntax details, see the documentation for.
 * 5) Alternatively you can use a separate MediaWiki installation for Nearby by setting   in your LocalSettings.php file. For example,   will use coordinates of English Wikipedia articles. The nearby endpoint will be used to find content related to a given location.

Setup a skin
MobileFrontend provides you with a mobile formatted website to go alongside your existing desktop website. You can skin it however you want.

The following skins are compatible with MobileFrontend:
 * Skin:Minerva Neue (stable, default on WMF wikis)
 * Skin:Vector (default desktop skin, uses an experimental responsive mode for mobile)
 * Skin:Timeless (experimental skin)

Configuration settings
See

Additional tweaks
Get the most out of MobileFrontend by adding these optional compatible extensions:


 * - Get Special:Nearby and geotag your articles.
 * - Adds images to search and nearby results.
 * - Add Visual editing to your mobile experience.

CSS styling
To apply CSS to your mobile theme, edit MediaWiki:Mobile.css, the counterpart of MediaWiki:Common.css. In order for the stylesheet to function you may have to add  to your MediaWiki:Mobile.js.

MobileFrontend does not load the global MediaWiki:Common.css, neither does it load any of the user stylesheets.

More information
If you would like to test the mobile extension on a desktop browser or your device doesn't render the mobile version, you can append the following key-value pair to the URL query string:. For example: https://en.wikipedia.org/wiki/Chuck_Schuldiner?useformat=mobile

If you would like to view the mobile version of a page without enabling the extension across the entire site you can append the string too the url on that page, too.

Legacy features of MobileFrontend
MobileFrontend has traditionally been a very large extension. Many features have either surpassed their requirements or will do at some future date. These are listed below.

API
APIs are provided by the MobileFrontend extension, but long term we expect to deprecate them in favour of Mobile Content Service. Use these APIs at your own risk. They may disappear (although we will give you sufficient notice when they do)!

MobileView API
See.

Extended action=parse
accepts extra parameters:


 * : Return rendered page HTML in a mobile format . Prior to MediaWiki 1.23, you could specify  to output HTML for modern phones or   to output WML for dumb phones (see mailing list messagefor details).
 * : Disable images in mobile output.
 * : Apply mobile main page transformations.

Przykład:

meta=siteinfo
The domain of the mobile version of the site (which might or might not be the same as the normal domain) is available under the  key of the general siteinfo information.

Setup
You may need to run  and install php composer to get the precommit hook to run, depending on what you're doing with the extension.

Testing with articles on a foreign wiki (live data)
MobileFrontend can now be configured locally to render articles from other MediaWiki instances. This can help you debug problems locally instead of importing articles which may have dependencies on various templates and Wikibase identifiers from production to your local instance. This is not recommended for production usage.

The code below will turn your local MediaWiki mobile site into a Wikivoyage viewer:

This is particularly useful for testing different mobile skins using the wgMFDefaultSkinClass config option.

WMF sites
On Wikimedia Foundation-run sites, we use Varnish caching servers to check the user agent of your device.

Non-WMF sites
For non-WMF sites, you can either set up your configuration to mimic how things are done at the WMF (doing device detection at the proxy layer and setting specific X-Device headers), or you can simply use "?useformat=mobile" to switch an article to use the mobile view.

FAQ
The following questions frequently appear on our talk page. Please check this list before posting about them on the talk page or use the existing talk topic, if available, to receive clarifications.

Q: How do I customise the main menu of the Minerva skin?
A: This is tracked in phabricator but you can see Topic:Tiggc18fvd3stmsf has an interim solution.

Q: How do I add HTML to the Minerva skin, for example to add ads or additional script tags?
A: You can do this by editing the template file for the skin (currently ). See this discussion for details.

Q: The extension I am using doesn't seem to work on MobileFrontend. Why?
A: It's likely the extension is old and needs to add compatibility to MobileFrontend. Please contact the developer of the extension and point them to ResourceLoader/Writing a MobileFrontend friendly ResourceLoader module. Please do not post to the talk page, as in this case it would be better to file a bug on Phabricator (you can login using your MediaWiki.org username) for a quicker response.

Q: I upgraded MobileFrontend and now I'm getting a fatal exception!
A: You are probably using incompatible versions of MobileFrontend and MediaWiki. In most cases, we can't help you here. Try upgrading MobileFrontend or MediaWiki to resolve your issue.

Q: After upgrading MediaWiki I'm getting an exception wgMFDefaultSkinClass is not setup correctly.
A: MobileFrontend currently assumes you have the skin installed. If you don't you'll need to install this or configure your mobile skin per instructions above.

For Extension Developers
By default resource modules in extensions will not be loaded in mobile view.

Should a module need to be loaded while in mobile view this guide on writing MobileFrontend friendly modules will be of help.

Zobacz też

 * Wikimedia's MobileFrontend configuration file
 * Commons:Category:MediaWiki extension MobileFrontend
 * Wikimedia's MobileFrontend configuration file
 * Commons:Category:MediaWiki extension MobileFrontend