Template:If mobile/doc

This template detects whether it is being used on the mobile version of Wikipedia (en.m.wikipedia.org), and displays different content accordingly.

Rationale
Some features work differently on the mobile website, such as slideshow galleries appearing as ordinary galleries. This template allows better presentation of such content, by e.g. having a "Slideshow" heading when a slideshow is shown, and a "Gallery" heading when a regular gallery is shown.

Usage
By default, tags are used to wrap the specified content. A different tag may be specified using tag
 * E.g. div can be used if the content contains block-level elements.

Normal usage

 * view on desktop website
 * view on mobile website

Within the Template: namespace
Note that the behaviour is different when within the Template: namespace! (e.g. on this documentation page)


 * You are currently viewing the.


 * View on desktop website
 * View on mobile website