模板:Template display/doc

来自决策链云智库
< 模板:Template display
Zeroclanzhang讨论 | 贡献2024年1月16日 (二) 15:27的版本 (创建页面,内容为“{{Documentation subpage}} {{High-use}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> 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 <code>class = "nomobile"</code> :'''As of March 2017,…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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.

Usage

Adaptive templates

{{Template display|adaptive}}

Desktop only templates

{{Template display|nomobile}}

Mobile only templates (see note above)

{{Template display|nodesktop}}

Templates that display poorly or cause accessibility problems on mobile

{{Template display|badmobile}}

Templates that do not work in the Vector 2022 skin

{{Template display|vector2022}}

Images used