• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Template display

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
Greek lc beta.svgThis template is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.

The desktop and mobile browsing interfaces on Wikipedia differ substantially, and sometimes different templates are more or less suitable for a specific interface. For this reason certain templates do not display in mobile view, using the class = "nomobile"

As of March 2017, only the "nomobile"-class is implemented, and "nodesktop" / "mobileonly" classes do nothing because they are not enabled in MediaWiki:Common.css or MediaWiki:Mobile.css — this means only the {{Template display|nomobile}} or {{Template display|desktoponly}} have any use.

This template does not itself control where content is displayed. It is only intended for template documentation to say where another template displays.

Contents

  • 1 Usage
    • 1.1 Adaptive templates
    • 1.2 Desktop only templates
    • 1.3 Mobile only templates
  • 2 Images used
  • 3 See also

Usage

Adaptive templates

This template is responsive and displays differently in mobile and desktop view. Read the documentation for an explanation of the differences and why they exist.
{{Template display|adaptive}}

Desktop only templates

This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation.
{{Template display|nomobile}}

Mobile only templates

This template does not display in the desktop view of Wikipedia; it is mobile only. Read the documentation for an explanation.
{{Template display|nodesktop}}

Images used

  • File:Different devices simple.svg
  • File:Handheld devices no.svg
  • File:Desktop devices no.svg

See also

The above documentation is transcluded from Template:Template display/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Template_display&oldid=32971"
Category:
  • Templates in beta
Last edited on 21 May 2021, at 12:09

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 21 May 2021, at 12:09.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop