Template:Mobile only

From Wikivoyage
Jump to navigation Jump to search

{{{1}}}

Documentation: Template:Mobile only is used to cause a block of content in Wiki markup which is included as the parameter to display only on the mobile site. It should be invisible in desktop view. Mobile only can be used with Template:Desktop only to display alternative content depending on whether the user is viewing from decktop or mobile view, or on its own where the content is not needed on desktop 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.

Syntax is: {{Mobile only|1=(block of content)}}

The template wraps the content in division tags with class="mf-mobile-only", which is in Wikivoyage's MediaWiki:Common.css

This class is set as "display:none"