<span class="ifmobile"><span class="nomobile"></span><span class="mobile"></span></span>
| Templat ini menggunakan TemplateStyles: |
This template detects whether it is being used on the mobile version of Wikipedia (id.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 templates 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
{{If mobile|content for mobile website|content for desktop website}}
By default, <span>...</span> tags are used to wrap the specified content. A different tag may be specified using |tag=
- E.g.
|tag=divcan be used if the content contains block-level elements.
Note that this template only works outside of the Template: namespace.
Example
{{If mobile|A mobile user you are!|You are looking at the desktop site}}
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini.
Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini.