In today's world, Template:If mobile remains a topic of great interest and relevance. Whether we are talking about Template:If mobile's influence on society or its impact on the global economy, it is undeniable that Template:If mobile arouses the curiosity and attention of a large number of people. Throughout history, Template:If mobile has been the subject of numerous debates and studies, demonstrating its importance in different areas. In this article, we will explore different aspects related to Template:If mobile, analyzing its evolution over time and its relevance today.
This template uses TemplateStyles: |
Note that {{If mobile}} only works outside of the Template: namespace. |
This template detects whether it is being used on the mobile version of Wikipedia (en.m.wikipedia.org), and displays different content accordingly. This should however NOT be relied upon. For instance; both versions of content will generally show up in things like search engines. You should generally AVOID using this template. If you need to adapt the layout of a page for mobile, then please use TemplateStyles and CSS.
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.
{{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=
|tag=div
can be used if the content contains block-level elements.{{If mobile|A mobile user you are!|You are looking at the desktop site}}
Note that the behaviour is different when within the Template: namespace! (e.g. on this documentation page)
You are currently viewing the {{If mobile|mobile website|desktop website}}.
{{If mobile/sandbox|A mobile user you are!|You are looking at the desktop site}}