Difference between revisions of "Template:Template display"

From UnderlightWiki
Jump to: navigation, search
(adding template template display)
 
(adding template template display from source)
 
Line 1: Line 1:
{{Documentation subpage}}
<includeonly>{{#invoke:Message box|ombox|type=notice
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
|image={{#switch:{{{1}}}|adaptive=[[File:Different devices simple.svg|65x65px|link=|alt=]]|nomobile=[[File:Handheld devices no.svg|55px|link=|alt=]]|nodesktop=[[File:Desktop devices no.svg|55px|link=|alt=]]}}
{{Template rating|beta}}
|text={{#switch:{{{1}}}
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>
| adaptive = This template is [[Adaptive web design|responsive]] and <strong>displays differently in mobile and desktop view</strong>. Read the documentation for an explanation of the differences and why they exist.
:'''As of March 2017, only the <code>"nomobile"</code>-class is implemented, and <code>"nodesktop"</code> / <code>"mobileonly"</code> classes do nothing because they are not enabled in [[MediaWiki:Common.css]] or [[MediaWiki:Mobile.css]]''' — this means only the {{tlx|Template display|nomobile}} or {{tlx|Template display|desktoponly}} have any use.
| nomobile = This template does not display in the mobile view of Wikipedia; it is <strong>desktop only</strong>. Read the documentation for an explanation.
 
| nodesktop = This template does not display in the desktop view of Wikipedia; it is <strong>mobile only</strong>. Read the documentation for an explanation.
This template does not itself control where content is displayed. It is only intended for template documentation to say where another template displays.
| nomobilesidebar = This template does not display in the mobile view of Wikipedia; it is <strong>desktop only</strong>. Read the [[Template:Sidebar/doc|parent documentation]] for an explanation.
 
| #default = {{{1}}}
== Usage ==
}}}}</includeonly><noinclude>
=== Adaptive templates ===
{{Documentation}}
{{Template display|adaptive}}
</noinclude>
<pre>{{Template display|adaptive}}</pre>
 
=== Desktop only templates ===
{{Template display|nomobile}}
<pre>{{Template display|nomobile}}</pre>
<!--<pre>{{Template display|desktoponly}}</pre>-->
 
=== Mobile only templates ===
{{Template display|nodesktop}}
<pre>{{Template display|nodesktop}}</pre>
<!-- <pre>{{Template display|mobileonly}}</pre> -->
 
==Images used==
* [[File:Different devices simple.svg|x22px|link=|alt=]] [[:File:Different devices simple.svg]]
* [[File:Handheld devices no.svg|x22px|link=|alt=]] [[:File:Handheld devices no.svg]]
* [[File:Desktop devices no.svg|x22px|link=|alt=]] [[:File:Desktop devices no.svg]]
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
 
}}</includeonly>

Latest revision as of 12:58, 26 October 2022

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}