Template talk:Desktop only

Template:Desktop only is used to cause a block of content in Wiki markup which is included as the parameter to display only on the desktop site. It should be invisible in mobile view. Desktop only can be used with Template:Mobile only to display alternative content depending on whether the user is viewing from desktop or mobile view, or on its own where the content is not needed on mobile view. This can be useful when the content does not render correctly on both platforms due to software problems, some of which have been known for years and may never be fixed. It may also be useful for other things, like adding this functionality to other templates, though in some cases wrapping in span tags may be more appropriate.

Syntax is:

The template wraps the content in division tags with class="nomobile" which is available in English Wikivoyage, so should be portable to all Wikimedia projects in which class="nomobile" is available.

An example of use can be seen at Diving the Cape Peninsula and False Bay/Whittle Rock.

Cheers, &bull; &bull; &bull; Peter (Southwood) (talk): 15:13, 25 March 2022 (UTC)