MobileDetect demo

From Notaclue Wiki
Extension demonstration (infobox template)
MobileDetect
Documentation

on mediawiki.org

Maintained by WikiTeq?

No

Version

This wiki has the MobileDetect extension installed, which makes it possible to specify that some content is to be shown only on mobile page views, or only on desktop page views.

Below is a (non-escaped) copy of the following code - only one of the two sections should show up! You can also test out the page on the other view using these links:


<nomobile>
== You are on desktop ==
</nomobile>

<p class="nomobile">
You can also use the <code>nomobile</code> class directly to hide stuff on mobile.
</p>

<mobileonly>
== You are on mobile ==
</mobileonly>

<p class="mobileonly">
You can also use the <code>mobileonly</code> class directly to hide stuff on desktops.
</p>

You are on desktop[edit | edit source]

You can also use the nomobile class directly to hide stuff on mobile.

You are on mobile[edit | edit source]

You can also use the mobileonly class directly to hide stuff on desktops.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.