<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_mobile%2Fdoc</id>
	<title>Template:If mobile/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_mobile%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:If_mobile/doc&amp;action=history"/>
	<updated>2026-04-13T06:57:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:If_mobile/doc&amp;diff=19158&amp;oldid=prev</id>
		<title>Wikipedia&gt;Paine Ellsworth: /* Rationale */ remove incorrect plural</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:If_mobile/doc&amp;diff=19158&amp;oldid=prev"/>
		<updated>2022-03-07T06:05:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Rationale: &lt;/span&gt; remove incorrect plural&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Uses TemplateStyles|Template:If mobile/styles.css}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{info|Note that {{tlx|If mobile}} only works outside of the Template: namespace.}}&lt;br /&gt;
This template detects whether it is being used on the mobile version of Wikipedia (en.m.wikipedia.org), and displays different content accordingly. &lt;br /&gt;
&lt;br /&gt;
==Rationale==&lt;br /&gt;
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 &amp;quot;Slideshow&amp;quot; heading when a slideshow is shown, and a &amp;quot;Gallery&amp;quot; heading when a regular gallery is shown.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;{{braces|If mobile{{!}}&amp;#039;&amp;#039;content for mobile website&amp;#039;&amp;#039;{{!}}&amp;#039;&amp;#039;content for desktop website&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, {{tag|span}} tags are used to wrap the specified content. A different tag may be specified using {{para|tag}}&lt;br /&gt;
:E.g. {{para|tag|div}} can be used if the content contains block-level elements.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
===Normal usage===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{If mobile|A mobile user you are!|You are looking at the desktop site}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* [https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&amp;amp;oldid=857234029 view on desktop website]&lt;br /&gt;
* [https://en.m.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&amp;amp;oldid=857234029 view on mobile website]&lt;br /&gt;
&lt;br /&gt;
===Within the Template: namespace===&lt;br /&gt;
Note that the behaviour is different when within the Template: namespace! (e.g. on this documentation page)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;You are currently viewing the {{If mobile|mobile website|desktop website}}.&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
: You are currently viewing the {{If mobile|mobile website|desktop website}}.&lt;br /&gt;
* [https://en.wikipedia.org/w/index.php?title=Template:If_mobile/doc View on desktop website]&lt;br /&gt;
* [https://en.m.wikipedia.org/w/index.php?title=Template:If_mobile/doc View on mobile website]&lt;br /&gt;
&lt;br /&gt;
{{Namespace and pagename-detecting templates|state=collapsed}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia templates that change text based on client state]]&lt;br /&gt;
[[Category:If-then-else templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Paine Ellsworth</name></author>
	</entry>
</feed>