Jump to content

Template:Template display and Template:Template display/sandbox: Difference between pages

(Difference between pages)
Content deleted Content added
add nomobile720 option for Template:A-Z multipage list
 
Create sandbox version of Template:Template display
 
Line 1: Line 1:
{{#ifeq: {{{1}}}| adaptive |<table class="plainlinks advert" role="presentation" style="margin: 0 10%; border: 1px solid #aaa; border-left: 10px solid #1e90ff; background: #fbfbfb;"><tr><td class="mbox-image"><div style="width:52px;padding:3px;">[[File:Different devices simple.svg|65x65px]]</div></td><td class="mbox-text"><span class="mbox-text-span">This template is '''[[Adaptive web design|adaptive]]''' and <u>'''displays differently'''</u> in '''mobile''' and '''desktop''' view. Read the documentation for an explanation of the differences and why they exist.</span></td></tr></table> | {{#ifeq: {{{1}}} | nomobile|<table class="plainlinks advert" role="presentation" style="margin: 0 10%; border: 1px solid #aaa; border-left: 10px solid #1e90ff; background: #fbfbfb;"><tr><td class="mbox-image"><div style="width:52px">[[File:Handheld devices no.svg|55px]]</div></td><td class="mbox-text"><span class="mbox-text-span">This template does not display in the '''mobile''' view of Wikipedia, it is <u>'''desktop only'''</u>. Read the documentation for an explanation.</span></td></tr></table>|{{#ifeq: {{{1}}} | nodesktop |<table class="plainlinks advert" role="presentation" style="margin: 0 10%; border: 1px solid #aaa; border-left: 10px solid #1e90ff; background: #fbfbfb;"><tr><td class="mbox-image"><div style="width:52px">[[File:Desktop devices no.svg|55px]]</div></td><td class="mbox-text"><span class="mbox-text-span">This template does not display in the '''desktop''' view of Wikipedia, it is </u>'''mobile only'''</u>. Read the documentation for an explanation.</span></td></tr></table>| }}| }}| }}<noinclude>{{Documentation}}</noinclude>
<includeonly>{{#invoke:Message box|ombox|type=notice
|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=]]}}
|text={{#switch:{{{1}}}
| 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.
| nomobile = This template does ''not'' display in the mobile view of Wikipedia; it is <strong>desktop only</strong>. Read the documentation for an explanation.
| nomobile720 = 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.
| nodesktop = This template does ''not'' display in the desktop view of Wikipedia; it is <strong>mobile only</strong>. Read the documentation for an explanation.
| 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.
| badmobile = This template contains coding that is not compatible with [[Help:Mobile access|mobile versions of Wikipedia]], causing display and [[Wikipedia:Manual of Style/Accessibility|accessibility problems]]. Read the documentation for an explanation.
| vector2022 = This template does not work properly in the [[Wikipedia:Vector 2022|Vector 2022]] skin. Read the documentation for an explanation.
| #default = {{{1}}}
}}}}</includeonly><noinclude>
{{Documentation}}
</noinclude>