• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Template display

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 43,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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 template does not itself control where content is displayed. It is intended only for template documentation, to explain a template's behavior in the mobile view.

Contents

  • 1 Usage
    • 1.1 Adaptive templates
    • 1.2 Desktop only templates
    • 1.3 Templates that display on mobile, but not on narrow screens
    • 1.4 Mobile only templates (see note above)
    • 1.5 Templates that display poorly or cause accessibility problems on mobile
    • 1.6 Templates that do not work in the Vector 2022 skin
  • 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. See Template:Navbox visibility for a brief explanation.
{{Template display|nomobile}}

Templates that display on mobile, but not on narrow screens

This template does not display in the mobile view of Wikipedia when the window is less than 720 pixels wide. Read the documentation for an explanation.
{{Template display|nomobile720}}

Mobile only templates (see note above)

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

Templates that display poorly or cause accessibility problems on mobile

This template contains coding that is not compatible with mobile versions of Wikipedia, causing display and accessibility problems. Read the documentation for an explanation.
{{Template display|badmobile}}

Templates that do not work in the Vector 2022 skin

This template does not work properly in the Vector 2022 skin. Read the documentation for an explanation.
{{Template display|vector2022}}

Images used

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

See also

  • {{Navbox documentation}}, which transcludes this template
The above documentation is transcluded from Template:Template display/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Template_display&oldid=1274691061"
Last edited on 8 February 2025, at 19:00

Languages

    • العربية
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • भोजपुरी
    • Bosanski
    • Corsu
    • Cymraeg
    • Dansk
    • الدارجة
    • Ελληνικά
    • Euskara
    • فارسی
    • 한국어
    • हिन्दी
    • Bahasa Indonesia
    • Kurdî
    • Ladin
    • मैथिली
    • മലയാളം
    • मराठी
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • नेपाली
    • 日本語
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • پښتو
    • Português
    • Shqip
    • සිංහල
    • Simple English
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Tagalog
    • တႆး
    • ไทย
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 8 February 2025, at 19:00 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop