Difference between revisions of "Template:Template display/doc"
Jump to navigation
Jump to search
(Shamelessly copied from wikipedia.org) |
(Replacing SVG icon by PNG, because SVG support is broken on the SL Wiki) |
||
Line 23: | Line 23: | ||
==Images used== | ==Images used== | ||
* [[File:Different devices simple. | * [[File:Different devices simple.png|x22px|link=|alt=]] [[:File:Different devices simple.svg]] | ||
* [[File:Handheld devices no.svg|x22px|link=|alt=]] [[:File:Handheld devices no. | * [[File:Handheld devices no.svg|x22px|link=|alt=]] [[:File:Handheld devices no.png]] | ||
* [[File:Desktop devices no.svg|x22px|link=|alt=]] [[:File:Desktop devices no. | * [[File:Desktop devices no.svg|x22px|link=|alt=]] [[:File:Desktop devices no.png]] | ||
==See also== | ==See also== |
Revision as of 23:27, 22 September 2022
This is a documentation subpage for Template:Template display. It contains usage information, categories and other content or metadata that is not part of the original template. |
This 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. |
|Error: {{Template rating}} must be placed in the Template namespace.|demospace=}}
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.
Usage
Adaptive templates
65x65px | This template is adaptive 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
- x22px File:Handheld devices no.png
- x22px File:Desktop devices no.png